Пример #1
0
        public void Calculate(Cart cart)
        {
            _productList = cart.GetItemsFromCart();

            foreach (Product p in _productList)
            {
                _bill = GetBill(_country);
                decimal productTax = _bill.CalculateTax(p.Price, p.GetTaxValue(_country));
                decimal taxedCost  = _bill.CalcTotalProductCost(p.Price, productTax);
                p.TaxedCost = taxedCost;
            }
        }