public MessageProcessor(IEcommerceUnitOfWork unitOfWork, IStoredEvents storedEvents, IMessagePublisher publisher, ILogger <MessageProcessor> logger) { _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _storedEvents = storedEvents ?? throw new ArgumentNullException(nameof(storedEvents)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public EcommerceUnitOfWork(EcommerceDDDContext dbContext, ICustomers customers, IOrders orders, IStoredEvents storedEvents, IProducts products, IPayments payments, IQuotes quotes, IEventSerializer eventSerializer) : base(dbContext) { Customers = customers ?? throw new ArgumentNullException(nameof(customers)); Orders = orders ?? throw new ArgumentNullException(nameof(orders)); StoredEvents = storedEvents ?? throw new ArgumentNullException(nameof(storedEvents)); Products = products ?? throw new ArgumentNullException(nameof(products)); Quotes = quotes ?? throw new ArgumentNullException(nameof(quotes)); Payments = payments ?? throw new ArgumentNullException(nameof(payments)); _eventSerializer = eventSerializer ?? throw new ArgumentNullException(nameof(eventSerializer)); }
public ListOrderStoredEventsQueryHandler(IEcommerceUnitOfWork unitOfWork, IStoredEvents storedEvents) { _unitOfWork = unitOfWork; _storedEvents = storedEvents; }
public ListCustomerStoredEventsQueryHandler(IStoredEvents storedEvents) { _storedEvents = storedEvents; }