public int GetTotalPrice() { int totalPrice = 0; foreach (var discount in _discounts) { totalPrice += _discountCalculator.GetTotalPriceForProducts(discount, _products); } return(totalPrice); }
public int GetTotalPrice() { int totalPrice = 0; foreach (var discount in _discounts) { totalPrice += _discountCalculator.GetTotalPriceForProducts(discount, _products); } return(totalPrice); }