diff --git a/behavioral/command/CommandSample.cs b/behavioral/command/CommandSample.cs index f489388..0ca44e7 100644 --- a/behavioral/command/CommandSample.cs +++ b/behavioral/command/CommandSample.cs @@ -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; }