protected new virtual void When()
 {
     _manager = new DefaultCheckpointManager(
         _bus, _projectionCorrelationId, new ProjectionVersion(1, 0, 0), null, _readDispatcher, _writeDispatcher,
         _config, "projection", new StreamPositionTagger("stream"), _namingBuilder, _resultEmitter,
         _checkpointsEnabled);
 }
 public void it_can_be_created()
 {
     _manager = new DefaultCheckpointManager(
         _bus, _projectionCorrelationId, new ProjectionVersion(1, 0, 0), null, _ioDispatcher, _config,
         "projection", new StreamPositionTagger(0, "stream"), _namingBuilder, _checkpointsEnabled,
         _producesResults, _definesFold, _coreProjectionCheckpointWriter);
 }
コード例 #3
0
 public void empty_projection_name_throws_argument_exception()
 {
     _manager = new DefaultCheckpointManager(
         _bus, _projectionCorrelationId, new ProjectionVersion(1, 0, 0), null, _ioDispatcher, _config, "",
         new StreamPositionTagger(0, "stream"), _namingBuilder, _checkpointsEnabled, _producesResults,
         _definesFold, _coreProjectionCheckpointWriter);
 }
コード例 #4
0
 public void null_position_tagger_throws_argument_null_exception()
 {
     _manager = new DefaultCheckpointManager(
         _bus, _projectionCorrelationId, new ProjectionVersion(1, 0, 0), null, _ioDispatcher, _config,
         "projection", null, _namingBuilder, _checkpointsEnabled, _producesResults,
         _definesFold, _coreProjectionCheckpointWriter);
 }
コード例 #5
0
 public void null_projection_config_throws_argument_null_exception()
 {
     _manager = new DefaultCheckpointManager(
         _bus, _projectionCorrelationId, new ProjectionVersion(1, 0, 0), null, _readDispatcher, _writeDispatcher,
         null, "projection", new StreamPositionTagger("stream"), _namingBuilder, _resultEmitter,
         _checkpointsEnabled);
 }
 public void null_io_dispatcher_throws_argument_null_exception()
 {
     Assert.Throws <ArgumentNullException>(() => {
         _manager = new DefaultCheckpointManager(
             _bus, _projectionCorrelationId, new ProjectionVersion(1, 0, 0), null, null, _config, "projection",
             new StreamPositionTagger(0, "stream"), _namingBuilder, _checkpointsEnabled, _producesResults,
             _definesFold, _coreProjectionCheckpointWriter);
     });
 }
コード例 #7
0
 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();
 }
 protected virtual void When()
 {
     _manager = new DefaultCheckpointManager(
         _projection, _bus, _projectionCorrelationId, _readDispatcher, _writeDispatcher, _config, _projectionCheckpointStreamId, "projection",
         new StreamPositionTagger("stream"));
 }
 public void null_projection_name_throws_argument_null_exception()
 {
     _manager = new DefaultCheckpointManager(
         _projection, _bus, _projectionCorrelationId, _readDispatcher, _writeDispatcher, _config, "$projections-projection-checkpoint", null,
         new StreamPositionTagger("stream"));
 }
 public void it_can_be_created()
 {
     _manager = new DefaultCheckpointManager(
         _projection, _bus, _projectionCorrelationId, _readDispatcher, _writeDispatcher, _config, "$projections-projection-checkpoint", "projection",
         new StreamPositionTagger("stream"));
 }
 public void null_position_tagger_throws_argument_null_exception()
 {
     _manager = new DefaultCheckpointManager(
         _projection, _bus, _projectionCorrelationId, _readDispatcher, _writeDispatcher, _config, "$projections-projection-checkpoint", "projection",
         null);
 }