From 121c99e2a511d987bc9eb8bb623732523c6abfcc Mon Sep 17 00:00:00 2001 From: Argo-Surface Date: Sun, 20 Jan 2019 12:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=89=8B=E5=8A=A8=E6=9B=B4=E6=94=B9json?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=EF=BC=8C=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=83=BD=E5=A4=9F=E6=88=90=E5=8A=9F=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=EF=BC=8C=E9=BB=98=E8=AE=A4=E8=AE=BE=E5=AE=9A=E4=BD=BF?= =?UTF-8?q?=E7=94=A8SQLServer=E8=BF=9E=E6=8E=A5=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UnitTest/TestHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UnitTest/TestHelper.cs b/UnitTest/TestHelper.cs index 5875bdbf..2ef6cd25 100644 --- a/UnitTest/TestHelper.cs +++ b/UnitTest/TestHelper.cs @@ -64,7 +64,8 @@ namespace UnitTest public static void ConfigureWebHost(IWebHostBuilder builder) { builder.ConfigureAppConfiguration(app => app.AddInMemoryCollection(new KeyValuePair[] { - new KeyValuePair("ConnectionStrings:ba", SqlConnectionStrings) + new KeyValuePair("ConnectionStrings:ba", SqlConnectionStrings), + new KeyValuePair("DB:0:Enabled", "true") })); #if SQLite builder.ConfigureAppConfiguration(app => app.AddInMemoryCollection(new KeyValuePair[] {