public void TestEditMenuItem()
        {
            MenuItemDaoSql menuItemDaoSql = new MenuItemDaoSql();

            menuItemDaoSql.EditMenuItem(new MenuItem(1, "Basil Tomato & Mozzarella Cheese Sandwich",
                                                     235, true, DateTime.Today, "Main Course", true));
            TestGetMenuItem();
        }
Beispiel #2
0
        public void TestEditMenuItem(int iid2, string iname2, int iprice2, int ias2, DateTime idol2, string icategory2, int ids2)
        {
            MenuItemDaoSql menuItemDaoSql = new MenuItemDaoSql();
            MenuItem       menu           = new MenuItem();

            menu.Id           = iid2;
            menu.Name         = iname2;
            menu.Price        = iprice2;
            menu.DateOfLaunch = idol2;
            menu.Active       = ias2 == 1 ? true : false;
            menu.FreeDelivery = ids2 == 1 ? true : false;
            menu.Category     = icategory2;
            menuItemDaoSql.EditMenuItem(menu);
            //  TestGetMenuItem();
        }