public void AddToCafe_ShouldGetNotNull() { //Arrange //Act _repo.AddItemToCafe(_item); Cafe itemFromDirectory = _repo.GetItemByNumber(9); //Assert Assert.IsTrue(_repo.GetCafeItemList().Contains(itemFromDirectory)); }
private List <Cafe> DisplayAllCafeItems() { Console.Clear(); List <Cafe> listOfCafeItems = _CafeRepo.GetCafeItemList(); foreach (Cafe item in listOfCafeItems) { Console.WriteLine($"#: {item.ItemNumber}\n" + $"Name: {item.Name}\n" + $"Description: {item.Description}\n" + $"Price: ${item.Price}\n" + $"Ingredients:"); foreach (string ingredient in item.listOfIngredients) { Console.WriteLine(ingredient); } } return(listOfCafeItems); }