public ReadModelGenFacadeTests(ITestOutputHelper h) { _h = h; _storage = Substitute.For <ISpecificDbStorage>(); _sut = new StoreFacade(_storage, Setup.EventStoreSettings(h)); _config = new ReadModelGenerationConfig("test"); }
protected ASpecificStorageTests(ITestOutputHelper t) { _t = t; _store = Setup.GetDbStorage(GetFactory(), t); _src = new CancellationTokenSource(); _cancellationToken = _src.Token; _store.InitStorage(); }
public IConfigureEventStore WithProvider(ISpecificDbStorage store, string schema = "") { store.MustNotBeNull(); EventStore.Logger.Debug($"Using provider {store.GetType()}"); Store = store; Store.Schema = schema; return(this); }
public MigratingEventsFacadeStoreTests(ITestOutputHelper h) { _store = Substitute.For <ISpecificDbStorage>(); _settings = Setup.EventStoreSettings(h); _sut = new StoreFacade(_store, _settings); _dest = Substitute.For <IStoreEvents>(); _importer = new FakeImport(); _dest.Advanced.Returns(_importer); }
public StoreFacade(ISpecificDbStorage store, EventStoreSettings settings) { _store = store; _settings = settings; }
public GetEventsAndSnapshotTests(ITestOutputHelper h) { _storage = Substitute.For <ISpecificDbStorage>(); _sut = new StoreFacade(_storage, Setup.EventStoreSettings(h)); }