public RestClient(IConfigProvider configProvider, IJsonSerializer serializer) { authHelper = new AuthHelper(configProvider); jsonSerializer = serializer; httpClient = new HttpClient { BaseAddress = configProvider.GetBaseUrl() }; httpClient.DefaultRequestHeaders.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/json")); }