public void InitClass() { this.EnsureTestApiKey(); this._paymentClient = new PaymentClient(this.ApiTestKey); this._paymentMethodClient = new PaymentMethodClient(this.ApiTestKey); this._refundClient = new RefundClient(this.ApiTestKey); this._issuerClient = new IssuerClient(this.ApiTestKey); this._subscriptionClient = new SubscriptionClient(this.ApiTestKey); this._mandateClient = new MandateClient(this.ApiTestKey); this._customerClient = new CustomerClient(this.ApiTestKey); }
public BaseApiTestFixture() { EnsureTestApiKey(); PaymentClient = new PaymentClient(this.ApiTestKey); PaymentMethodClient = new PaymentMethodClient(this.ApiTestKey); RefundClient = new RefundClient(this.ApiTestKey); IssuerClient = new IssuerClient(this.ApiTestKey); SubscriptionClient = new SubscriptionClient(this.ApiTestKey); MandateClient = new MandateClient(this.ApiTestKey); CustomerClient = new CustomerClient(this.ApiTestKey); ProfileClient = new ProfileClient(this.ApiTestKey); }
public MollieClient(string apiKey) { if (string.IsNullOrEmpty(apiKey)) { throw new ArgumentException("Mollie API key cannot be empty"); } this._paymentClient = new PaymentClient(apiKey); this._paymentMethodClient = new PaymentMethodClient(apiKey); this._refundClient = new RefundClient(apiKey); this._issuerClient = new IssuerClient(apiKey); this._subscriptionClient = new SubscriptionClient(apiKey); this._mandateClient = new MandateClient(apiKey); this._customerClient = new CustomerClient(apiKey); }