示例#1
0
 public CancelGateway(DataCashConfiguration configuration, IHttpClient httpClient, IDataCashCancelTransactionRequestBuilder requestBuilder, ICancelTransactionResponseParser responseParser)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     if (httpClient == null) throw new ArgumentNullException("httpClient");
     if (responseParser == null) throw new ArgumentNullException("responseParser");
     if (requestBuilder == null) throw new ArgumentNullException("requestBuilder");
     _configuration = configuration;
     _httpClient = httpClient;
     _requestBuilder = requestBuilder;
     _responseParser = responseParser;
 }
示例#2
0
 internal CancelGateway(DataCashConfiguration configuration, IHttpClient httpClient, IDataCashCancelTransactionRequestBuilder requestBuilder, ICancelTransactionResponseParser responseParser)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     if (httpClient == null)
     {
         throw new ArgumentNullException("httpClient");
     }
     if (responseParser == null)
     {
         throw new ArgumentNullException("responseParser");
     }
     if (requestBuilder == null)
     {
         throw new ArgumentNullException("requestBuilder");
     }
     _configuration  = configuration;
     _httpClient     = httpClient;
     _requestBuilder = requestBuilder;
     _responseParser = responseParser;
 }