コード例 #1
0
 private IReaderStrategy CreateReaderStrategy()
 {
     var result = new ReaderStrategy.Builder();
     result.FromAll();
     result.AllEvents();
     return result.Build(new RealTimeProvider(), runAs: null);
 }
コード例 #2
0
 public void Setup()
 {
     _builder = new ReaderStrategy.Builder();
     Given();
     When();
 }
コード例 #3
0
 protected virtual CheckpointStrategy CreateCheckpointStrategy()
 {
     var result = new CheckpointStrategy.Builder();
     var readerBuilder = new ReaderStrategy.Builder();
     if (_source != null)
     {
         _source(readerBuilder);
         _source(result);
     }
     else
     {
         readerBuilder.FromAll();
         readerBuilder.AllEvents();
         result.FromAll();
         result.AllEvents();
     }
     var config = ProjectionConfig.GetTest();
     return result.Build(config, null, readerBuilder.Build(new RealTimeProvider(), runAs: null));
 }