void StoreSetupWithCommits() { _store.GetNextBatch(Arg.Any <ReadModelGenerationConfig>(), Arg.Any <ProcessedCommitsCount>()) .Returns(new CommittedEvents(Setup.Commits(4).ToArray())); }
public static CommittedEvents CommittedEvents <T, V>(int count) where T : class, new() where V : class, new() => new CommittedEvents(Setup.Commits <T, V>(count).ToArray());