Revize 14bef778
Přidáno uživatelem Eliška Mourycová před téměř 4 roky(ů)
Server/ServerApp/Program.cs | ||
---|---|---|
55 | 55 |
|
56 | 56 |
|
57 | 57 |
// data download test |
58 |
//DataDownloader dd = DataDownloadAndRetrievalTest(config);
|
|
58 |
DataDownloader dd = DataDownloadAndRetrievalTest(config); |
|
59 | 59 |
|
60 | 60 |
// xml building test |
61 | 61 |
//XMLTest(); |
... | ... | |
71 | 71 |
//JSONParserTest(); |
72 | 72 |
|
73 | 73 |
// model test |
74 |
//IPredictionController controller = PredictionTest(dd);
|
|
74 |
IPredictionController controller = PredictionTest(dd); |
|
75 | 75 |
|
76 | 76 |
|
77 | 77 |
|
... | ... | |
79 | 79 |
|
80 | 80 |
|
81 | 81 |
// connection test |
82 |
ConnectionTest(/*controller,*/ config);
|
|
82 |
ConnectionTest(controller, config);
|
|
83 | 83 |
|
84 | 84 |
|
85 | 85 |
Console.ReadLine(); |
... | ... | |
168 | 168 |
return predictionController; |
169 | 169 |
} |
170 | 170 |
|
171 |
private static void ConnectionTest(/*IPredictionController predictionController,*/ Config config)
|
|
171 |
private static void ConnectionTest(IPredictionController predictionController, Config config)
|
|
172 | 172 |
{ |
173 |
ConnectionListener cl = new ConnectionListener(int.Parse(config.Port)); |
|
173 |
ConnectionListener cl = new ConnectionListener(int.Parse(config.Port), predictionController);
|
|
174 | 174 |
cl.StartListening(); |
175 | 175 |
|
176 | 176 |
//HttpRequestHandler hrh = new HttpRequestHandler(int.Parse(config.Port)); |
Také k dispozici: Unified diff
Fixed build errors