public ProcessCardPayment(IProcessPaymentOutputPort paymentOutputPort, IBankService bankService) { _bankService = bankService ?? throw new ArgumentNullException(nameof(bankService)); _paymentOutputPort = paymentOutputPort ?? throw new ArgumentNullException(nameof(paymentOutputPort)); }
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)); }