public void WhenAnOfferIsAvailableItIsApplied() { //Arrange var basket = new sortedBasket.Basket(); //Act basket.Scan(_biscuits); basket.Scan(_biscuits); var total = basket.Total(); //Assert Assert.Equal(.45m, total); }
public void WhenAnItemIsScannedItIsAddedToTheBasket() { //Arrange var basket = new sortedBasket.Basket(); //Act var status = basket.Scan(_apple); //Assert Assert.True(status); }
public void WhenATotalIsRequestedItIsReturned() { //Arrange var basket = new sortedBasket.Basket(); basket.Scan(_apple); //Act var total = basket.Total(); //Assert Assert.Equal(0.5m, total); }