public TokenClient( HttpClient client, IApiAppVersion appVersion, ITokenStorage tokenStorage, string apiVersion, string locale) : base(appVersion, tokenStorage, apiVersion, locale) { _client = client; }
public BaseApiClient( IApiAppVersion appVersion, ITokenStorage tokenStorage, string apiVersion, string locale) { _apiVersion = apiVersion; TokenStorage = tokenStorage; _appVersion = appVersion; _locale = locale; }
public ApiClient( HttpClient client, HttpClient noCacheClient, ILogger logger, ITokenStorage tokenStorage, IApiAppVersion appVersion, string apiVersion, string locale) : base(logger, appVersion, tokenStorage, apiVersion, locale) { _client = client; _noCacheClient = noCacheClient; }
public void TestInitialize() { _logger = Substitute.For <ILogger>(); _appVersion = Substitute.For <IApiAppVersion>(); _appVersion.Value().Returns(string.Empty); _tokenStorage = Substitute.For <ITokenStorage>(); _tokenStorage.AccessToken.Returns(string.Empty); _tokenStorage.Uid.Returns(string.Empty); _httpClient = _fakeHttpMessageHandler.ToHttpClient(); _httpClient.BaseAddress = new Uri("http://127.0.0.1"); _apiClient = new ApiClient(_httpClient, _httpClient, _logger, _tokenStorage, _appVersion, null, string.Empty); }