Esempio n. 1
0
 private void AddPriceOfItemAndSalesTax(List <Item> items)
 {
     for (int i = 0; i < items.Count; i++)
     {
         _postSalesTaxPriceTotal += SalesTax.AddSalesTax(items[i]);
     }
 }
Esempio n. 2
0
 private void PrintNameAndPriceOfItemAfterTotalTax(List <Item> items)
 {
     for (int i = 0; i < items.Count; i++)
     {
         _postImportTaxPrice += ImportTax.AddImportTax(items[i]);
         _postTaxPrice        = ImportTax.AddImportTax(items[i]) + SalesTax.AddSalesTax(items[i]);
         Console.WriteLine("1 {0} : {1}", items[i].Name, (items[i].Price + _postTaxPrice));
     }
 }