コード例 #1
0
 protected override ProjectionProcessingStrategy GivenProjectionProcessingStrategy()
 {
     _phase1checkpointManager = new FakeCheckpointManager(_bus, _projectionCorrelationId);
     _phase2checkpointManager = new FakeCheckpointManager(_bus, _projectionCorrelationId);
     _phase1readerStrategy    = GivenPhase1ReaderStrategy();
     _phase2readerStrategy    = GivenPhase2ReaderStrategy();
     _phase1 = new FakeProjectionProcessingPhase(0, this, Phase1CheckpointManager, _phase1readerStrategy);
     _phase2 = new FakeProjectionProcessingPhase(1, this, Phase2CheckpointManager, _phase2readerStrategy);
     return(new FakeProjectionProcessingStrategy(
                _projectionName, _version, new ConsoleLogger("logger"), Phase1, Phase2));
 }
コード例 #2
0
 protected override ProjectionProcessingStrategy GivenProjectionProcessingStrategy()
 {
     _phase1checkpointManager = new FakeCheckpointManager(_bus, _projectionCorrelationId);
     _phase2checkpointManager = new FakeCheckpointManager(_bus, _projectionCorrelationId);
     _emittedStreamsTracker   = new FakeEmittedStreamsTracker();
     _phase1readerStrategy    = GivenPhase1ReaderStrategy();
     _phase2readerStrategy    = GivenPhase2ReaderStrategy();
     _phase1 = new FakeProjectionProcessingPhase(0, this, Phase1CheckpointManager, _phase1readerStrategy,
                                                 _emittedStreamsTracker);
     _phase2 = new FakeProjectionProcessingPhase(1, this, Phase2CheckpointManager, _phase2readerStrategy,
                                                 _emittedStreamsTracker);
     return(new FakeProjectionProcessingStrategy(
                _projectionName, _version, Log.Logger, Phase1, Phase2));
 }
 protected override ProjectionProcessingStrategy GivenProjectionProcessingStrategy()
 {
     _phase1checkpointManager = new FakeCheckpointManager(_bus, _projectionCorrelationId);
     _phase2checkpointManager = new FakeCheckpointManager(_bus, _projectionCorrelationId);
     _phase1readerStrategy = GivenPhase1ReaderStrategy();
     _phase2readerStrategy = GivenPhase2ReaderStrategy();
     _phase1 = new FakeProjectionProcessingPhase(0, this, Phase1CheckpointManager, _phase1readerStrategy);
     _phase2 = new FakeProjectionProcessingPhase(1, this, Phase2CheckpointManager, _phase2readerStrategy);
     return new FakeProjectionProcessingStrategy(
         _projectionName, _version, new ConsoleLogger(), Phase1, Phase2);
 }