Example #1
0
        public ProjectionTrackContext()
        {
            projection = Substitute.For <IProjection>();

            projection.AsyncOptions.Returns(new AsyncOptions());

            theProjectionTrack = new ProjectionTrack(theFetcher, TestingDocumentStore.Basic(), projection, Substitute.For <IDaemonLogger>(), new StubErrorHandler(), Substitute.For <ITenant>());
        }
Example #2
0
        public ProjectionTrackContext()
        {
            projection = Substitute.For <IProjection>();

            projection.AsyncOptions.Returns(new AsyncOptions());

            var store = DocumentStore.For(x =>
            {
                x.Connection(ConnectionSource.ConnectionString);
                x.AutoCreateSchemaObjects = AutoCreate.All;
                x.DatabaseSchemaName      = "projection_track";
            });

            theProjectionTrack = new ProjectionTrack(theFetcher, store, projection, Substitute.For <IDaemonLogger>(), new StubErrorHandler(), Substitute.For <ITenant>());
        }