public void FromEmptyKitchenGetPossibleMeals() { KitchenWorker currentKitchen = new KitchenWorker(); List <string> result = currentKitchen.PossibleMeals(); Assert.AreEqual(true, result != null); Assert.AreEqual(0, result.Count); }
public void FromKitchenWithoutAvailabileMealsGetPossibleMeals() { KitchenWorker currentKitchen = new KitchenWorker(); Recipe newRecipe = new Recipe(); newRecipe.Name = "SausageStroganoffVeggie"; newRecipe.IngredientsAndQuantity.Add(new KeyValuePair <string, double>("VeggieSausage", 1)); newRecipe.IngredientsAndQuantity.Add(new KeyValuePair <string, double>("Cream", 2.5)); newRecipe.IngredientsAndQuantity.Add(new KeyValuePair <string, double>("Tomato puree", 2)); currentKitchen.AddRecipe(newRecipe); List <string> result = currentKitchen.PossibleMeals(); Assert.AreEqual(true, result != null); Assert.AreEqual(0, result.Count); }
public IEnumerable <string> Get() { return(_kitchenWorker.PossibleMeals()); //return new string[] { "value1", "value2" }; }