You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented the Command design pattern with a `Light` receiver, `LightOnCommand` and `LightOffCommand` classes, and a `RemoteControl` invoker.
Updated `Program.cs` to include a demo showcasing command execution and undo functionality.
Introduced the `ICommand` interface to define the contract for commands.
Updated `README.md` to document the Command pattern, its purpose, usage, and related files.
Added `CommandTests.cs` to verify the functionality of the Command pattern, including execution and undo scenarios.
- Purpose: Encapsulate a request as an object, thereby letting you parameterize clients with queues, requests, and operations and support undoable operations.
0 commit comments