protected override F1Context CreateF1Context(AtsTestStore testStore) { var options = new DbContextOptions() .UseModel(_model) .UseAzureTableStorage(TestConfig.Instance.ConnectionString); return(new F1Context(_serviceProvider, options)); }
protected override async Task <AtsTestStore> CreateTestDatabaseAsync() { var db = new AtsTestStore(); using (var context = CreateF1Context(db)) { await ConcurrencyModelInitializer.SeedAsync(context); } return(db); }
protected override DbContext CreateContext(AtsTestStore testDatabase) { return(_fixture.CreateContext(testDatabase.TableSuffix)); }
protected override DataStoreTransaction BeginTransaction(F1Context context, AtsTestStore testStore, Action <F1Context> prepareStore) { return(new AtsTransaction()); }