示例#1
0
 public void it_can_be_created()
 {
     var coreProjection        = new FakeCoreProjection();
     var stateCache            = new PartitionStateCache();
     var bus                   = new InMemoryBus("test");
     var fakeCheckpointManager = new specification_with_multi_phase_core_projection.FakeCheckpointManager(bus, Guid.NewGuid());
     var it = new WriteQueryResultProjectionProcessingPhase(
         1, "result-stream", coreProjection, stateCache,
         fakeCheckpointManager, fakeCheckpointManager);
 }
示例#2
0
 public void SetUp()
 {
     _stateCache        = GivenStateCache();
     _publisher         = new InMemoryBus("test");
     _coreProjection    = new FakeCoreProjection();
     _checkpointManager = new specification_with_multi_phase_core_projection.FakeCheckpointManager(
         _publisher, Guid.NewGuid());
     _resultStreamName = "result-stream";
     _phase            = new WriteQueryResultProjectionProcessingPhase(
         1, _resultStreamName, _coreProjection, _stateCache, _checkpointManager, _checkpointManager);
     When();
 }