Abstract class for all nUnit tests that tests the Foodolini.Database component. More...
Inherited by Foodolini.Database.Test.ExerciseRowTest, Foodolini.Database.Test.FoodDescriptionTest, Foodolini.Database.Test.FoodGroupTest, Foodolini.Database.Test.FoodItemRowTest, Foodolini.Database.Test.NutritionDefinitionTest, Foodolini.Database.Test.PictureTest, Foodolini.Database.Test.RatingTest, Foodolini.Database.Test.RecipeRowTest, and Foodolini.Database.Test.UserTest.
Public Member Functions | |
void | CreateDatabase () |
Initializes a Repository connected to an empty database. | |
void | DeleteDatabase () |
Deletes the test database file, if existing. | |
Protected Attributes | |
Repository | repository = null |
Private Attributes | |
const string | databasePath = "test.db" |
Path to the temporary test database. |
Abstract class for all nUnit tests that tests the Foodolini.Database component.
This baseclass sets up a Repository with a connection to an empty database prior to every test in the it's subclass.
Definition at line 18 of file DatabaseTest.cs.
void Foodolini.Database.Test.DatabaseTest.CreateDatabase | ( | ) |
Initializes a Repository connected to an empty database.
Definition at line 31 of file DatabaseTest.cs.
void Foodolini.Database.Test.DatabaseTest.DeleteDatabase | ( | ) |
Deletes the test database file, if existing.
Definition at line 41 of file DatabaseTest.cs.
const string Foodolini.Database.Test.DatabaseTest.databasePath = "test.db" [private] |
Path to the temporary test database.
Definition at line 23 of file DatabaseTest.cs.
Repository Foodolini.Database.Test.DatabaseTest.repository = null [protected] |
Definition at line 25 of file DatabaseTest.cs.