public PersistedGrantStoreTests(DatabaseProviderFixture <PersistedGrantDbContext> fixture) { fixture.Options = TestDatabaseProviders .SelectMany(x => x.Select( y => (DbContextOptions <PersistedGrantDbContext>)y)).ToList(); fixture.StoreOptions = StoreOptions; }
public CorsPolicyServiceTests(DatabaseProviderFixture <ConfigurationDbContext> fixture) : base(fixture) { foreach (var options in TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions <ConfigurationDbContext>)y)).ToList()) { using (var context = new ConfigurationDbContext(options, StoreOptions)) context.Database.EnsureCreated(); } }
public PersistedGrantStoreTests(DatabaseProviderFixture <PersistedGrantDbContext> fixture) : base(fixture) { foreach (var options in TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions <PersistedGrantDbContext>)y)).ToList()) { using (var context = new PersistedGrantDbContext(options, StoreOptions)) context.Database.EnsureCreated(); } }
public ClientStoreTests(DatabaseProviderFixture <ConfigurationDbContext> fixture) : base(fixture) { foreach (var options in TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions <ConfigurationDbContext>)y)).ToList()) { using (var context = new ConfigurationDbContext(options.ConnectionString, StoreOptions)) context.Database.CreateIfNotExists(); } }
public ClientStoreTests(DatabaseProviderFixture <ConfigurationDbContext> fixture) { fixture.Options = TestDatabaseProviders .SelectMany(x => x .Select(y => (DbContextOptions <ConfigurationDbContext>)y)) .ToList(); fixture.StoreOptions = StoreOptions; }
public ClientDbContextTests(DatabaseProviderFixture<ConfigurationDbContext> fixture) : base(fixture) { foreach (var options in TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions<ConfigurationDbContext>)y)).ToList()) { using (var conn = DbProviderFactories.GetFactory(options.Provider).CreateConnection()) { conn.ConnectionString = options.ConnectionString; using (var context = new ConfigurationDbContext(conn, StoreOptions)) { context.Database.CreateIfNotExists(); } } } }
public DatabaseCreatorTests(DatabaseProviderFixture databaseProviderFixture) : base(databaseProviderFixture) { }
public DropIndexScenarios(DatabaseProviderFixture databaseProviderFixture) : base(databaseProviderFixture) { }
protected IntegrationTest(DatabaseProviderFixture <TDbContext> fixture) { fixture.Options = TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions <TDbContext>)y)) .ToList(); }
public HistoryRepositoryTests(DatabaseProviderFixture databaseProviderFixture) : base(databaseProviderFixture) { }
public DatabaseGeneratedScenarios(DatabaseProviderFixture databaseProviderFixture) : base(databaseProviderFixture) { }
public EmptyContextTests(DatabaseProviderFixture databaseProviderFixture) : base(databaseProviderFixture) { }
public MappingScenarios(DatabaseProviderFixture databaseProviderFixture) : base(databaseProviderFixture) { }
public CreateStoredProcedureScenarios(DatabaseProviderFixture databaseProviderFixture) : base(databaseProviderFixture) { }
public MigratorScriptingDecoratorTests(DatabaseProviderFixture databaseProviderFixture) : base(databaseProviderFixture) { }