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;
        }
 public void Setup()
 {
     Factory        = new PaymentGatewayServiceFactory <Startup>();
     HttpClient     = Factory.CreateClient();
     MerchantClient = new MerchantsClient(HttpClient.BaseAddress.ToString(), HttpClient);
 }