AspireEFPostgreSqlExtensionsTests.cs (20)
33new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
41Assert.Equal(ConnectionString, context.Database.GetDbConnection().ConnectionString);
53settings => settings.ConnectionString = ConnectionString,
60Assert.Equal(ConnectionString, actualConnectionString);
71new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
80Assert.Equal(ConnectionString, actualConnectionString);
90new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
116Assert.Equal(ConnectionString, actualConnectionString);
132new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
158Assert.Equal(ConnectionString, actualConnectionString);
173new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
207new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
244new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
256Assert.Equal(ConnectionString, actualConnectionString);
269new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
274builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(options => options.UseNpgsql(ConnectionString));
278builder.Services.AddDbContextPool<TestDbContext>(options => options.UseNpgsql(ConnectionString));
292new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
297builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(options => options.UseNpgsql(ConnectionString));
301builder.Services.AddDbContextPool<TestDbContext>(options => options.UseNpgsql(ConnectionString));