public PaymentProcessorTestBase(PaymentProcessorType paymentGatewayCode)
        {
            this.paymentGatewayCode = paymentGatewayCode;

            var services = new ServiceCollection();

            services.AddPaymentProcessors();
            this.serviceProvider = services.BuildServiceProvider();
        }
 public static IPaymentProcessor Create(PaymentProcessorType ppt)
 {
     switch (ppt)
     {
         case PaymentProcessorType.PayPal:
             return new PayPalProcessor();
         default:
             throw new ApplicationException("PaymentProcessorType not found: " + ppt);
     }
 }