test: 修复单元测试

This commit is contained in:
Argo Zhang 2019-08-31 23:12:45 +08:00
parent 9a9d3d0ba1
commit b7fd35cadc
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
4 changed files with 8 additions and 7 deletions

View File

@ -5,7 +5,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Longbow.Data" Version="2.3.5" /> <PackageReference Include="Longbow.Data" Version="2.3.6" />
<PackageReference Include="Longbow.Logging" Version="2.2.12" /> <PackageReference Include="Longbow.Logging" Version="2.2.12" />
<PackageReference Include="Bootstrap.Security.Mvc" Version="2.2.13" /> <PackageReference Include="Bootstrap.Security.Mvc" Version="2.2.13" />
</ItemGroup> </ItemGroup>

View File

@ -6,7 +6,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Bootstrap.Security.DataAccess" Version="2.2.12" /> <PackageReference Include="Bootstrap.Security.DataAccess" Version="2.2.12" />
<PackageReference Include="Longbow.Data" Version="2.3.5" /> <PackageReference Include="Longbow.Data" Version="2.3.6" />
<PackageReference Include="Longbow.Logging" Version="2.2.12" /> <PackageReference Include="Longbow.Logging" Version="2.2.12" />
<PackageReference Include="Longbow.PetaPoco" Version="1.0.2" /> <PackageReference Include="Longbow.PetaPoco" Version="1.0.2" />
<PackageReference Include="Longbow.Security.Cryptography" Version="1.3.0" /> <PackageReference Include="Longbow.Security.Cryptography" Version="1.3.0" />

View File

@ -67,7 +67,8 @@ namespace Bootstrap.Admin
new KeyValuePair<string, string>("DB:0:Enabled", "false"), new KeyValuePair<string, string>("DB:0:Enabled", "false"),
new KeyValuePair<string, string>("DB:1:Enabled", "false"), new KeyValuePair<string, string>("DB:1:Enabled", "false"),
new KeyValuePair<string, string>("DB:2:Enabled", "false"), new KeyValuePair<string, string>("DB:2:Enabled", "false"),
new KeyValuePair<string, string>("DB:3:Enabled", "false") new KeyValuePair<string, string>("DB:3:Enabled", "false"),
new KeyValuePair<string, string>("DB:4:Enabled", "true")
})); }));
} }
} }

View File

@ -16,28 +16,28 @@
"Enabled": true "Enabled": true
}, },
{ {
"Enabled": true, "Enabled": false,
"ProviderName": "Sqlite", "ProviderName": "Sqlite",
"ConnectionStrings": { "ConnectionStrings": {
"ba": "Data Source=UnitTest.db;" "ba": "Data Source=UnitTest.db;"
} }
}, },
{ {
"Enabled": true, "Enabled": false,
"ProviderName": "MySql", "ProviderName": "MySql",
"ConnectionStrings": { "ConnectionStrings": {
"ba": "Server=localhost;Database=UnitTest;Uid=argozhang;Pwd=argo@163.com;SslMode=none;" "ba": "Server=localhost;Database=UnitTest;Uid=argozhang;Pwd=argo@163.com;SslMode=none;"
} }
}, },
{ {
"Enabled": true, "Enabled": false,
"ProviderName": "Npgsql", "ProviderName": "Npgsql",
"ConnectionStrings": { "ConnectionStrings": {
"ba": "Server=localhost;Database=UnitTest;User ID=argozhang;Password=argo@163.com;" "ba": "Server=localhost;Database=UnitTest;User ID=argozhang;Password=argo@163.com;"
} }
}, },
{ {
"Enabled": true, "Enabled": false,
"Widget": "Bootstrap.DataAccess.MongoDB", "Widget": "Bootstrap.DataAccess.MongoDB",
"ConnectionStrings": { "ConnectionStrings": {
"ba": "mongodb://localhost:27017/UnitTest" "ba": "mongodb://localhost:27017/UnitTest"