Exemplo n.º 1
0
 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");
 }
Exemplo n.º 2
0
 public BatchOperationsTests(ITestOutputHelper h)
 {
     Setup.Logger(h);
     _store = Substitute.For <IStoreBatchProgress>();
     _sut   = new BatchOperation(_store, CreateReadModelConfig());
     ConfigureStore();
 }