Beispiel #1
0
 public void Initialize(IEnumerable <Event> events)
 {
     store            = new InMemoryEventStore(events);
     repository       = new InMemoryRepository();
     eventProcessor   = new EventProcessor(store, repository);
     commandProcessor = new CommandProcessor(repository, eventProcessor);
 }
Beispiel #2
0
 public void Initialize(IEnumerable<Event> events)
 {
     store = new InMemoryEventStore(events);
       repository = new InMemoryRepository();
       eventProcessor = new EventProcessor(store, repository);
       commandProcessor = new CommandProcessor(repository, eventProcessor);
 }
Beispiel #3
0
 public EventProcessor(AppendOnlyCollection <Event> store, Repository repository)
 {
     this.store      = store;
     this.repository = repository;
 }