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}"); } }
public void Visit(NewSalesOrderCommand element) { toSave.Add(element); }