public void BuyItems(Item item, int purchaseQty) { sale.BuyItems(item, purchaseQty); }
public void TestThatSaleReflectsTotal_ForThreeLineItemsWorthFiveDollarAndQuantityOfSix() { sale.BuyItems(inventory.FindItem(1), 6); sale.BuyItems(inventory.FindItem(2), 6); sale.BuyItems(inventory.FindItem(3), 6); sale.TotalSale(); Assert.AreEqual(90M, sale.SaleTotal); }
public void TestThatSaleStateSwitchesToAwaitingPaymentState_WhenTotalled() { sale.BuyItems(inventory.FindItem(2), 3); sale.TotalSale(); Assert.IsTrue(sale.SaleState is AwaitingPaymentSaleState); }