コード例 #1
0
 public ReadModelGenFacadeTests(ITestOutputHelper h)
 {
     _h       = h;
     _storage = Substitute.For <ISpecificDbStorage>();
     _sut     = new StoreFacade(_storage, Setup.EventStoreSettings(h));
     _config  = new ReadModelGenerationConfig("test");
 }
コード例 #2
0
 protected ASpecificStorageTests(ITestOutputHelper t)
 {
     _t                 = t;
     _store             = Setup.GetDbStorage(GetFactory(), t);
     _src               = new CancellationTokenSource();
     _cancellationToken = _src.Token;
     _store.InitStorage();
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #5
0
 public StoreFacade(ISpecificDbStorage store, EventStoreSettings settings)
 {
     _store    = store;
     _settings = settings;
 }
コード例 #6
0
        public GetEventsAndSnapshotTests(ITestOutputHelper h)
        {
            _storage = Substitute.For <ISpecificDbStorage>();

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