public BatchOperation(IStoreBatchProgress store, MigrationConfig config) { _store = store; _config = config; _processed = _store.StartOrContinue(config.Name); EventStore.Logger.Debug($"'{config.Name}' [migration] starts/resumes after {_processed.Value} commits"); }
public BatchOperationsTests(ITestOutputHelper h) { Setup.Logger(h); _store = Substitute.For <IStoreBatchProgress>(); _sut = new BatchOperation(_store, CreateReadModelConfig()); ConfigureStore(); }