集成测试中使用 TestServer
TestServer
环境: .NET-CORE 2.0
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.0.0" />
添加另一个源nuget设置https://dotnet.myget.org/F/aspnetcore-master/api/v3/index.json然后安装Microsoft.AspNetCore。通过nuget进行测试