コード例 #1
0
 public override void VisitSalesOrderCommand(NewSalesOrderCommand salesOrderCommand)
 {
     report.AppendLine("Sales order request: ");
     foreach (var line in salesOrderCommand.OrderLines)
     {
         report.AppendLine($"\t Product={line.Product} Quantity={line.Quantity}");
     }
 }
コード例 #2
0
 public override void VisitSalesOrderCommand(NewSalesOrderCommand salesOrderCommand)
 {
     Console.WriteLine($"Sales Order from {salesOrderCommand.CustomerCode} was approved.");
 }
コード例 #3
0
 public override void VisitSalesOrderCommand(NewSalesOrderCommand salesOrderCommand)
 {
     toSave.Add(salesOrderCommand);
 }