コード例 #1
0
ファイル: RefundGateway.cs プロジェクト: alastairgould/Moolah
 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;
 }