public void WithNotEnoughFullFridgeGetPossibleMeals() { Fridge currentFridge = new Fridge(); currentFridge.AddIngredientToFridge("VeggieSausage", 5); currentFridge.AddIngredientToFridge("Cream", 2); currentFridge.AddIngredientToFridge("Tomato puree", 22); KitchenService currentKitchen = new KitchenService(currentFridge); Recipe newRecipe = new Recipe { Name = "SausageStroganoffVeggie", Available = true }; newRecipe.IngredientInfos.Add(new IngredientInfo { Name = "VeggieSausage", Quantity = 1 }); newRecipe.IngredientInfos.Add(new IngredientInfo { Name = "Cream", Quantity = 2.5 }); newRecipe.IngredientInfos.Add(new IngredientInfo { Name = "Tomato puree", Quantity = 2 }); currentKitchen.AddRecipe(newRecipe); List <string> result = currentKitchen.PossibleMeals(); Assert.AreEqual(true, result != null); Assert.AreEqual(0, result.Count); }
public void WithoutRecipesGetPossibleMeals() { KitchenService currentKitchen = new KitchenService(); List <string> result = currentKitchen.PossibleMeals(); Assert.AreEqual(true, result != null); Assert.AreEqual(0, result.Count); }
public void WithRecipeGetPossibleMeals() { KitchenService currentKitchen = new KitchenService(); Recipe newRecipe = new Recipe { Name = "SausageStroganoffVeggie" }; newRecipe.IngredientInfos.Add(new IngredientInfo { Name = "VeggieSausage", Quantity = 1 }); newRecipe.IngredientInfos.Add(new IngredientInfo { Name = "Cream", Quantity = 2.5 }); newRecipe.IngredientInfos.Add(new IngredientInfo { Name = "Tomato puree", Quantity = 2 }); currentKitchen.AddRecipe(newRecipe); List <string> result = currentKitchen.PossibleMeals(); Assert.AreEqual(true, result != null); Assert.AreEqual(0, result.Count); }