public void InitSut() { var config = new ProjectionEngineConfig(); projections = new [] { new Projection(Substitute.For <ICollectionWrapper <SampleReadModel, String> >()) }; sut = new RebuildProjectionSlotDispatcher( NullLogger.Instance, "test", config, projections, Substitute.For <IConcurrentCheckpointTracker>(), 4); }
public void InitSut() { var config = new ProjectionEngineConfig(); projections = new [] { new Projection(Substitute.For <ICollectionWrapper <SampleReadModel, String> >()) }; sut = new RebuildProjectionSlotDispatcher( NullLogger.Instance, slotName, config, projections, 4, NullLoggerThreadContextManager.Instance); //Needed to avoid crash on wrong metrics dispatch. KernelMetricsHelper.CreateMeterForRebuildDispatcherBuffer(slotName, () => 0); }