Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
        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) }));
        }
Exemplo n.º 3
0
        public void orderTotal1Item()
        {
            var orderCore = new OrderCore();

            Assert.AreEqual(120, orderCore.processOrder(new OrderItem[] { new OrderItem("Chicken Wings 6pcs.", 1, 120) }));
        }