public AcquiringBankClientShould() { _fixture = new Fixture(); _httpMessageHandlerProxy = new HttpMessageHandlerProxy(); HttpClient httpClient = new HttpClient(_httpMessageHandlerProxy); var config = new AcquiringBankConfig { BaseAddress = "http://tempuri.org/api/" }; _acquiringBankClient = new AcquiringBankClient(httpClient, config); }
public AcquiringBankClient(HttpClient httpClient, AcquiringBankConfig acquiringBankConfig) { httpClient.BaseAddress = new Uri(acquiringBankConfig.BaseAddress); _httpClient = httpClient; }