public void DeleteMenuItemExistWarningTest()
        {
            //Arrange
            db = new touch_for_foodEntities();
            Menu_CategoryController target = new Menu_CategoryController(db);
            menu_category expected = menuCategory1;

            //Act
            ViewResult actual = (ViewResult)target.Delete(menuCategory1.id);

            //Assert
            Assert.AreEqual(expected.id, ((menu_category)actual.ViewData.Model).id);
            Assert.IsNotNull(actual.ViewBag.Warning);
        }
        public void DeleteActiveWarningTest()
        {
            //Arrange
            db = new touch_for_foodEntities();
            Menu_CategoryController target = new Menu_CategoryController(db);
            menuCategory1.is_active = true;
            db.Entry(menuCategory1).State = EntityState.Modified;
            db.SaveChanges();
            menu_category expected = menuCategory1;

            //Act
            ViewResult actual = (ViewResult)target.Delete(menuCategory1.id);

            //Assert
            Assert.AreEqual(expected.id, ((menu_category)actual.ViewData.Model).id);
            Assert.IsNotNull(actual.ViewBag.Warning);
        }