Exemple #1
0
        private void TestAssertion(decimal total, IEnumerable <Product> products)
        {
            var basket = new Basket(products);

            basket = _basketService.CalculateTotal(basket);
            Assert.Equal(total, basket.Total);
        }
        public int Execute(TotalBasketOptions options, Basket basket)
        {
            var total = basketService.CalculateTotal(basket);

            Console.WriteLine($"Your baskets total is £{total}");

            return(0);
        }