コード例 #1
0
        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);
        }
コード例 #2
0
 public AcquiringBankClient(HttpClient httpClient, AcquiringBankConfig acquiringBankConfig)
 {
     httpClient.BaseAddress = new Uri(acquiringBankConfig.BaseAddress);
     _httpClient            = httpClient;
 }