public void FixtureSetup() { _server = WebApp.Start<Startup>(BASE_ADDRESS); IHttwrapConfiguration configuration = new HttwrapConfiguration(BASE_ADDRESS); _client = new HttwrapClient(configuration); }
public void FixtureSetup() { _server = WebApp.Start<Startup>(BaseAddress); IHttwrapConfiguration configuration = new HttwrapConfiguration(BaseAddress); _client = new HttwrapClient(configuration); }
public void FixtureSetup() { _server = WebApp.Start <Startup>(BaseAddress); IHttwrapConfiguration configuration = new HttwrapConfiguration(BaseAddress); _client = new HttwrapClient(configuration); }
public void FixtureSetup() { _server = WebApp.Start <Startup>(BASE_ADDRESS); IHttwrapConfiguration configuration = new HttwrapConfiguration(BASE_ADDRESS); _client = new HttwrapClient(configuration); }
private void SetupHttpConnection(IConfiguration configuration) { var timeTrackerApiUrl = configuration["ConnectionStrings:TimeTrackerApi"]; _loggerWrapper.LogInformation("Setting up http connection with timeTrackerApiUrl of " + timeTrackerApiUrl, this.GetType().Name, nameof(SetupHttpConnection) + "()", null); IHttwrapConfiguration httwrapConfiguration = new HttwrapConfiguration(timeTrackerApiUrl); _httwrap = new HttwrapClient(httwrapConfiguration); }
public HurriyetApiApiClient(IHurriyetApiConfiguration apiConfiguration) { _apiConfiguration = apiConfiguration; IHttwrapConfiguration configuration = new HttwrapConfiguration(string.IsNullOrEmpty(_apiConfiguration.BaseUrl) ? Constants.BaseUrl : _apiConfiguration.BaseUrl); _httwrapClient = new HttwrapClient(configuration); _apiResourceFactory = new ApiResourceFactory(_httwrapClient); _httwrapClient.AddInterceptor(new ApiInterceptor(_apiConfiguration.ApiKey)); }
private void SetupHttpConnection(string baseUrl) { if (!UriIncludesHttpPrefex(baseUrl) && !UriIncludesHttpsPrefex(baseUrl)) { var errorMessage = $"URI is invalid because http(s) was not included in ${baseUrl}"; _loggerWrapper.LogInformation(errorMessage, GetType().Name, nameof(SetupHttpConnection), null); throw new ArgumentException(errorMessage, nameof(baseUrl)); } _loggerWrapper.LogInformation("Setting up http connection with base url of " + baseUrl, GetType().Name, nameof(SetupHttpConnection) + "()", null); IHttwrapConfiguration httwrapConfiguration = new HttwrapConfiguration(baseUrl); _httwrapClient = new HttwrapClient(httwrapConfiguration); }
public WriterResource(IHttwrapClient httwrapClient) { _httwrapClient = httwrapClient; }
public ArticleResource(IHttwrapClient httwrapClient) { _httwrapClient = httwrapClient; }
public ApiResourceFactory(IHttwrapClient httwrapClient) { _httwrapClient = httwrapClient; }