private void ShowAllItems() { Console.Clear(); List <MenuItems> listOfItems = _menuItemsRepo.GetAllItems(); foreach (MenuItems content in listOfItems) { DisplaySimple(content); } Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("Press any key to continue..."); Console.ReadKey(); }
public void GetMenuItems_ShouldReturnCorrectListOfMenuItems() { //ARRANGE MenuItems newObject = new MenuItems(); MenuItemsRepository repository = new MenuItemsRepository(); repository.AddItemToMenu(newObject); //ACT List <MenuItems> listOfMenuItems = repository.GetAllItems(); //ASSERT bool menuHasItems = listOfMenuItems.Contains(newObject); Assert.IsTrue(menuHasItems); }