Example #1
0
 public RefundGateway(DataCashConfiguration configuration, IHttpClient httpClient, IDataCashRefundTransactionRequestBuilder refundRequestBuilder, IRefundTransactionResponseParser refundResponseParser)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     if (httpClient == null)
     {
         throw new ArgumentNullException("httpClient");
     }
     if (refundResponseParser == null)
     {
         throw new ArgumentNullException("refundResponseParser");
     }
     if (refundRequestBuilder == null)
     {
         throw new ArgumentNullException("refundResponseParser");
     }
     _configuration        = configuration;
     _httpClient           = httpClient;
     _refundRequestBuilder = refundRequestBuilder;
     _refundResponseParser = refundResponseParser;
 }