Closed Edgaras91 closed 1 year ago
Ignore, this was not working on newly added Integration tests, because child tables were not "seeded", so the auto mapper profile could not map to child data, whereas using a real database, already had "good" data with all of it's child tables populated.
Is this a known issue, as I've seen mentions in stack overflow?
In tests (unit) when creating WebApplicationFactory and overriding DbContexts to be in memory, the GetQueryAsync stops working.
Source/destination types
Mapping configuration
Version: x.y.z
ASP NET6 AutoMapper.AspNetCore.OData.EFCore 4.0.0 Microsoft.EntityFrameworkCore.SqlServer 6.0.13
May be related to this: https://stackoverflow.com/questions/60837497/automapper-projectto-not-working-with-efcore-in-memory-database-unit-tests