21 references to AddAzureNpgsqlDbContext
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (21)
AspireAzureEFPostgreSqlExtensionsTests.cs (14)
37
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
53
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql",
75
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
95
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: optionsBuilder =>
137
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: optionsBuilder =>
183
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql",
217
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql",
249
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql");
250
builder.
AddAzureNpgsqlDbContext
<TestDbContext2>("npgsql2");
282
var exception = Assert.Throws<InvalidOperationException>(() => builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql"));
305
var exception = Record.Exception(() => builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql"));
325
builder.
AddAzureNpgsqlDbContext
<TestDbContext>(connectionName);
328
builder.
AddAzureNpgsqlDbContext
<TestDbContext>(connectionName, settings =>
357
builder.
AddAzureNpgsqlDbContext
<TestDbContext>(connectionName, settings =>
AzureNpgsqlEntityFrameworkCorePostgreSQLPublicApiTests.cs (2)
18
var action = () => builder.
AddAzureNpgsqlDbContext
<DbContext>(connectionName);
32
var action = () => builder.
AddAzureNpgsqlDbContext
<DbContext>(connectionName);
ConformanceTests.cs (1)
94
=> builder.
AddAzureNpgsqlDbContext
<TestDbContext>(key ?? "postgres", configure);
TokenCredentialTests.cs (4)
48
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting, configureSettings: settings => settings.Credential = fakeCred);
79
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting, configureSettings: settings => settings.Credential = fakeCred);
111
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting, configureSettings: settings => settings.Credential = fakeCred);
143
builder.
AddAzureNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting, configureSettings: settings => settings.Credential = fakeCred);