public void Setup() { _restClient = new RestClient(); _cache = new ConcurrentCache(); _testConfig = TestConfig.GetConfig(TestConfig.DEFAULT_TEST_CONFIG); _config = new MobileConnectConfig() { DiscoveryUrl = _testConfig.DiscoveryUrl, ClientId = _testConfig.ClientId, ClientSecret = _testConfig.ClientSecret, RedirectUrl = _testConfig.RedirectUrl, }; _mobileConnect = new MobileConnectWebInterface(_config, _cache, _restClient); }
public void Setup() { _restClient = new RestClient(); _cache = new ConcurrentDiscoveryCache(); _discovery = new GSMA.MobileConnect.Discovery.Discovery(_cache, _restClient); _authentication = new GSMA.MobileConnect.Authentication.Authentication(_restClient); _testConfig = TestConfig.GetConfig(TestConfig.DEFAULT_TEST_CONFIG); _config = new MobileConnectConfig() { DiscoveryUrl = _testConfig.DiscoveryUrl, ClientId = _testConfig.ClientId, ClientSecret = _testConfig.ClientSecret, RedirectUrl = _testConfig.RedirectUrl, }; _mobileConnect = new MobileConnectWebInterface(_discovery, _authentication, _config); }
public void Setup() { _testConfig = TestConfig.GetConfig(TestConfig.DEFAULT_TEST_CONFIG); Setup(new RestClient()); }
public void Setup() { _testConfig = TestConfig.GetConfig(TestConfig.DEFAULT_TEST_CONFIG); Setup(new RestClient(TimeSpan.FromSeconds(20))); }