Esempio n. 1
0
        public int CalculateTotalPrice()
        {
            var price = BasketItems.Sum(item => item.Price);

            var totalDiscount = discountCalculator.CalculateTotalDiscount(BasketItems);

            return(price - totalDiscount);
        }