public PaymentController(IValidator <PaymentRequest> validator, IPaymentFactory paymentFactory, IPaymentStore paymentStore) { _validator = validator; _paymentFactory = paymentFactory; _paymentStore = paymentStore; }
public PaymentService(IBankPaymentClient bankPaymentClient, IPaymentStore paymentStore, IPaymentValidator paymentValidator, ILogger <PaymentService> logger) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _paymentValidator = paymentValidator ?? throw new ArgumentNullException(nameof(paymentValidator)); _bankPaymentClient = bankPaymentClient ?? throw new ArgumentNullException(nameof(bankPaymentClient)); _paymentStore = paymentStore ?? throw new ArgumentNullException(nameof(paymentStore)); }
public PaymentCreatedEventHandler(IPaymentStore paymentStore) { _paymentStore = paymentStore ?? throw new ArgumentNullException(nameof(paymentStore)); }
public LoggingPaymentStore(IPaymentStore innerPaymentStore, ILogger <LoggingPaymentStore> logger) { _innerPaymentStore = innerPaymentStore; _logger = logger; }
public GetPaymentQueryHandler(IPaymentStore store) { _store = store; }