Пример #1
0
 private static void PrintSales(Sales sales)
 {
     foreach (LineItem lineItem in sales.LineItems)
     {
         Console.WriteLine(string.Format("{0} {1}: {2}", lineItem.Quantity, lineItem.Item.Name, lineItem.CalculateTotalRounded()));
     }
     Console.WriteLine(string.Format("Sales Taxes: {0} Total: {1}", sales.CalculateTaxRounded(), sales.CalculateTotalRounded()));
 }