@@ -32,39 +32,39 @@ static async Task Main(string[] args){
3232 // messagingServiceClient,
3333 // CancellationToken.None);
3434
35- //HttpClientHandler handler = new HttpClientHandler
36- // {
37- // ServerCertificateCustomValidationCallback = (message,
38- // cert,
39- // chain,
40- // errors) => {
41- // return true;
42- // }
43- // };
44- //HttpClient client = new HttpClient(handler);
45- //ISecurityServiceClient securityServiceClient = new SecurityServiceClient(delegate(String s){ return "https://192.168.0.133:5001"; },client);
46- //IEstateClient estateClient = new EstateClient(delegate (String s) { return "http://192.168.0.133:5000"; }, client);
47- //ITransactionProcessorClient transactionProcessorClient = new TransactionProcessorClient(delegate (String s) { return "http://192.168.0.133:5002"; }, client);
48- //String estateManagementApi = "http://192.168.0.133:5000";
49- //String fileProcessorApi = "http://192.168.0.133:5009";
50- //String testHostApi = "http://192.168.0.133:9000";
51- //String clientId = "serviceClient";
52- //String clientSecret = "d192cbc46d834d0da90e8a9d50ded543";
35+ HttpClientHandler handler = new HttpClientHandler
36+ {
37+ ServerCertificateCustomValidationCallback = ( message ,
38+ cert ,
39+ chain ,
40+ errors ) => {
41+ return true ;
42+ }
43+ } ;
44+ HttpClient client = new HttpClient ( handler ) ;
45+ ISecurityServiceClient securityServiceClient = new SecurityServiceClient ( delegate ( String s ) { return "https://192.168.1.167:5001" ; } , client ) ; IEstateClient estateClient = new EstateClient ( delegate ( String s ) { return "http://192.168.1.167:5000" ; } , client ) ;
46+ ITransactionProcessorClient transactionProcessorClient = new TransactionProcessorClient ( delegate ( String s ) { return "https://eo2qbmq0e4zwta5.m.pipedream.net" ; } , client ) ;
47+ String estateManagementApi = "http://192.168.1.167:5000" ;
48+ String fileProcessorApi = "http://192.168.1.167:5009" ;
49+ String testHostApi = "http://192.168.1.167:9000" ;
50+ String clientId = "serviceClient" ;
51+ String clientSecret = "d192cbc46d834d0da90e8a9d50ded543" ;
5352
54- // ITransactionDataGenerator t = new TransactionDataGenerator(securityServiceClient,
55- // estateClient,
56- // transactionProcessorClient,
57- // estateManagementApi,
58- // fileProcessorApi,
59- // testHostApi,
60- // clientId,
61- // clientSecret,
62- // RunningMode.Live);
63- // Guid estateId = Guid.Parse("435613ac-a468-47a3-ac4f-649d89764c22");
64- // Guid merchantId = Guid.Parse("ab1c99fb-1c6c-4694-9a32-b71be5d1da33");
53+ ITransactionDataGenerator t = new TransactionDataGenerator ( securityServiceClient ,
54+ estateClient ,
55+ transactionProcessorClient ,
56+ estateManagementApi ,
57+ fileProcessorApi ,
58+ testHostApi ,
59+ clientId ,
60+ clientSecret ,
61+ RunningMode . Live ) ;
62+ Guid estateId = Guid . Parse ( "435613ac-a468-47a3-ac4f-649d89764c22" ) ;
63+ Guid merchantId = Guid . Parse ( "ab1c99fb-1c6c-4694-9a32-b71be5d1da33" ) ;
6564 //await Jobs.GenerateTransactions(t, estateId, merchantId, false, CancellationToken.None);
66- var d = TransactionDataGenerator . GetTransactionDateTime ( new Random ( ) , DateTime . Now ) ;
67- Console . WriteLine ( d ) ;
65+ //var d = TransactionDataGenerator.GetTransactionDateTime(new Random(), DateTime.Now);
66+ //Console.WriteLine(d);
67+ await Jobs . PerformSettlement ( t , DateTime . Now , estateId , CancellationToken . None ) ;
6868 }
6969 }
7070}
0 commit comments