//View all Menu private void ViewCurrentMemu() { Console.Clear(); List <Meal> listOfMeal = _cafeRepo.GetListOfMeals(); foreach (Meal newMeal in listOfMeal) { Console.WriteLine($"Meal: {newMeal.MealName}\n" + $"Description: {newMeal.Description}"); } }
public void AddToListNotNull() { //Arrange Meal meal = new Meal(); meal.MealName = "Salad"; CafeRepo cafe = new CafeRepo(); //Act cafe.AddMealToMenu(meal); Meal mealFromDirectory = cafe.GetMealByMealName("Salad"); //Assert List <Meal> meaDirectory = cafe.GetListOfMeals(); Assert.IsNotNull(mealFromDirectory); }