Beispiel #1
0
        static void Main(string[] args)
        {
            MenuItemDaoCollectionTest menuItemDaoCollectionTest = new MenuItemDaoCollectionTest();

            Console.WriteLine();
            Console.WriteLine("***************************-------------MENU LIST ADMIN---------*******************************");
            Console.WriteLine();
            menuItemDaoCollectionTest.TestGetMenuItemListAdmin();
            Console.WriteLine();
            Console.WriteLine("***************************----------MENU LIST CUSTOMER---------*******************************");
            Console.WriteLine();
            menuItemDaoCollectionTest.TestGetMenuItemListCustomer();
            Console.WriteLine();
            Console.WriteLine("*************************-------------RECENTLY MODIFIED -----------*****************************");
            Console.WriteLine();
            menuItemDaoCollectionTest.TestModifyMenuItem();
            Console.WriteLine();
            menuItemDaoCollectionTest.TestGetMenuItemListAdmin();
            Console.WriteLine();
            Console.WriteLine();


            CartDaoCollectionTest cartDaoCollectionTest = new CartDaoCollectionTest();

            Console.WriteLine("*************************-------------------CART ITEMS-------------*****************************");
            Console.WriteLine();

            cartDaoCollectionTest.TestAddCartItem();

            cartDaoCollectionTest.TestRemoveCartItem();
            Console.WriteLine("|  ID |  Name      |      Price  |  Active |  Date Of Launch |  Category  |  Delivery  |");
            cartDaoCollectionTest.TestGetAllCartItems();
            Console.WriteLine();
            Console.WriteLine("************************************************************************************************");
            Console.ReadKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            //try
            //{
            MenuItemDaoCollectionTest menuItemDaoCollectionTest = new MenuItemDaoCollectionTest();

            menuItemDaoCollectionTest.TestGetMenuItemListAdmin();
            menuItemDaoCollectionTest.TestGetMenuItemListCustomer();
            menuItemDaoCollectionTest.TestModifyMenuItem();

            Console.WriteLine("1 object done.");

            CartDaoCollectionTest cartDaoCollectionTest = new CartDaoCollectionTest();

            cartDaoCollectionTest.TestAddCartItem();
            cartDaoCollectionTest.TestRemoveCartItem();

            Console.WriteLine("2 objects done.");

            MenuItemDaoSqlTest menuItemDaoSqlTest = new MenuItemDaoSqlTest();

            menuItemDaoSqlTest.TestGetMenuItemListAdmin();
            menuItemDaoSqlTest.TestGetMenuItemListCustomer();
            menuItemDaoSqlTest.TestEditMenuItem();
            menuItemDaoSqlTest.TestGetMenuItem();

            Console.WriteLine("3 objects done.");

            CartDaoSqlTest cartDaoSqlTest = new CartDaoSqlTest();

            cartDaoSqlTest.TestAddMenuItem();
            cartDaoSqlTest.TestGetMenuItems();
            cartDaoSqlTest.TestRemoveMenuItem();

            Console.WriteLine("4 objects done.");
            //}
            //catch(Exception ex)
            //{
            //    Console.WriteLine(ex.Message);
            //}
            Console.ReadKey();
        }