public OrderCreatedConsumer(ICardDetailsRepository cardDetailsRepository,
                             IPaymentDetailsRepository paymentDetailsRepository, ICommandBus commandBus, PaymentDetailsContext dbContext)
 {
     _cardDetailsRepository    = cardDetailsRepository;
     _paymentDetailsRepository = paymentDetailsRepository;
     _commandBus = commandBus;
     _dbContext  = dbContext;
 }
Пример #2
0
 public ChargePaymentConsumer(IEventBus eventBus, IPaymentProvider paymentProvider,
                              IPaymentDetailsRepository paymentDetailsRepository, PaymentDetailsContext context)
 {
     _eventBus                 = eventBus;
     _paymentProvider          = paymentProvider;
     _paymentDetailsRepository = paymentDetailsRepository;
     _context = context;
 }
 public PaymentDetailsRepository(PaymentDetailsContext context)
 {
     _context = context;
 }