예제 #1
0
 public void Visit(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 void Visit(NewSalesOrderCommand element)
 {
     toSave.Add(element);
 }