public void ExerciseEventProcessing() { var container = new NinjectComponentContainer(new StandardKernel()); Bootstrap(container); container.RegisterDataAccess(); container.RegisterEventStore(); container.RegisterEventStoreStorage(); container.RegisterEventProcessing(); container.Resolve <EventProcessingModule>(); var eventStore = container.Resolve <IEventStore>(); using (DatabaseContextFactory.Create(EventStoreConnectionStringName)) { RecallFixture.ExerciseStorage(eventStore); } using (DatabaseContextFactory.Create(EventStoreProjectionConnectionStringName)) { RecallFixture.ExerciseEventProcessing(container.Resolve <IEventProcessor>(), 300); } using (DatabaseContextFactory.Create(EventStoreConnectionStringName)) { RecallFixture.ExerciseStorageRemoval(eventStore); } }
public void ExerciseEventProcessing() { var container = new WindsorComponentContainer(new WindsorContainer()); Boostrap(container); EventStore.Register(container); using (container.Resolve <IDatabaseContextFactory>().Create(EventStoreConnectionStringName)) { RecallFixture.ExerciseEventProcessing(EventStore.Create(container), EventProcessor.Create(container), 300); } }