单元测试:修正手动更改json配置文件,测试用例能够成功运行,默认设定使用SQLServer连接字符串

This commit is contained in:
Argo-Surface 2019-01-20 12:00:15 +08:00
parent 14e5468274
commit 121c99e2a5
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ namespace UnitTest
public static void ConfigureWebHost(IWebHostBuilder builder)
{
builder.ConfigureAppConfiguration(app => app.AddInMemoryCollection(new KeyValuePair<string, string>[] {
new KeyValuePair<string, string>("ConnectionStrings:ba", SqlConnectionStrings)
new KeyValuePair<string, string>("ConnectionStrings:ba", SqlConnectionStrings),
new KeyValuePair<string, string>("DB:0:Enabled", "true")
}));
#if SQLite
builder.ConfigureAppConfiguration(app => app.AddInMemoryCollection(new KeyValuePair<string, string>[] {