Ejemplo n.º 1
0
        void SetupCommits()
        {
            _storage.StartOrContinue("test").Returns(new ProcessedCommitsCount(0));

            _storage.GetNextBatch(Arg.Any <ReadModelGenerationConfig>(), 2)
            .Returns(new CommittedEvents(new Commit[0]));
            _storage.GetNextBatch(Arg.Any <ReadModelGenerationConfig>(), 0)
            .Returns(Setup.CommittedEvents <Event1, Event2>(2));
        }
Ejemplo n.º 2
0
 public void batch_start_returns_0()
 {
     _store.StartOrContinue(Guid.NewGuid().ToString()).Value.Should().Be(0);
 }