Example #1
0
 public PaymentGateway(IPaymentIdProvider paymentIdProvider,
                       IPaymentRequestPreProcessor paymentRequestPreProcessor,
                       IPaymentRepository paymentRepository,
                       IBank bank)
 {
     _paymentIdProvider          = paymentIdProvider;
     _paymentRequestPreProcessor = paymentRequestPreProcessor;
     _paymentRepository          = paymentRepository;
     _bank = bank;
 }
Example #2
0
 public PaymentRequestPreProcessorTests()
 {
     _maskCreditCardService  = new Mock <IMaskCreditCardService>();
     paymentRequestProcessor = new PaymentRequestPreProcessor(_maskCreditCardService.Object);
 }