/// <summary>
 /// TODO: Make internal and visible to Moolah.Specs
 /// </summary>
 public DataCash3DSecureGateway(
     DataCash3DSecureConfiguration configuration,
     IHttpClient httpClient,
     IDataCashPaymentRequestBuilder paymentRequestBuilder,
     IDataCashAuthorizeRequestBuilder authorizeRequestBuilder,
     IDataCash3DSecureResponseParser responseParser,
     IRefundGateway refundGateway,
     ICancelGateway cancelGateway)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     if (httpClient == null)
     {
         throw new ArgumentNullException("httpClient");
     }
     if (paymentRequestBuilder == null)
     {
         throw new ArgumentNullException("paymentRequestBuilder");
     }
     if (authorizeRequestBuilder == null)
     {
         throw new ArgumentNullException("authorizeRequestBuilder");
     }
     if (responseParser == null)
     {
         throw new ArgumentNullException("responseParser");
     }
     if (refundGateway == null)
     {
         throw new ArgumentNullException("refundGateway");
     }
     if (cancelGateway == null)
     {
         throw new ArgumentNullException("cancelGateway");
     }
     _configuration = configuration;
     _httpClient    = httpClient;
     _paymentPaymentRequestBuilder = paymentRequestBuilder;
     _authorizeRequestBuilder      = authorizeRequestBuilder;
     _responseParser = responseParser;
     _refundGateway  = refundGateway;
     _cancelGateway  = cancelGateway;
 }
Esempio n. 2
0
 /// <summary>
 /// TODO: Make internal and visible to Moolah.Specs
 /// </summary>
 public DataCashMoToGateway(
     DataCashConfiguration configuration, 
     IHttpClient httpClient, 
     IDataCashPaymentRequestBuilder requestBuilder,
     IDataCashResponseParser responseParser,
     IRefundGateway refundGateway,
     ICancelGateway cancelGateway)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     if (httpClient == null) throw new ArgumentNullException("httpClient");
     if (requestBuilder == null) throw new ArgumentNullException("requestBuilder");
     if (responseParser == null) throw new ArgumentNullException("responseParser");
     if (refundGateway == null) throw new ArgumentNullException("refundGateway");
     if (cancelGateway == null) throw new ArgumentNullException("cancelGateway");
     _configuration = configuration;
     _httpClient = httpClient;
     _paymentRequestBuilder = requestBuilder;
     _responseParser = responseParser;
     _refundGateway = refundGateway;
     _cancelGateway = cancelGateway;
 }
 /// <summary>
 /// TODO: Make internal and visible to Moolah.Specs
 /// </summary>
 public DataCashRecurringTxnGateway(
     DataCashConfiguration configuration,
     IHttpClient httpClient,
     IDataCashRecurringTransactionBuilder requestBuilder,
     IDataCashRecurringPaymentResponseParser responseParser,
     IRecurringRefundGateway refundGateway,
     ICancelGateway cancelGateway)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     if (httpClient == null)
     {
         throw new ArgumentNullException("httpClient");
     }
     if (requestBuilder == null)
     {
         throw new ArgumentNullException("requestBuilder");
     }
     if (responseParser == null)
     {
         throw new ArgumentNullException("responseParser");
     }
     if (refundGateway == null)
     {
         throw new ArgumentNullException("refundGateway");
     }
     if (cancelGateway == null)
     {
         throw new ArgumentNullException("cancelGateway");
     }
     _configuration         = configuration;
     _httpClient            = httpClient;
     _paymentRequestBuilder = requestBuilder;
     _responseParser        = responseParser;
     _refundGateway         = refundGateway;
     _cancelGateway         = cancelGateway;
 }
 /// <summary>
 /// TODO: Make internal and visible to Moolah.Specs
 /// </summary>
 public DataCash3DSecureGateway(
     DataCash3DSecureConfiguration configuration, 
     IHttpClient httpClient, 
     IDataCashPaymentRequestBuilder paymentRequestBuilder, 
     IDataCashAuthorizeRequestBuilder authorizeRequestBuilder,
     IDataCash3DSecureResponseParser responseParser,
     IRefundGateway refundGateway,
     ICancelGateway cancelGateway)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     if (httpClient == null) throw new ArgumentNullException("httpClient");
     if (paymentRequestBuilder == null) throw new ArgumentNullException("paymentRequestBuilder");
     if (authorizeRequestBuilder == null) throw new ArgumentNullException("authorizeRequestBuilder");
     if (responseParser == null) throw new ArgumentNullException("responseParser");
     if (refundGateway == null) throw new ArgumentNullException("refundGateway");
     if (cancelGateway == null) throw new ArgumentNullException("cancelGateway");
     _configuration = configuration;
     _httpClient = httpClient;
     _paymentPaymentRequestBuilder = paymentRequestBuilder;
     _authorizeRequestBuilder = authorizeRequestBuilder;
     _responseParser = responseParser;
     _refundGateway = refundGateway;
     _cancelGateway = cancelGateway;
 }