public PaymentCommandHandler(IPaymentProcessor paymentProcessor,
                              PaymentCommandValidator paymentCommandValidator,
                              IPaymentCommandRepository paymentCommandRepository)
 {
     _paymentProcessor         = paymentProcessor;
     _paymentCommandValidator  = paymentCommandValidator;
     _paymentCommandRepository = paymentCommandRepository;
 }
Beispiel #2
0
 public PaymentController(
     IPaymentQueryRepository queryRepo,
     IPaymentCommandRepository commandRepo,
     IEitherMapper mapper,
     ILogger <CustomerController> logger)
 {
     _queryRepo   = queryRepo;
     _commandRepo = commandRepo;
     _mapper      = mapper;
     _logger      = logger;
 }