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);
            }
        }
コード例 #2
0
        public void ExerciseStorage()
        {
            var container = new WindsorComponentContainer(new WindsorContainer());

            container.RegisterInstance(new Mock <IProjectionRepository>().Object);

            EventStore.Register(container);

            using (container.Resolve <IDatabaseContextFactory>().Create(EventStoreConnectionStringName))
            {
                RecallFixture.ExerciseStorage(EventStore.Create(container));
            }
        }
コード例 #3
0
        public void ExerciseStorage()
        {
            var container = new NinjectComponentContainer(new StandardKernel());

            container.RegisterInstance(new Mock <IProjectionRepository>().Object);

            container.RegisterEventStore();
            container.RegisterDataAccess();
            container.RegisterEventStoreStorage();

            using (DatabaseContextFactory.Create(EventStoreConnectionStringName))
            {
                RecallFixture.ExerciseStorage(container.Resolve <IEventStore>());
            }
        }