rpasechnikov / xUnitMockApi

Mock API with tests to demo ef-core in-memory issues/bugs/limitations/quirks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xUnitMockApi

Mock dotnet core API with a bunch of unit and a few integration tests to try and reproduce/demonstrate some of the EF core in-memory DB provider issues that I have been experiencing.

Current issues:

  • xUnitMockApi.IntegrationTests.ShouldCreateAndFetchNewVehiclesWithWheelsAndEnginesAsync:ln.99
    • EF seems to be not evaluating relationships, until manually resolving relevant entities
    • Hack/workaround to simply get relevant entities resolves the issue
  • xUnitMockApi.UnitTests.Services.VehicleServiceTests:ln.125
    • Foreign key constraints seem to not be honoured while in-memory db testing

About

Mock API with tests to demo ef-core in-memory issues/bugs/limitations/quirks


Languages

Language:C# 100.0%