Пример #1
0
        public void AddNewMealAndReadMenu()
        {
            Meal hotSoup = new Meal(6, "soup", "hot", "broth", 4.99);

            _repo.AddMenuItem(hotSoup);
            List <Meal> menu = _repo.GetMenu();

            bool menuHasHotSoup = menu.Contains(hotSoup);

            Assert.IsTrue(menuHasHotSoup);
        }
Пример #2
0
        public void TestShowAll()
        {
            CafeRepository cafeRepository = new CafeRepository();

            cafeRepository.AddMenuItem();
            cafeRepository.ShowAllItems();
        }