FactDev  0.1
billingmodeltest.h
1 #ifndef BILLINGMODELTEST_H
2 #define BILLINGMODELTEST_H
3 #include "QTestRunner/testrunner.h"
4 
5 #include "models/billing.h"
6 #include "database/billingdatabase.h"
7 #include "utils/double.h"
8 
9 using namespace Models;
10 class BillingModelTest : public QObject
11 {
12  Q_OBJECT
13 public:
15 private slots:
16  void equals1();
17  void equals2();
18  void notEquals();
19 
20  void commitUpdate();
21  void commitInsert();
22  void hydrat();
23  void hydratWithContributories();
24  void commitRemove();
25  void sumQuantityTest();
26  void getPriceTest();
27  void isBillingOrQuote();
28  void billingDateInferiorToDate();
29 
30 private:
31  Billing* b1;
32  Billing* b2;
33  void setup();
34 };
35 DECLARE_TEST(BillingModelTest)
36 
37 #endif // BILLINGMODELTEST_H
Definition: billingmodeltest.h:10
The Billing class : Billing or Quote of a Customer.
Definition: billing.h:28