Exemplo n.º 1
0
        public void FromEmptyKitchenGetPossibleMeals()
        {
            KitchenWorker currentKitchen = new KitchenWorker();
            List <string> result         = currentKitchen.PossibleMeals();

            Assert.AreEqual(true, result != null);
            Assert.AreEqual(0, result.Count);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public IEnumerable <string> Get()
 {
     return(_kitchenWorker.PossibleMeals());
     //return new string[] { "value1", "value2" };
 }