OpenPetra
Free Administration Software for Non-Profits
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
Tests.MPartner.Server.AddressTools.TAddressToolsTest 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 Test1_ExpiredNonMailAddress ()
 Test the address tools More...
 
void Test2_FutureNonMailAddress ()
 
void Test3_CurrentNonMailAddress ()
 
void Test4_ExpiredMailAddress ()
 
void Test5_FutureMailAddress ()
 
void Test6_CurrentMailAddress ()
 
void TestEqualDates ()
 
void ActAndAssert (string StreetLine)
 Run the queries and check the results More...
 
void CreateExpiredAddresses (bool Mailing)
 
void CreateFutureAddresses (bool Mailing)
 
void CreateCurrentAddresses (bool Mailing)
 
void CreateNewLocation (Int64 APartnerKey, DateTime DateEffective, DateTime? GoodUntil, bool Mailing, string Street, PartnerEditTDS AMainDS)
 Sets up test location rows More...
 
void SaveChanges ()
 

Detailed Description

This will test the business logic directly on the server.

Member Function Documentation

◆ ActAndAssert()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.ActAndAssert ( string  StreetLine)
inline

Run the queries and check the results

Parameters
StreetLine

◆ CreateCurrentAddresses()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.CreateCurrentAddresses ( bool  Mailing)
inline

Parameters
Mailing

◆ CreateExpiredAddresses()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.CreateExpiredAddresses ( bool  Mailing)
inline

Parameters
Mailing

◆ CreateFutureAddresses()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.CreateFutureAddresses ( bool  Mailing)
inline

Parameters
Mailing

◆ CreateNewLocation()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.CreateNewLocation ( Int64  APartnerKey,
DateTime  DateEffective,
DateTime?  GoodUntil,
bool  Mailing,
string  Street,
PartnerEditTDS  AMainDS 
)
inline

Sets up test location rows

Parameters
APartnerKey
DateEffective
GoodUntil
Mailing
Street
AMainDS

◆ Init()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.Init ( )
inline

Open database connection or prepare other things for this test

◆ SaveChanges()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.SaveChanges ( )
inline

◆ TearDown()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.TearDown ( )
inline

cleaning up everything that was set up for this test

◆ Test1_ExpiredNonMailAddress()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.Test1_ExpiredNonMailAddress ( )
inline

Test the address tools

◆ Test2_FutureNonMailAddress()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.Test2_FutureNonMailAddress ( )
inline

◆ Test3_CurrentNonMailAddress()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.Test3_CurrentNonMailAddress ( )
inline

◆ Test4_ExpiredMailAddress()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.Test4_ExpiredMailAddress ( )
inline

◆ Test5_FutureMailAddress()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.Test5_FutureMailAddress ( )
inline

◆ Test6_CurrentMailAddress()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.Test6_CurrentMailAddress ( )
inline

◆ TestEqualDates()

void Tests.MPartner.Server.AddressTools.TAddressToolsTest.TestEqualDates ( )
inline


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