public void Init() { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; var config = TestConfigurationInternal.GetConfig(); object[] args = { new HttpClient(), config.AccessToken, new Deserializer <response>(), 5, 15 }; _httpDataRestful = LogInterceptorFactory.Create <HttpDataRestful>(args, null, LoggerType.RestTraffic); object[] args2 = { "https://stgapi.betradar.com/v1/replay", _httpDataRestful, 0 }; _replayManager = LogInterceptorFactory.Create <ReplayManager>(args2, m => m.Name.Contains("Async"), LoggerType.RestTraffic); }
public void Init() { var config = TestConfigurationInternal.GetConfig(); object[] args = { new HttpClient(), config.AccessToken, new Deserializer <response>(), 5, 5 }; _httpDataRestful = LogInterceptorFactory.Create <HttpDataRestful>(args, null, LoggerType.RestTraffic); }
public void Init() { var deserializer = new Deserializer <bookmaker_details>(); var dataFetcher = new TestDataFetcher(); var mapperFactory = new BookmakerDetailsMapperFactory(); var dataProvider = new DataProvider <bookmaker_details, BookmakerDetailsDTO>( TestData.RestXmlPath + InputXml, dataFetcher, deserializer, mapperFactory); _entity = dataProvider.GetDataAsync("", TestData.Culture.TwoLetterISOLanguageName).Result; object[] args = { dataProvider }; _bookmakerDetailsFetcher = LogInterceptorFactory.Create <BookmakerDetailsFetcher>(args, null, LoggerType.ClientInteraction); }
public void Init() { _demoClass = LogInterceptorFactory.Create <DemoMethods>(null, m => m.Name.Contains("D"), LoggerType.ClientInteraction); }