Пример #1
0
        public async Task Setup()
        {
            Factory    = new PaymentGatewayServiceFactory <Startup>();
            HttpClient = Factory.CreateClient();
            // Create merchant
            Merchant       = MerchantControllerTests.GetMerchantRequest();
            MerchantClient = new MerchantsClient(HttpClient.BaseAddress.ToString(), HttpClient);

            // Authenticate Merchant
            var merchantResponse = await MerchantClient.CreateMerchantAsync(Merchant);

            MerchantId = merchantResponse.Id;
        }
Пример #2
0
 public void Setup()
 {
     Factory        = new PaymentGatewayServiceFactory <Startup>();
     HttpClient     = Factory.CreateClient();
     MerchantClient = new MerchantsClient(HttpClient.BaseAddress.ToString(), HttpClient);
 }