Unit test to the Model layer of Person. More...
Inherits Foodolini::BusinessLogic::Test::LogicTest.
Public Member Functions | |
void | CreatePersonTest () |
Try to create a person. | |
void | LoadCreatedPersonTest () |
Test that a Person can be saved and loaded by saving a new Person and then load it again to check if the loaded data match. | |
void | LoadPersonTest () |
Test that a Person can be loaded. | |
void | DeletePersonTest () |
Tests that a Person can be deleted. by first creading a Person and the delete it again an test that the Person have been deleted. | |
void | EditPersonTest () |
Tests that a persons details can be changed. Here changed the gender from male to female, the age 10 years younger, the height. Changes also affect the BMR and MET. |
Unit test to the Model layer of Person.
Definition at line 12 of file PersonTest.cs.
void Foodolini.BusinessLogic.Test.PersonTest.CreatePersonTest | ( | ) |
Try to create a person.
Definition at line 18 of file PersonTest.cs.
void Foodolini.BusinessLogic.Test.PersonTest.DeletePersonTest | ( | ) |
Tests that a Person can be deleted. by first creading a Person and the delete it again an test that the Person have been deleted.
Definition at line 55 of file PersonTest.cs.
void Foodolini.BusinessLogic.Test.PersonTest.EditPersonTest | ( | ) |
Tests that a persons details can be changed. Here changed the gender from male to female, the age 10 years younger, the height. Changes also affect the BMR and MET.
Revealed BMR in integers and METS in doubles. Changed the METS to integers and made a cast in the formula.
Definition at line 85 of file PersonTest.cs.
void Foodolini.BusinessLogic.Test.PersonTest.LoadCreatedPersonTest | ( | ) |
Test that a Person can be saved and loaded by saving a new Person and then load it again to check if the loaded data match.
Definition at line 31 of file PersonTest.cs.
void Foodolini.BusinessLogic.Test.PersonTest.LoadPersonTest | ( | ) |
Test that a Person can be loaded.
Definition at line 42 of file PersonTest.cs.