Пример #1
0
 private void Given()
 {
     _projection = "projection";
     _resultAt = CheckpointTag.FromPosition(0, 100, 50);
     _partition = "partition";
     _result = "{\"result\":1}";
     _namesBuilder = ProjectionNamesBuilder.CreateForTest(_projection);
     _re = new ResultEventEmitter(_namesBuilder);
 }
 public void setup()
 {
     Given();
     _namingBuilder = ProjectionNamesBuilder.CreateForTest("projection");
     _config = new ProjectionConfig(null, _checkpointHandledThreshold, _checkpointUnhandledBytesThreshold,
         _pendingEventsThreshold, _maxWriteBatchLength, _emitEventEnabled,
         _checkpointsEnabled, _createTempStreams, _stopOnEof, isSlaveProjection: false);
     _resultEventEmitter = new ResultEventEmitter(_namingBuilder);
     When();
 }