Give_no_discount_when_book_is_not_eligible_for_a_discount() { var aBookWithNoDiscount = BookBuilder.ACookingBook().Costing(10.00).Build(); var basket = BasketBuilder.ABasket().With(aBookWithNoDiscount).Build(); Check.That(basket.PriceWithDiscount()).IsEqualTo(10.0); Check.That(basket.FullPrice()).IsEqualTo(10.0); }
Calculate_the_total_price_with_no_discount_when_containing_multiple_books() { var basket = BasketBuilder.ABasket() .With( BookBuilder.ACookingBook().Costing(10.0).Build(), BookBuilder.AnITBook().Costing(30.0).Build(), BookBuilder.AnITBook().Costing(20.0).Build(), BookBuilder.ATravelBook().Costing(20.0).Build()) .Build(); Check.That(basket.FullPrice()).IsEqualTo(80.0); }
Return_an_unmodifiable_list_of_books() { BasketBuilder.ABasket().Build().Books().Add(BookBuilder.ACookingBook().Build()); }