public new void Setup()
 {
     _committedeventHandler = new TestCoreProjection();
     //_committedeventHandler2 = new TestCoreProjection();
     _projectionCorrelationId = Guid.NewGuid();
     _projectionCorrelationId2 = Guid.NewGuid();
     _readerService.Handle(
         new ReaderSubscriptionManagement.Subscribe(
             _projectionCorrelationId, CheckpointTag.FromPosition(0, 0), CreateReaderStrategy(),
             new ReaderSubscriptionOptions(1000, 2000, false, stopAfterNEvents: null)));
     _readerService.Handle(
         new ReaderSubscriptionManagement.Subscribe(
             _projectionCorrelationId2, CheckpointTag.FromPosition(0, 0), CreateReaderStrategy(),
             new ReaderSubscriptionOptions(1000, 2000, false, stopAfterNEvents: null)));
     // when
     _readerService.Handle(new ReaderSubscriptionManagement.Unsubscribe(_projectionCorrelationId));
 }
Exemple #2
0
 public new void Setup()
 {
     _committedeventHandler    = new TestCoreProjection();
     _committedeventHandler2   = new TestCoreProjection();
     _projectionCorrelationId  = Guid.NewGuid();
     _projectionCorrelationId2 = Guid.NewGuid();
     _service.Handle(
         new ProjectionMessage.Projections.SubscribeProjection(
             _projectionCorrelationId, _committedeventHandler, CheckpointTag.FromPosition(0, 0),
             CreateCheckpointStrategy(), 1000));
     _service.Handle(
         new ProjectionMessage.Projections.SubscribeProjection(
             _projectionCorrelationId2, _committedeventHandler2, CheckpointTag.FromPosition(0, 0),
             CreateCheckpointStrategy(), 1000));
     // when
     _service.Handle(new ProjectionMessage.Projections.UnsubscribeProjection(_projectionCorrelationId));
 }
Exemple #3
0
 public new void Setup()
 {
     _committedeventHandler = new TestCoreProjection();
     //_committedeventHandler2 = new TestCoreProjection();
     _projectionCorrelationId  = Guid.NewGuid();
     _projectionCorrelationId2 = Guid.NewGuid();
     _readerService.Handle(
         new ReaderSubscriptionManagement.Subscribe(
             _projectionCorrelationId, CheckpointTag.FromPosition(0, 0, 0), CreateReaderStrategy(),
             new ReaderSubscriptionOptions(1000, 2000, false, stopAfterNEvents: null)));
     _readerService.Handle(
         new ReaderSubscriptionManagement.Subscribe(
             _projectionCorrelationId2, CheckpointTag.FromPosition(0, 0, 0), CreateReaderStrategy(),
             new ReaderSubscriptionOptions(1000, 2000, false, stopAfterNEvents: null)));
     // when
     _readerService.Handle(new ReaderSubscriptionManagement.Unsubscribe(_projectionCorrelationId));
 }
 public new void Setup()
 {
     _committedeventHandler = new TestCoreProjection();
     _committedeventHandler2 = new TestCoreProjection();
     _projectionCorrelationId = Guid.NewGuid();
     _projectionCorrelationId2 = Guid.NewGuid();
     _service.Handle(
         new ProjectionMessage.Projections.SubscribeProjection(
             _projectionCorrelationId, _committedeventHandler, CheckpointTag.FromPosition(0, 0),
             CreateCheckpointStrategy(), 1000));
     _service.Handle(
         new ProjectionMessage.Projections.SubscribeProjection(
             _projectionCorrelationId2, _committedeventHandler2, CheckpointTag.FromPosition(0, 0),
             CreateCheckpointStrategy(), 1000));
     // when
     _service.Handle(new ProjectionMessage.Projections.UnsubscribeProjection(_projectionCorrelationId));
 }