FactDev  0.1
billingdatabasetest.h
1 #ifndef BILLINGDATABASETEST_H
2 #define BILLINGDATABASETEST_H
3 #include <QtTest/QtTest>
4 #include "QTestRunner/testrunner.h"
5 
6 #include "models/billing.h"
7 
8 using namespace Models;
9 
10 class BillingDatabaseTest : public QObject
11 {
12  Q_OBJECT
13 public:
15 
16 private slots:
17  void insert();
18  void remove();
19  void update();
20  void selectBillingNotFound();
21  void selectBillingFound();
22  void addBillingProject();
23  void removeBillingProject();
24  void getMaxBillingNumber();
25  void getMaxQuoteNumber();
26  void getMaxBillingNumberOfCustomer();
27  void getMaxQuoteNumberOfCustomer();
28  void getBilling();
29  void getAllBillingsOnly();
30  void getBillingsBetweenDates();
31  void getAllBillingsOfProjectTest();
32  void getNb();
33 private:
34  Billing* b1;
35  int _lastInsert;
36 
37 
38  void setup();
39 };
40 
41 DECLARE_TEST(BillingDatabaseTest)
42 
43 #endif // BILLINGDATABASETEST_H
Definition: billingdatabasetest.h:10
The Billing class : Billing or Quote of a Customer.
Definition: billing.h:28