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