/// <summary> /// For testing. /// </summary> public PayPalExpressCheckout(PayPalConfiguration configuration, IHttpClient httpClient, IPayPalRequestBuilder requestBuilder, IPayPalResponseParser responseParser) { 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"); _configuration = configuration; _httpClient = httpClient; _requestBuilder = requestBuilder; _responseParser = responseParser; }
/// <summary> /// For testing. /// </summary> public PayPalMassPay(PayPalConfiguration configuration, IHttpClient httpClient, IPayPalRequestBuilder requestBuilder, IPayPalResponseParser responseParser) { 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"); } _configuration = configuration; _httpClient = httpClient; _requestBuilder = requestBuilder; _responseParser = responseParser; }