Ejemplo n.º 1
0
 public ReadModelGenFacadeTests(ITestOutputHelper h)
 {
     _h       = h;
     _storage = Substitute.For <ISpecificDbStorage>();
     _sut     = new StoreFacade(_storage, Setup.EventStoreSettings(h));
     _config  = new ReadModelGenerationConfig("test");
 }
Ejemplo n.º 2
0
 protected ASpecificStorageTests(ITestOutputHelper t)
 {
     _t                 = t;
     _store             = Setup.GetDbStorage(GetFactory(), t);
     _src               = new CancellationTokenSource();
     _cancellationToken = _src.Token;
     _store.InitStorage();
 }
Ejemplo n.º 3
0
 public IConfigureEventStore WithProvider(ISpecificDbStorage store, string schema = "")
 {
     store.MustNotBeNull();
     EventStore.Logger.Debug($"Using provider {store.GetType()}");
     Store        = store;
     Store.Schema = schema;
     return(this);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 public StoreFacade(ISpecificDbStorage store, EventStoreSettings settings)
 {
     _store    = store;
     _settings = settings;
 }
Ejemplo n.º 6
0
        public GetEventsAndSnapshotTests(ITestOutputHelper h)
        {
            _storage = Substitute.For <ISpecificDbStorage>();

            _sut = new StoreFacade(_storage, Setup.EventStoreSettings(h));
        }