public InvoiceRepository(IEventSourcingRepository <Invoice, InvoiceId> eventRepo, ICustomerRepository customerRepository, IShipServiceRepository shipServiceRepository, IShipRepository shipRepository, IRentalRepository rentalRepository) { _eventRepository = eventRepo; _customerRepository = customerRepository; _shipServiceRepository = shipServiceRepository; _shipRepository = shipRepository; _rentalRepository = rentalRepository; }
public InvoiceMessageHandler(IInvoiceRepository invoiceRepository, ICustomerRepository customerRepository, IShipRepository shipRepository, IShipServiceRepository shipServiceRepository, IRentalRepository rentalRepository, IMessagePublisher messagePublisher) { _invoiceRepository = invoiceRepository; _customerRepository = customerRepository; _shipRepository = shipRepository; _shipServiceRepository = shipServiceRepository; _rentalRepository = rentalRepository; _messagePublisher = messagePublisher; }