Unit test to the Database layer of FoodItemRowTest. More...
Inherits Foodolini::Database::Test::DatabaseTest.
Public Member Functions | |
void | SaveLoadTest () |
Saves a FoodItemRow to the database and test if the object recives an ID. Load the FoodItemRow from the database and test if the data match. | |
void | DeleteTest () |
inset a FoodItemRow to the database and delets it again while checking that the correct data were deleted. | |
void | UpdateTest () |
test the database update function to update an existing FoodItemRow by saving data to the database, then update it and check that the data is correct. | |
void | WereTest () |
test the were and singleware command by inserting aditional rows to the database and then use the were method to load the data rows specified by the parameters and then test if the rows match. | |
Private Member Functions | |
void | InsertTestData () |
add data to food to be used in testing | |
Private Attributes | |
FoodItemRow | food |
FoodItemRow | food2 |
FoodItemRow | food3 |
Unit test to the Database layer of FoodItemRowTest.
Definition at line 13 of file FoodItemRowTest.cs.
void Foodolini.Database.Test.FoodItemRowTest.DeleteTest | ( | ) |
inset a FoodItemRow to the database and delets it again while checking that the correct data were deleted.
Fiext crash error if a item were to be delete multible times.
Definition at line 100 of file FoodItemRowTest.cs.
void Foodolini.Database.Test.FoodItemRowTest.InsertTestData | ( | ) | [private] |
add data to food to be used in testing
Definition at line 23 of file FoodItemRowTest.cs.
void Foodolini.Database.Test.FoodItemRowTest.SaveLoadTest | ( | ) |
Saves a FoodItemRow to the database and test if the object recives an ID. Load the FoodItemRow from the database and test if the data match.
Definition at line 53 of file FoodItemRowTest.cs.
void Foodolini.Database.Test.FoodItemRowTest.UpdateTest | ( | ) |
test the database update function to update an existing FoodItemRow by saving data to the database, then update it and check that the data is correct.
Definition at line 147 of file FoodItemRowTest.cs.
void Foodolini.Database.Test.FoodItemRowTest.WereTest | ( | ) |
test the were and singleware command by inserting aditional rows to the database and then use the were method to load the data rows specified by the parameters and then test if the rows match.
Definition at line 194 of file FoodItemRowTest.cs.
Definition at line 15 of file FoodItemRowTest.cs.
Definition at line 16 of file FoodItemRowTest.cs.
Definition at line 17 of file FoodItemRowTest.cs.