20 references to ConnectionString
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (20)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (20)
25new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
33Assert.Equal(ConnectionString, context.Database.GetDbConnection().ConnectionString);
44builder.AddSqlServerDbContext<TestDbContext>("sqlconnection", settings => settings.ConnectionString = ConnectionString);
50Assert.Equal(ConnectionString, actualConnectionString);
61new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
70Assert.Equal(ConnectionString, actualConnectionString);
80new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString),
106Assert.Equal(ConnectionString, actualConnectionString);
125new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString),
150Assert.Equal(ConnectionString, actualConnectionString);
165new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
199new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
237new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString),
249Assert.Equal(ConnectionString, actualConnectionString);
262new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
267builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(options => options.UseSqlServer(ConnectionString));
271builder.Services.AddDbContextPool<TestDbContext>(options => options.UseSqlServer(ConnectionString));
285new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
290builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(options => options.UseSqlServer(ConnectionString));
294builder.Services.AddDbContextPool<TestDbContext>(options => options.UseSqlServer(ConnectionString));