public void processPaymentWith1Item() { var orderCore = new OrderCore(); orderCore.processOrder(new OrderItem[] { new OrderItem("Chicken Wings 6pcs.", 1, 120) }); Assert.AreEqual(true, orderCore.processPayment(new CashPayment(120))); }
public void orderTotal2ItemWithQuantity() { var orderCore = new OrderCore(); Assert.AreEqual(310, orderCore.processOrder(new OrderItem[] { new OrderItem("Chicken Wings 6pcs.", 2, 120), new OrderItem("Fries and Wings 3pcs.", 1, 70) })); }
public void orderTotal1Item() { var orderCore = new OrderCore(); Assert.AreEqual(120, orderCore.processOrder(new OrderItem[] { new OrderItem("Chicken Wings 6pcs.", 1, 120) })); }