public WsFederationConfigurationDbContextTests()
 {
     foreach (var options in TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions <WsFederationConfigurationDbContext>)y)).ToList())
     {
         using (var ctx = new WsFederationConfigurationDbContext(options))
             ctx.Database.EnsureCreated();
     }
 }
 public PersistedGrantStoreTests(DatabaseProviderFixture <PersistedGrantDbContext> fixture)
 {
     fixture.Options = TestDatabaseProviders
                       .SelectMany(x => x.Select(
                                       y => (DbContextOptions <PersistedGrantDbContext>)y)).ToList();
     fixture.StoreOptions = StoreOptions;
 }
Beispiel #3
0
        public ClientStoreTests(DatabaseProviderFixture <ConfigurationDbContext> fixture)
        {
            fixture.Options = TestDatabaseProviders
                              .SelectMany(x => x
                                          .Select(y => (DbContextOptions <ConfigurationDbContext>)y))
                              .ToList();

            fixture.StoreOptions = StoreOptions;
        }
Beispiel #4
0
 protected IntegrationTest(DatabaseProviderFixture <TDbContext> fixture)
 {
     fixture.Options      = TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions <TDbContext>)y)).ToList();
     fixture.StoreOptions = StoreOptions;
 }
        public ClientStoreFixture(DatabaseFixture fixture)
        {
            var testDatabases = TestDatabases.SelectMany(t => t.Select(db => (TestDatabase)db)).ToList();

            fixture.TestDatabases = testDatabases;
        }
Beispiel #6
0
        public CorsPolicyServiceFixture(DatabaseFixture fixture)
        {
            var testDatabases = TestDatabases.SelectMany(t => t.Select(db => (TestDatabase)db)).ToList();

            fixture.TestDatabases = testDatabases;
        }
        public TokenCleanupServiceFixture(DatabaseFixture fixture)
        {
            var testDatabases = TestDatabases.SelectMany(t => t.Select(db => (TestDatabase)db)).ToList();

            fixture.TestDatabases = testDatabases;
        }