public void ShouldReturnFullBasketPriceWithTaxIncluded(TaxLocation taxLocation, decimal expectedTotalPrice) { var basket = new Basket(taxLocation, new DateTimeProvider()); var course = new Course() { NetPrice = 10.0m }; basket.Add(course); var summary = basket.RenderSummary(); summary.TotalPrice.ShouldEqual(expectedTotalPrice); }
public Basket(TaxLocation taxLocation, IDateTimeProvider dateTimeProvider) { this.taxLocation = taxLocation; this.dateTimeProvider = dateTimeProvider; }