public void VisitSalesOrderCommand(NewSalesOrderCommand salesOrderCommand)
 {
     report.AppendLine("Sales order request: ");
     foreach (var line in salesOrderCommand.OrderLines)
     {
         report.AppendLine($"\t Product={line.Product} Quantity={line.Quantity}");
     }
 }
Exemplo n.º 2
0
 public void VisitSalesOrderCommand(NewSalesOrderCommand salesOrderCommand)
 {
     Console.WriteLine($"Sales Order from {salesOrderCommand.CustomerCode} was approved.");
 }
 public void VisitSalesOrderCommand(NewSalesOrderCommand salesOrderCommand)
 {
 }
 public void VisitSalesOrderCommand(NewSalesOrderCommand salesOrderCommand)
 {
     toSave.Add(salesOrderCommand);
 }