Unit test to the Model layer of FoodItem. More...
Inherits Foodolini::BusinessLogic::Test::LogicTest.
Public Member Functions | |
void | CreateFoodItemTest () |
Try to create a FoodItem. | |
void | LoadCreatedFoodItemTest () |
Test that a FoodItem can be saved and loaded by saving a new FoodItem and then load it again to check if the loaded data match. | |
void | ConsumeFoodItemTest () |
test that the fooditem is consumed and moved to person consumed list and test that the fooditem is opend when consumed. | |
void | ConsumePartialFoodItemTest () |
test that a FoodItem can be partial consumed by creatin a new FoodItem and partial consume it on a Person, and then test if all the remaining FoodItems are correct and test if the consumed FoodItem have been asisiated with the Person. | |
void | SplitFoodItemTest () |
Test of whether Split on FoodItem works. Test that the FoodItem is opened when split. | |
void | SplitFoodItemExceptionTest () |
Test the exceptions in SplitFoodItem by atamting to make iligal splits on the FoodItem. | |
void | FoodItemDeleteTest () |
Test that DeleteFoodItem works by adding FoodItems to the dababase and then remove them again and check if they have been removed correct. | |
void | OpenCloseFoodItemDeleteTest () |
Test that Open Close FoodItem works by creating a new FoodItem and atempt to open and close it and then check that the Ecpirations dates are correct. |
Unit test to the Model layer of FoodItem.
Definition at line 13 of file FoodItemTest.cs.
void Foodolini.BusinessLogic.Test.FoodItemTest.ConsumeFoodItemTest | ( | ) |
test that the fooditem is consumed and moved to person consumed list and test that the fooditem is opend when consumed.
Fixed that the FoodItem should be opened when consumed. Fixed bug that ListPerson did not work. Fixed SQLite syntax error in ListFoodItem
Definition at line 56 of file FoodItemTest.cs.
void Foodolini.BusinessLogic.Test.FoodItemTest.ConsumePartialFoodItemTest | ( | ) |
void Foodolini.BusinessLogic.Test.FoodItemTest.CreateFoodItemTest | ( | ) |
Try to create a FoodItem.
Definition at line 19 of file FoodItemTest.cs.
void Foodolini.BusinessLogic.Test.FoodItemTest.FoodItemDeleteTest | ( | ) |
Test that DeleteFoodItem works by adding FoodItems to the dababase and then remove them again and check if they have been removed correct.
Definition at line 229 of file FoodItemTest.cs.
void Foodolini.BusinessLogic.Test.FoodItemTest.LoadCreatedFoodItemTest | ( | ) |
Test that a FoodItem can be saved and loaded by saving a new FoodItem and then load it again to check if the loaded data match.
Definition at line 30 of file FoodItemTest.cs.
void Foodolini.BusinessLogic.Test.FoodItemTest.OpenCloseFoodItemDeleteTest | ( | ) |
Test that Open Close FoodItem works by creating a new FoodItem and atempt to open and close it and then check that the Ecpirations dates are correct.
Definition at line 264 of file FoodItemTest.cs.
void Foodolini.BusinessLogic.Test.FoodItemTest.SplitFoodItemExceptionTest | ( | ) |
Test the exceptions in SplitFoodItem by atamting to make iligal splits on the FoodItem.
Definition at line 194 of file FoodItemTest.cs.
void Foodolini.BusinessLogic.Test.FoodItemTest.SplitFoodItemTest | ( | ) |
Test of whether Split on FoodItem works. Test that the FoodItem is opened when split.
Fixed that FoodItem.Split did not open the two split FoodItems.
Definition at line 171 of file FoodItemTest.cs.