Is creating an Interface on DBContext good practice in Entity Framework Core 3.1? Does Microsoft have any documentation on this?
We know that Mocking DBContext in Unit testing is bad practice, however how about creating an Interface over it?
https://learn.microsoft.com/en-us/ef/core/testing/
"However, we never try to mock DbContext or IQueryable. Doing so is difficult, cumbersome, and fragile. Don't do it."
Resources: Why DbContext doesn't implement IDbContext interface?