public void GetAllOrdersTest() { ManageOrders order = new ManageOrders(); var expected = order.GetAllOrders(); Assert.IsNotNull(expected); }
public static void GetOrderMenu() { Console.WriteLine("_____________________________________________________________________"); Console.WriteLine("_____________________________________________________________________"); Console.WriteLine(" "); Console.WriteLine("Manage orders"); Console.WriteLine("1. Get all orders"); Console.WriteLine("2. Add new order"); Console.WriteLine("3. Update order"); Console.WriteLine("4. Delete order"); Console.WriteLine("5. Back to ADO menu"); Console.WriteLine("Type number of action you want to do:"); string input = Console.ReadLine(); switch (input) { case "1": ManageOrders.GetList(); GetOrderMenu(); break; case "2": ManageOrders.Add(); GetOrderMenu(); break; case "3": ManageOrders.Update(); GetOrderMenu(); break; case "4": ManageOrders.Delete(); GetOrderMenu(); break; case "5": AdoMenu.GetMenu(); break; default: Console.WriteLine("Wrong number, try again!"); GetOrderMenu(); break; } }
public void SetUp() { orderManage = new ManageOrders(orderItems); }
public void Initialize() { orderManage = new ManageOrders(orderItems); }