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