FactDev  0.1
contributorylisttest.h
1 #ifndef CONTRIBUTORYLISTTEST_H
2 #define CONTRIBUTORYLISTTEST_H
3 #include "QTestRunner/testrunner.h"
4 
5 #include "models/contributorieslist.h"
6 
7 #include "utils/double.h"
8 using namespace Models;
9 
10 class ContributoryListTest : public QObject
11 {
12  Q_OBJECT
13 public:
15 private slots:
16  void addProject();
17  void getPriceTest();
18  void getPriceOfProject();
19 
20  void getQuantityTest();
21  void getQuantityOfProjectTest();
22 
23  void testMonthQuantity();
24  void testDifferentUnit();
25 private:
26  void setup();
27 
28  Project* p1;
29  Project* p2;
30  Project* p3;
31 
32  Contributory c1;
33  Contributory c2;
34  Contributory c3;
35  Contributory c4;
36  Contributory c5;
37  Contributory c6;
38 };
39 DECLARE_TEST(ContributoryListTest)
40 
41 #endif // CONTRIBUTORYLISTTEST_H
The Project class : Project linked to a Customer.
Definition: project.h:17
Definition: contributorylisttest.h:10
The Unit enum Unity of work : hour or day.
Definition: contributory.h:18