OpenPetra
Free Administration Software for Non-Profits
Tests.MPartner.Server.PartnerEdit.TPartnerEditTest Class Reference

This will test the business logic directly on the server. More...

Public Member Functions

void Init ()
 open database connection or prepare other things for this test More...
 
void TearDown ()
 cleaning up everything that was set up for this test More...
 
void TestSaveNewPartnerWithLocation ()
 create a new partner and save it with a new location More...
 
void TestNewPartnerWithLocation0 ()
 new partner with location 0. first save the partner with location 0, then add a new location, and save again More...
 
void TestSaveNewPartnerWithExistingLocation ()
 create a new partner and save it with an existing location More...
 
void TestFamilyPropagateNewLocation ()
 add a new location for a family, and propagate this to the members of the family More...
 
void TestModifyLocationCreateNew ()
 modify a location that is used by several partners, but only modify the location for this partner. need to create a new location More...
 
void TestRemoveLocationFromSeveralPartners ()
 delete a location More...
 
void TestChangeLocationUpdatesDateModifiedOfAllPartners ()
 when adding a new location to a family, all the partners involved should be updated p_partner.s_date_modified_d. even if the partner is not part of the dataset yet. More...
 
void TestChangeFamilyID ()
 check if changing the family will change the family id of all other members of the family as well More...
 
void TestDeleteFamily ()
 check if deleting of families works More...
 
void TestDeletePerson ()
 check if deleting of persons works More...
 
void TestDeleteUnit ()
 check if deleting of units works More...
 
void TestDeleteChurch ()
 check if deleting of churches works More...
 
void TestDeleteOrganisation ()
 check if deleting of organisations works More...
 
void TestDeleteBank ()
 check if deleting of banks works More...
 
void TestDeleteVenue ()
 check if deleting of venues works More...
 
void TestCreateSimplePartnerUserAndEdit ()
 Following will be the test for the SimplePartnerEdit. More...
 

Detailed Description

This will test the business logic directly on the server.

Member Function Documentation

◆ Init()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.Init ( )
inline

open database connection or prepare other things for this test

◆ TearDown()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TearDown ( )
inline

cleaning up everything that was set up for this test

◆ TestChangeFamilyID()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestChangeFamilyID ( )
inline

check if changing the family will change the family id of all other members of the family as well

◆ TestChangeLocationUpdatesDateModifiedOfAllPartners()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestChangeLocationUpdatesDateModifiedOfAllPartners ( )
inline

when adding a new location to a family, all the partners involved should be updated p_partner.s_date_modified_d. even if the partner is not part of the dataset yet.

◆ TestCreateSimplePartnerUserAndEdit()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestCreateSimplePartnerUserAndEdit ( )
inline

Following will be the test for the SimplePartnerEdit.

test the entiry create and edit parts of simplepartneredit

◆ TestDeleteBank()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestDeleteBank ( )
inline

check if deleting of banks works

◆ TestDeleteChurch()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestDeleteChurch ( )
inline

check if deleting of churches works

◆ TestDeleteFamily()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestDeleteFamily ( )
inline

check if deleting of families works

◆ TestDeleteOrganisation()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestDeleteOrganisation ( )
inline

check if deleting of organisations works

◆ TestDeletePerson()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestDeletePerson ( )
inline

check if deleting of persons works

◆ TestDeleteUnit()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestDeleteUnit ( )
inline

check if deleting of units works

◆ TestDeleteVenue()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestDeleteVenue ( )
inline

check if deleting of venues works

◆ TestFamilyPropagateNewLocation()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestFamilyPropagateNewLocation ( )
inline

add a new location for a family, and propagate this to the members of the family

◆ TestModifyLocationCreateNew()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestModifyLocationCreateNew ( )
inline

modify a location that is used by several partners, but only modify the location for this partner. need to create a new location

◆ TestNewPartnerWithLocation0()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestNewPartnerWithLocation0 ( )
inline

new partner with location 0. first save the partner with location 0, then add a new location, and save again

◆ TestRemoveLocationFromSeveralPartners()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestRemoveLocationFromSeveralPartners ( )
inline

delete a location

◆ TestSaveNewPartnerWithExistingLocation()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestSaveNewPartnerWithExistingLocation ( )
inline

create a new partner and save it with an existing location

◆ TestSaveNewPartnerWithLocation()

void Tests.MPartner.Server.PartnerEdit.TPartnerEditTest.TestSaveNewPartnerWithLocation ( )
inline

create a new partner and save it with a new location


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