protected override IMultiTenantStore <TenantInfo> CreateTestStore() { _connection.Open(); var options = new DbContextOptionsBuilder().UseSqlite(_connection).Options; var dbContext = new TestEfCoreStoreDbContext(options); dbContext.Database.EnsureCreated(); var store = new EFCoreStore <TestEfCoreStoreDbContext, TenantInfo>(dbContext); return(PopulateTestStore(store)); }
protected override IMultiTenantStore CreateTestStore() { var connection = new SqliteConnection("DataSource=:memory:"); connection.Open(); var options = new DbContextOptionsBuilder() .UseSqlite(connection) .Options; var dbContext = new TestEFCoreStoreDbContext(options); dbContext.Database.EnsureCreated(); var store = new EFCoreStore <TestEFCoreStoreDbContext>(dbContext); return(PopulateTestStore(store)); }