Exemplo n.º 1
0
        public void ToKitchenAddRecipe()
        {
            KitchenWorker currentKitchen = new KitchenWorker();
            Recipe        newRecipe      = new Recipe();

            newRecipe.Name      = "SausageStroganoff";
            newRecipe.Available = true;

            newRecipe.IngredientsAndQuantity.Add(new KeyValuePair <string, double>("Sausage", 1));
            newRecipe.IngredientsAndQuantity.Add(new KeyValuePair <string, double>("Cream", 2.5));
            newRecipe.IngredientsAndQuantity.Add(new KeyValuePair <string, double>("Tomato puree", 2));

            currentKitchen.AddRecipe(newRecipe);
            Recipe result = currentKitchen.GetRecipe(newRecipe.Name);

            Assert.AreEqual(newRecipe.Name, result.Name);
        }
Exemplo n.º 2
0
 public Recipe Get(string recipeName)
 {
     return(_kitchenWorker.GetRecipe(recipeName));
 }