Beispiel #1
0
        public void DeleteExistingMenu_ShouldReturnTrue()
        {
            Menu           content      = new Menu();
            MenuItem       menuContent  = new MenuItem();
            CafeRepository repository   = new CafeRepository();
            bool           removeResult = repository.DeleteMenuItem(menuContent.MealNumber);

            Assert.IsTrue(removeResult);
        }
Beispiel #2
0
        public void CanRemoveMeal()
        {
            Meal hotSoup = new Meal(6, "soup", "hot", "broth", 4.99);

            _repo.AddMenuItem(hotSoup);
            bool removeResult = _repo.DeleteMenuItem(hotSoup);

            Assert.IsTrue(removeResult);
        }
        public void DeleteItemFromListTest()
        {
            _cafeRepository.DeleteMenuItem(_menuItem);

            int expected = 0;
            int actual   = _cafeRepository.GetMenuList().Count;

            Assert.AreEqual(expected, actual);
        }