public void ViewMenu_ShouldReturnFullMenu() { CafeMenu menuItem = new CafeMenu(); CafeMenuRepository repository = new CafeMenuRepository(); repository.CreateMenuItems(menuItem); List <CafeMenu> directory = repository.ViewMenu(); bool hasContent = directory.Contains(menuItem); Assert.IsTrue(hasContent); }
private void ViewFullMenu() { Console.Clear(); List <CafeMenu> allMenuItems = _repo.ViewMenu(); Console.WriteLine(allMenuItems); foreach (CafeMenu menuItem in allMenuItems) { Console.WriteLine($"Meal Number {menuItem.MealNumber}\n" + $"Meal Name: {menuItem.MealName}\n" + $"Meal Description: {menuItem.MealDescription}\n" + $"Meal ingredients: {menuItem.Ingredients}\n" + $"Meal Price: {menuItem.Price}"); } }