Example #1
0
 public ProcessCardPayment(IProcessPaymentOutputPort paymentOutputPort, IBankService bankService)
 {
     _bankService       = bankService ?? throw new ArgumentNullException(nameof(bankService));
     _paymentOutputPort = paymentOutputPort ?? throw new ArgumentNullException(nameof(paymentOutputPort));
 }
Example #2
0
 public ProcessCardPayment(IPaymentWriteRepository paymentRepository, IProcessPaymentOutputPort paymentOutputPort, IBankService bankService)
 {
     _paymentRepository = paymentRepository ?? throw new ArgumentNullException(nameof(paymentRepository));
     _bankService       = bankService ?? throw new ArgumentNullException(nameof(bankService));
     _paymentOutputPort = paymentOutputPort ?? throw new ArgumentNullException(nameof(paymentOutputPort));
 }