Exemplo n.º 1
0
        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 = LogProxyFactory.Create <HttpDataRestful>(args);

            object[] args2 =
            {
                "https://api.betradar.com/v1/replay",
                _httpDataRestful,
                0
            };
            _replayManager = LogProxyFactory.Create <ReplayManager>(args2);
        }
Exemplo n.º 2
0
        public void Init()
        {
            var config = TestConfigurationInternal.GetConfig();

            object[] args =
            {
                new HttpClient(),
                config.AccessToken,
                new Deserializer <response>(),
                5,
                5
            };

            _httpDataRestful = LogProxyFactory.Create <HttpDataRestful>(args, LoggerType.RestTraffic);
        }
Exemplo n.º 3
0
        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 = LogProxyFactory.Create <BookmakerDetailsFetcher>(args, LoggerType.ClientInteraction);
        }
Exemplo n.º 4
0
        public void Init()
        {
            var config = TestConfigurationInternal.GetConfig();

            object[] args =
            {
                new HttpClient(),
                config.AccessToken,
                new Deserializer <response>(),
                5,
                15
            };

            _httpDataRestful = LogProxyFactory.Create <IDataRestful>(args);

            object[] args2 =
            {
                "https://api.betradar.com/v1/replay",
                _httpDataRestful,
                0
            };
            _replayManager = LogProxyFactory.Create <IReplayManager>(args2);
        }
Exemplo n.º 5
0
 public void Init()
 {
     _demoClass = LogProxyFactory.Create <DemoMethods>(null, m => m.Name.Contains("D"), LoggerType.ClientInteraction);
 }