Asp.net – Create a unit test to verify data from a SQL view in a .NET EF Core project
We created an API, which will fetch data from a SQL view created in the database. Here is the repository code: List<Entities.MyView> reportsData = await ( from r in _context.MyView where r.UserKey == userKey select r) .ToListAsync(cancellationToken); Now, we need…