public void TestFixtureSetUp() { _ioDispatcher = new IODispatcher(_bus, new PublishEnvelope(_bus)); IODispatcherTestHelpers.SubscribeIODispatcher(_ioDispatcher, _bus); _bus.Subscribe <ClientMessage.ReadStreamEventsBackward>(this); _projectionVersion = new ProjectionVersion(1, 2, 3); _reader = new CoreProjectionCheckpointReader(_bus, _projectionId, _ioDispatcher, _projectionCheckpointStreamId, _projectionVersion, true); When(); }
protected new virtual void When() { _projectionVersion = new ProjectionVersion(1, 0, 0); _projectionName = "projection"; _checkpointWriter = new CoreProjectionCheckpointWriter( _namingBuilder.MakeCheckpointStreamName(), _ioDispatcher, _projectionVersion, _projectionName); _checkpointReader = new CoreProjectionCheckpointReader( GetInputQueue(), _projectionCorrelationId, _ioDispatcher, _projectionCheckpointStreamId, _projectionVersion, _checkpointsEnabled); _manager = GivenCheckpointManager(); }