Exemplo n.º 1
0
 public PaymentController(ILogger <PaymentController> logger
                          , IPaymentRepository paymentRepository
                          , IAcquiringBankClient acquiringBankClient)
 {
     _logger              = logger;
     _paymentRepository   = paymentRepository;
     _acquiringBankClient = acquiringBankClient;
 }
Exemplo n.º 2
0
 public PaymentService(
     ILoggerAdapter <PaymentService> logger,
     IAcquiringBankClient acquiringBankClient,
     IPaymentRepository paymentRepository)
 {
     _logger = logger;
     _acquiringBankClient = acquiringBankClient;
     _paymentRepository   = paymentRepository;
 }
 public CreatePaymentCommandHandler(
     IAcquiringBankClient acquiringBankClient,
     IMediator mediator,
     ILogger <CreatePaymentCommandHandler> logger)
 {
     _acquiringBankClient = acquiringBankClient ?? throw new ArgumentNullException(nameof(acquiringBankClient));
     _mediator            = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 4
0
 public PaymentsService(
     IAcquiringBankClient acquiringBankClient,
     IPaymentRepository paymentRepository,
     ILogger <PaymentsService> logger)
 {
     _acquiringBankClient = acquiringBankClient ?? throw new ArgumentNullException(nameof(acquiringBankClient));
     _paymentRepository   = paymentRepository ?? throw new ArgumentNullException(nameof(paymentRepository));
     _logger = logger;
 }
Exemplo n.º 5
0
 public PaymentService(
     IPaymentRepository paymentRepository,
     IMerchantRepository merchantRepository,
     IAcquiringBankClient acquiringBankClient,
     ILogger <PaymentService> logger)
 {
     this.paymentRepository   = paymentRepository;
     this.merchantRepository  = merchantRepository;
     this.acquiringBankClient = acquiringBankClient;
     this.logger = logger;
 }
 public ProcessPaymentRequestCommandHandler(
     IAcquiringBankClient acquiringBankClient,
     IMerchantRepository merchantRepository,
     IPaymentRepository paymentRepository,
     IUnitOfWork unitOfWork,
     ILogger <ProcessPaymentRequestCommandHandler> logger)
 {
     _acquiringBankClient = acquiringBankClient;
     _merchantRepository  = merchantRepository;
     _paymentRepository   = paymentRepository;
     _unitOfWork          = unitOfWork;
     _logger = logger;
 }
 public PaymentService(
     IPaymentRepository paymentRepository,
     IMerchantRepository merchantRepository,
     IValidator <PaymentRequest> paymentRequestValidator,
     IAcquiringBankClient acquiringBankClient,
     IMapper autoMapper,
     IDateTimeProvider dateTimeProvider)
 {
     _paymentRepository       = paymentRepository;
     _merchantRepository      = merchantRepository;
     _paymentRequestValidator = paymentRequestValidator;
     _acquiringBankClient     = acquiringBankClient;
     _autoMapper       = autoMapper;
     _dateTimeProvider = dateTimeProvider;
 }
Exemplo n.º 8
0
 public PaymentHandler(IAcquiringBankClient acquiringBankClient, IPaymentRepository paymentRepository, IMapper mapper)
 {
     _acquiringBankClient = acquiringBankClient;
     _paymentRepository   = paymentRepository;
     _mapper = mapper;
 }
Exemplo n.º 9
0
 public AcquiringBankService(IAcquiringBankClient acquiringBankClient)
 {
     _acquiringBankClient = acquiringBankClient;
 }