コード例 #1
0
        protected override F1Context CreateF1Context(AtsTestStore testStore)
        {
            var options = new DbContextOptions()
                          .UseModel(_model)
                          .UseAzureTableStorage(TestConfig.Instance.ConnectionString);

            return(new F1Context(_serviceProvider, options));
        }
コード例 #2
0
        protected override async Task <AtsTestStore> CreateTestDatabaseAsync()
        {
            var db = new AtsTestStore();

            using (var context = CreateF1Context(db))
            {
                await ConcurrencyModelInitializer.SeedAsync(context);
            }

            return(db);
        }
コード例 #3
0
 protected override DbContext CreateContext(AtsTestStore testDatabase)
 {
     return(_fixture.CreateContext(testDatabase.TableSuffix));
 }
コード例 #4
0
 protected override DataStoreTransaction BeginTransaction(F1Context context, AtsTestStore testStore, Action <F1Context> prepareStore)
 {
     return(new AtsTransaction());
 }