public void RepoItemsCount() { int initialCount = _repo.GetMenuItems().Count; int expected = 3; Assert.AreEqual(expected, initialCount); }
private void DisplayAllMenuItems() { Console.Clear(); var allMenuItems = _menuItemsRepo.GetMenuItems(); Console.WriteLine("\nNumber: Name:"); foreach (var menuItem in allMenuItems) { DisplayMenuItem(menuItem); } Console.WriteLine(); }
//View current items dialog private void DisplayAllItems() { Console.Clear(); List <MenuItems> menuItems = _menuItemsRepo.GetMenuItems(); int mealCount = 1; foreach (MenuItems item in menuItems) { item.MealNum = mealCount; DisplayItemsByNum(item); mealCount++; } }
private void ViewAllMenuItems() { Console.Clear(); List <MenuItems> listOfMenuItems = _menuRepo.GetMenuItems(); foreach (MenuItems items in listOfMenuItems) { Console.WriteLine($"Meal number: {items.MealNumber}\n" + $"Meal Name: {items.MealName}\n" + $"Meal Description: {items.MealDescription}\n" + $"Meal Ingredients: {items.MealIngredients}\n" + $"Meal Price: {items.MealPrice}"); } }
public void GetMenuItems_ShouldReturnMenuItems() { List <MenuItem> listFromRepo = _repo.GetMenuItems(); Assert.IsNotNull(listFromRepo); }