18 references to ConnectionString
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (18)
AspireEFMySqlExtensionsTests.cs (18)
38new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
47string expectedConnectionString = new MySqlConnectionStringBuilder(ConnectionString + ConnectionStringSuffixAddedByPomelo).ConnectionString;
60builder.AddMySqlDbContext<TestDbContext>("mysql", settings => settings.ConnectionString = ConnectionString);
66string expectedConnectionString = new MySqlConnectionStringBuilder(ConnectionString + ConnectionStringSuffixAddedByPomelo).ConnectionString;
79new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
88string expectedConnectionString = new MySqlConnectionStringBuilder(ConnectionString + ConnectionStringSuffixAddedByPomelo).ConnectionString;
100new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString),
125var expectedConnectionString = new MySqlConnectionStringBuilder(ConnectionString + ";Allow User Variables=True;Default Command Timeout=123;Use Affected Rows=False").ConnectionString;
143new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString),
168var expectedConnectionString = new MySqlConnectionStringBuilder(ConnectionString + ";Allow User Variables=True;Default Command Timeout=123;Use Affected Rows=False").ConnectionString;
185new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString),
220new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString),
257new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
262builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(options => options.UseMySql(ConnectionString, s_serverVersion));
266builder.Services.AddDbContextPool<TestDbContext>(options => options.UseMySql(ConnectionString, s_serverVersion));
280new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
285builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(options => options.UseMySql(ConnectionString, s_serverVersion));
289builder.Services.AddDbContextPool<TestDbContext>(options => options.UseMySql(ConnectionString, s_serverVersion));