// GET: Order public ActionResult Index() { OrderList ol = new OrderList(); ol.Load(); return(View(ol)); }
public void LoadTest() { OrderList orders = new OrderList(); orders.Load(); int expected = 3; int actual = orders.Count; Assert.AreEqual(expected, actual); }
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); }