Beispiel #1
0
 public CreateGenericEventCommandHandler(IGenericEventRepository repository,
                                         AbstractValidator <CreateGenericEventCommand> validator,
                                         IEventsLogger logger)
 {
     _repository = repository;
     _validator  = validator;
     _logger     = logger;
 }
Beispiel #2
0
        public void Service_full_test()
        {
            using (ISession session = _sessionFactory.OpenSession())
            {
                _documentRepository = new GenericEventRepository <Document3>(session, new EventSerializer());

                Document3 document3 = _documentFoctory.Create(12);
                document3.Accept();
                _documentRepository.Save(document3);

                Document3 doc = _documentRepository.Load(document3.Id);
                Assert.IsNotNull(doc);
            }
        }
 public UserRepository(IGenericRepository <UserEntity> repository, IGenericEventRepository <UserEventEntity> eventRepository, IDomainEventsManager domainEventsManager, IMapper mapper, IAggregateRecreate <User> aggregateRecreate) : base(repository, eventRepository, domainEventsManager, mapper, aggregateRecreate)
 {
 }
 public GetGenericEventsByResourceIdQueryHandler(IGenericEventRepository repository)
 {
     _repository = repository;
 }
Beispiel #5
0
 public GetGenericEventsSinceEventQueryHandler(IGenericEventRepository repository, IValidator <GetGenericEventsSinceEventRequest> validator)
 {
     _repository = repository;
     _validator  = validator;
 }
Beispiel #6
0
 public GetGenericEventsByDateRangeQueryHandler(IGenericEventRepository repository, IValidator <GetGenericEventsByDateRangeRequest> validator)
 {
     _repository = repository;
     _validator  = validator;
 }