Foodolini.Database.Test.DatabaseTest Class Reference

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.

Collaboration diagram for Foodolini.Database.Test.DatabaseTest:
Collaboration graph

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.


Member Data Documentation

const string Foodolini.Database.Test.DatabaseTest.databasePath = "test.db" [private]

Path to the temporary test database.

Definition at line 23 of file DatabaseTest.cs.

Definition at line 25 of file DatabaseTest.cs.


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

Foodolini 1.0.0 Documentation, generated with DoxyGen.