public void should_be_able_to_create_a_basket_and_apply_offers_scenarios(int numberOfButter, int numberOfBread, int numberOfMilk, decimal total)
        {
            BasketService basketService = BasketServiceSetup();

            var basket = new Basket();

            basket.AddItem(new Product()
            {
                Price = 0.80m,
                Name  = "Butter"
            }, numberOfButter);
            basket.AddItem(new Product()
            {
                Price = 1m,
                Name  = "Bread"
            }, numberOfBread);
            basket.AddItem(new Product()
            {
                Price = 1.15m,
                Name  = "Milk"
            }, numberOfMilk);

            basketService.ApplyOffers(basket);
            Assert.Equal(total, basket.Total);
        }
        public void should_be_able_to_create_a_basket_and_apply_offers()
        {
            BasketService basketService = BasketServiceSetup();

            var basket = new Basket();

            basket.AddItem(new Product()
            {
                Price = 0.80m,
                Name  = "Butter"
            }, 2);
            basket.AddItem(new Product()
            {
                Price = 1m,
                Name  = "Bread"
            }, 1);

            basketService.ApplyOffers(basket);
            Assert.Equal(2.10m, basket.Total);
        }