public void Arrange() { _repo = new MenuMethodRepo(); _mealContent = new MealContent(5, "gyoza", "pork based dumpling", 5.99m, new List <string> { "gyoza", "onion" }); _repo.AddToMenu(_mealContent); }
public void AddToList_ShouldNotGetNull() { MealContent content = new MealContent(); content.MealName = "Gyoza"; MenuMethodRepo repository = new MenuMethodRepo(); repository.AddToMenu(content); MealContent contentFromDirectory = repository.GetMealByName("Gyoza"); Assert.IsNotNull(contentFromDirectory); }