This repo contains a super simple web API which is using the entity framework core and an SQLite database. The reason for this repo is to show the problem with the integration test on the latest .NET Core 3.0. The Application is using the SQLite DB provider and the integration test should use the InMemory DB provider from EF Core. The integration test is following Microsoft documentation "Integration tests in ASP.NET Core" which shows the approach of how to use a customize the WebApplicationFactory.
This repo includes two branches. The core-2.2 branches contain a working version base on the .NET Core 2.2. The master branch contains an updated version to .NET Core 3.0. In which the integration test won't pass.
- master: ASP.NET Core 3.0 (not working)
- core-2.2: ASP.NET Core 2.2 (working)
- daily-builds: ASP.NET Core 3.0.100-rc2-014216 (not working)
If you start the application the endpoint /artists
will return a list of artists. Please see blow.
[
{
"artistId": 1,
"name": "AC/DC"
},
{
"artistId": 2,
"name": "Accept"
}
.
.
.
]
Tests the endpoint /artists