OpenPetra
Free Administration Software for Non-Profits
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
Tests.MFinance.Server.Gift.TGiftBatchTest 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 TestPostGiftBatch ()
 This will import a test gift batch, and post it. More...
 
void TestPostGiftBatchWithMotivationDetailCostCentre ()
 This will import a test gift batch, and check if the cost centre will be fixed according to the motivation detail More...
 
void TestProcessAdminFees ()
 This will test the admin fee processer More...
 
void TestGetRecipientFundNumber ()
 This will test the admin fee processer More...
 
void TestBatchPostingRecalculations ()
 This will test that the correct Recipient Field, Cost Centre and Account are used for a gift when posting a batch. Two gifts are tested. One positive and one negative. Only the positive gift should be updated. The Negative gift should be unchanged. More...
 
void TestBatchLoadingRecalculations ()
 This will test that the correct Recipient Field and Cost Centre are used for a gift when loading a batch More...
 
void TestRecurringBatchSubmitRecalculations ()
 This will test that the correct Recipient Field is used for a gift when submitting a recurring batch. More...
 
void TestRecurringBatchLoadingRecalculations ()
 This will test that the correct Recipient Field is used for a recurring gift when loading a recurring batch More...
 
void TestPostGiftBatchArgumentValidation ()
 This will test argument validation for TGiftTransactionWebConnector.PostGiftBatch More...
 
void TestPostGiftBatchesArgumentValidation ()
 This will test argument validation for TGiftTransactionWebConnector.PostGiftBatches More...
 
void TestPrepareGiftBatchForPostingArgumentValidation ()
 This will test argument validation for TGiftTransactionWebConnector.PrepareGiftBatchForPosting More...
 
void TestLoadAGiftBatchAndRelatedDataArgumentValidation ()
 This will test argument validation for TGiftTransactionWebConnector.LoadAGiftBatchAndRelatedData More...
 
void TestCalculateAdminFeeArgumentValidation ()
 This will test argument validation for TGiftTransactionWebConnector.CalculateAdminFee More...
 
void TestAddToFeeTotalsArgumentValidation ()
 This will test argument validation for TGiftTransactionWebConnector.AddToFeeTotals More...
 

Detailed Description

This will test the business logic directly on the server.

Member Function Documentation

◆ Init()

void Tests.MFinance.Server.Gift.TGiftBatchTest.Init ( )
inline

open database connection or prepare other things for this test

◆ TearDown()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TearDown ( )
inline

cleaning up everything that was set up for this test

◆ TestAddToFeeTotalsArgumentValidation()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestAddToFeeTotalsArgumentValidation ( )
inline

This will test argument validation for TGiftTransactionWebConnector.AddToFeeTotals

◆ TestBatchLoadingRecalculations()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestBatchLoadingRecalculations ( )
inline

This will test that the correct Recipient Field and Cost Centre are used for a gift when loading a batch

◆ TestBatchPostingRecalculations()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestBatchPostingRecalculations ( )
inline

This will test that the correct Recipient Field, Cost Centre and Account are used for a gift when posting a batch. Two gifts are tested. One positive and one negative. Only the positive gift should be updated. The Negative gift should be unchanged.

◆ TestCalculateAdminFeeArgumentValidation()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestCalculateAdminFeeArgumentValidation ( )
inline

This will test argument validation for TGiftTransactionWebConnector.CalculateAdminFee

◆ TestGetRecipientFundNumber()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestGetRecipientFundNumber ( )
inline

This will test the admin fee processer

◆ TestLoadAGiftBatchAndRelatedDataArgumentValidation()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestLoadAGiftBatchAndRelatedDataArgumentValidation ( )
inline

This will test argument validation for TGiftTransactionWebConnector.LoadAGiftBatchAndRelatedData

◆ TestPostGiftBatch()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestPostGiftBatch ( )
inline

This will import a test gift batch, and post it.

◆ TestPostGiftBatchArgumentValidation()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestPostGiftBatchArgumentValidation ( )
inline

This will test argument validation for TGiftTransactionWebConnector.PostGiftBatch

◆ TestPostGiftBatchesArgumentValidation()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestPostGiftBatchesArgumentValidation ( )
inline

This will test argument validation for TGiftTransactionWebConnector.PostGiftBatches

◆ TestPostGiftBatchWithMotivationDetailCostCentre()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestPostGiftBatchWithMotivationDetailCostCentre ( )
inline

This will import a test gift batch, and check if the cost centre will be fixed according to the motivation detail

◆ TestPrepareGiftBatchForPostingArgumentValidation()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestPrepareGiftBatchForPostingArgumentValidation ( )
inline

This will test argument validation for TGiftTransactionWebConnector.PrepareGiftBatchForPosting

◆ TestProcessAdminFees()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestProcessAdminFees ( )
inline

This will test the admin fee processer

◆ TestRecurringBatchLoadingRecalculations()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestRecurringBatchLoadingRecalculations ( )
inline

This will test that the correct Recipient Field is used for a recurring gift when loading a recurring batch

◆ TestRecurringBatchSubmitRecalculations()

void Tests.MFinance.Server.Gift.TGiftBatchTest.TestRecurringBatchSubmitRecalculations ( )
inline

This will test that the correct Recipient Field is used for a gift when submitting a recurring batch.


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