-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
61 lines (47 loc) · 977 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include "Agentiedeturismqt.h"
#include "UI.h"
#include <iostream>
#include <string>
#include "Oferta.h"
#include "Service.h"
#include "Repo.h"
#include "Validators.h"
#include "wishlist_Repo.h"
#include <stdlib.h>
#include <crtdbg.h>
#include <vector>
using namespace std;
void all_tests();
int main(int argc, char* argv[])
{
all_tests();
QApplication a(argc, argv);
vector<Oferta> Lista_oferte;
Valid valid;
Repo repo(Lista_oferte);
wish_list wish;
Service service(repo, wish, valid);
/// definim UI-ul
console gui(service);
gui.build_UI();
gui.connectSignalsSlots();
gui.show();
_CrtDumpMemoryLeaks();
return a.exec();
}
//// teste
//int main()
//{
// all_tests();
// return 0;
//}
void all_tests()
{
vector<Oferta> Lista_oferte;
Valid valid;
Repo repo(Lista_oferte);
wish_list wish;
Service service(repo, wish, valid);
test_service(service);
tests_validators(valid);
}