public void BaseSetUp() { DocumentStore = new RavenDbStore(true, false).Instance; InMemoryEventStoreConnectionBuilder = new InMemoryEventStoreConnectionBuilder(); EventBus = new EventBus(); Fixture = new Fixture(); }
public EventStoreRepository(EventBus eventBus, IEventStoreConnectionBuilder eventStoreConnectionBuilder) { if (eventBus == null) { throw new ArgumentNullException("eventBus"); } if (eventStoreConnectionBuilder == null) { throw new ArgumentNullException("eventStoreConnectionBuilder"); } _eventBus = eventBus; _eventStoreConnectionBuilder = eventStoreConnectionBuilder; }
public CommandDispatcher(IEventStoreConnectionBuilder eventStoreConnectionBuilder, EventBus eventBus) { if (eventStoreConnectionBuilder == null) { throw new ArgumentNullException("eventStoreConnectionBuilder"); } if (eventBus == null) { throw new ArgumentNullException("eventBus"); } _eventStoreConnectionBuilder = eventStoreConnectionBuilder; _eventBus = eventBus; Bootstrap(); }
public CommandDispatcher(IEventStoreConnectionBuilder eventStoreConnectionBuilder, EventBus eventBus, Action <Command, Action <Command> > commandDecorators) : this(eventStoreConnectionBuilder, eventBus) { _commandDecorators = commandDecorators; }