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 EventSourcingRepositoryTests()
 {
     this.mediatorMock   = new Mock <IMediator>();
     this.eventStoreMock = new Mock <IEventStore>();
     this.sut            = new EventSourcingRepository <TestAggregate, Guid>(
         this.eventStoreMock.Object,
         this.mediatorMock.Object);
 }
 public MediatorHandler(IMediator mediator,
                        IEventSourcingRepository eventSourcingRepository)
 {
     _mediator = mediator;
     _eventSourcingRepository = eventSourcingRepository;
 }
 public EventosController(IEventSourcingRepository eventSourcingRepository)
 {
     _eventSourcingRepository = eventSourcingRepository;
 }
Beispiel #5
0
 public MediatrHandler(IMediator mediator, IEventSourcingRepository eventSourcingRepository)
 {
     this.mediator = mediator;
     this.eventSourcingRepository = eventSourcingRepository;
 }
Beispiel #6
0
 public RentalRepository(IEventSourcingRepository <Rental, RentalId> eventRepository)
 {
     _eventRepository = eventRepository;
 }
 public CustomerRepository(IEventSourcingRepository <Customer, CustomerId> eventRepository)
 {
     _eventRepository = eventRepository;
 }
 public ShipRepository(IEventSourcingRepository <Ship, ShipId> repo)
 {
     _eventRepository = repo;
 }