mirror of
https://github.com/farcasclaudiu/design_pattens.git
synced 2026-06-22 07:01:29 +03:00
command notes
This commit is contained in:
@@ -60,6 +60,7 @@ namespace design_patterns.behavioral.command
|
||||
public void Execute()
|
||||
{
|
||||
Console.WriteLine($"Execute add order command for order {Order.ID}");
|
||||
// this should be set by a command processor externally
|
||||
HasSucceded = true;
|
||||
}
|
||||
|
||||
@@ -80,6 +81,7 @@ namespace design_patterns.behavioral.command
|
||||
public void Execute()
|
||||
{
|
||||
Console.WriteLine($"Execute remove order command for order {OrderID}");
|
||||
// this should be set by a command processor externally
|
||||
// FORCE failure
|
||||
HasSucceded = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user