public void InitClass() { this.EnsureTestApiKey(); this._paymentClient = new PaymentClient(this.ApiTestKey); this._paymentMethodClient = new PaymentMethodClient(this.ApiTestKey); this._refundClient = new RefundClient(this.ApiTestKey); this._subscriptionClient = new SubscriptionClient(this.ApiTestKey); this._mandateClient = new MandateClient(this.ApiTestKey); this._customerClient = new CustomerClient(this.ApiTestKey); this._profileClient = new ProfileClient(this.ApiTestKey); this._orderClient = new OrderClient(this.ApiTestKey); this._shipmentClient = new ShipmentClient(this.ApiTestKey); }
public void InitClass() { string apiKey = this.GetApiKeyFromConfiguration(); this.EnsureTestApiKey(apiKey); this._paymentClient = new PaymentClient(apiKey); this._paymentMethodClient = new PaymentMethodClient(apiKey); this._refundClient = new RefundClient(apiKey); this._subscriptionClient = new SubscriptionClient(apiKey); this._mandateClient = new MandateClient(apiKey); this._customerClient = new CustomerClient(apiKey); this._profileClient = new ProfileClient(apiKey); this._orderClient = new OrderClient(apiKey); this._shipmentClient = new ShipmentClient(apiKey); }