Foodolini.BusinessLogic.Test.RecipeTest Class Reference

Unit test to the Model layer of Recipe. More...

Inherits Foodolini::BusinessLogic::Test::LogicTest.

Collaboration diagram for Foodolini.BusinessLogic.Test.RecipeTest:
Collaboration graph

List of all members.

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.

Detailed Description

Unit test to the Model layer of Recipe.

Definition at line 14 of file RecipeTest.cs.


Member Function Documentation

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 (  ) 

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.

Fixet null ref error in loading of Ingredients on Recipe.

Definition at line 53 of file RecipeTest.cs.

void Foodolini.BusinessLogic.Test.RecipeTest.SaveRecipeTest (  ) 

Try to save a Recipe with Ingrediens and cooking Directions.

Definition at line 31 of file RecipeTest.cs.


The documentation for this class was generated from the following file:

Foodolini 1.0.0 Documentation, generated with DoxyGen.