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();
     }
 }
예제 #5
0
        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();
             }
         }
     }
 }
예제 #7
0
 public DatabaseCreatorTests(DatabaseProviderFixture databaseProviderFixture)
     : base(databaseProviderFixture)
 {
 }
예제 #8
0
 public DropIndexScenarios(DatabaseProviderFixture databaseProviderFixture)
     : base(databaseProviderFixture)
 {
 }
예제 #9
0
 protected IntegrationTest(DatabaseProviderFixture <TDbContext> fixture)
 {
     fixture.Options = TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions <TDbContext>)y))
                       .ToList();
 }
예제 #10
0
 public HistoryRepositoryTests(DatabaseProviderFixture databaseProviderFixture)
     : base(databaseProviderFixture)
 {
 }
 public DatabaseGeneratedScenarios(DatabaseProviderFixture databaseProviderFixture)
     : base(databaseProviderFixture)
 {
 }
예제 #12
0
 public EmptyContextTests(DatabaseProviderFixture databaseProviderFixture)
     : base(databaseProviderFixture)
 {
 }
예제 #13
0
 public MappingScenarios(DatabaseProviderFixture databaseProviderFixture)
     : base(databaseProviderFixture)
 {
 }
 public CreateStoredProcedureScenarios(DatabaseProviderFixture databaseProviderFixture)
     : base(databaseProviderFixture)
 {
 }
 public MigratorScriptingDecoratorTests(DatabaseProviderFixture databaseProviderFixture)
     : base(databaseProviderFixture)
 {
 }