Unit test to the Model layer of Recipe. More...
Inherits Foodolini::BusinessLogic::Test::LogicTest.
Public Member Functions | |
void | CreateRecipeTest () |
Try Save an empty Recipee. | |
void | SaveRecipeTest () |
Try to save a Recipe with Ingrediens and cooking Directions. | |
void | SaveAndLoadRecipeTest () |
Test that a Recipe can be saved and loaded by saving a new Recipe and then load it again to check if the loaded data match. | |
void | CookRecipeTest () |
Test the cookRecipe method by calling the method on a recipe and check that the Inventory and Ingredients match the expected. |
Unit test to the Model layer of Recipe.
Definition at line 14 of file RecipeTest.cs.
void Foodolini.BusinessLogic.Test.RecipeTest.CookRecipeTest | ( | ) |
Test the cookRecipe method by calling the method on a recipe and check that the Inventory and Ingredients match the expected.
Fixet calculating new ingredient when cooking a new FoodItem
Definition at line 80 of file RecipeTest.cs.
void Foodolini.BusinessLogic.Test.RecipeTest.CreateRecipeTest | ( | ) |
Try Save an empty Recipee.
Definition at line 20 of file RecipeTest.cs.
void Foodolini.BusinessLogic.Test.RecipeTest.SaveAndLoadRecipeTest | ( | ) |
void Foodolini.BusinessLogic.Test.RecipeTest.SaveRecipeTest | ( | ) |
Try to save a Recipe with Ingrediens and cooking Directions.
Definition at line 31 of file RecipeTest.cs.