AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
EM::Tests::TestCardCheckoutOptimalization Class Reference

TestCardCheckoutOptimalization - tests for optimizing one-way tickets on card during checkout (tariff modification and refund) More...

#include <TestCardCheckoutOptimalization.h>

Inheritance diagram for EM::Tests::TestCardCheckoutOptimalization:
Inheritance graph
[legend]
Collaboration diagram for EM::Tests::TestCardCheckoutOptimalization:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Member Functions

 TestCardCheckoutOptimalization ()
 
virtual ~TestCardCheckoutOptimalization ()
 
void setUp ()
 
void tearDown ()
 
void CheckCheckoutOptimalization ()
 
- Public Member Functions inherited from EM::Tests::TestVehicle
 TestVehicle (TicketIssueLogic::TicketIssueLogicTestWrapper *ticketIssueLogicTestWrapper)
 
virtual ~TestVehicle ()
 
void setUp ()
 
void tearDown ()
 
- Public Member Functions inherited from EM::Tests::TestCommon
 TestCommon (TicketIssueLogic::TicketIssueLogicTestWrapper *ticketIssueLogicTestWrapper)
 
virtual ~TestCommon ()
 
void setUp ()
 
void tearDown ()
 
TicketIssueLogic::TicketIssueLogicTestWrapperGetTicketIssueLogicWrapper ()
 GetTicketIssueLogicWrapper. More...
 
std::string Message (const QString &shortDescription, int returnValue)
 Message. More...
 
long GetTicketPriceFromOutputDataCollection ()
 GetTicketPriceFromOutputCollection. More...
 
long GetTicketDistance ()
 GetTicketDistance. More...
 
bool SetTemporaryTariffSystemSetting (const unsigned long tariffSystemSettingNumber, const long tariffSystemSettingValue)
 
bool SetTemporaryTariffPropertyValue (const unsigned long tariffTicketNumber, const unsigned long tariffPropertyID, const long tariffPropertyValue)
 
bool GetZonesOfPaidTicketSegments (std::list< unsigned long > &paidZones)
 
- Public Member Functions inherited from EM::Tests::TestCard
 TestCard ()
 
virtual ~TestCard ()
 
bool PrepareCardFacadeForTest ()
 
bool PrepareCardFacadeForTest (QString &inputCardDataFilePath)
 
void SimulateCardWrite ()
 
bool CheckWritingFacade ()
 
bool CheckWritingFacade (QString &resultCardDataFilePath)
 

Additional Inherited Members

- Static Public Member Functions inherited from EM::Tests::TestCard
static void SetOneWayTicketsValidity (const unsigned long validityStartTime, const unsigned long validityEndTime)
 
- Protected Member Functions inherited from EM::Tests::TestCommon
const QString & GetConfigurationFileName () const
 
void IssueTicketAndWriteStatistic ()
 

Detailed Description

TestCardCheckoutOptimalization - tests for optimizing one-way tickets on card during checkout (tariff modification and refund)

Line/trip: 12/1

Testcases:
1) testcase_no_fellows.xml - OWT for card owner only (no fellow travellers). Passenger does checkout on third bus stop, tariff should be modified and EP value should be increased.
2) testcase_fellows.xml - OWT for card owner + two OWTs for fellow travellers. Passengers do checkout on third bus stop, all tariffs should be modified and EP value should be increased.
3) testcase_pcl_and_fellows.xml - TT for owner + two OWTs for fellow travellers. Passengers do checkout on third bus stop, tariffs for fellow travellers should be modified and EP value should be increased by price difference on fellow travellers tariffs. Tariff on owner ticket is not modified.

Constructor & Destructor Documentation

EM::Tests::TestCardCheckoutOptimalization::TestCardCheckoutOptimalization ( )
EM::Tests::TestCardCheckoutOptimalization::~TestCardCheckoutOptimalization ( )
virtual

Member Function Documentation

void EM::Tests::TestCardCheckoutOptimalization::CheckCheckoutOptimalization ( )
void EM::Tests::TestCardCheckoutOptimalization::setUp ( )

Here is the call graph for this function:

void EM::Tests::TestCardCheckoutOptimalization::tearDown ( )

Here is the call graph for this function:


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