Example #1
0
        // GET: Order
        public ActionResult Index()
        {
            OrderList ol = new OrderList();

            ol.Load();
            return(View(ol));
        }
Example #2
0
        public void LoadTest()
        {
            OrderList orders = new OrderList();

            orders.Load();

            int expected = 3;
            int actual   = orders.Count;

            Assert.AreEqual(expected, actual);
        }
Example #3
0
        public void DeleteTest()
        {
            OrderList orders = new OrderList();

            orders.Load();

            //Find the order with the description testingorder
            Order order = orders.FirstOrDefault(f => f.PaymentReceipt == "updtTest");

            //Delete it
            int result = order.Delete();

            Assert.IsTrue(result == 1);
        }