Repository Pattern Done Right: Avoiding the Abstraction Trap in .NET Applications
Your repository returns IQueryable<T>, your unit tests mock DbContext, and you've written three layers of abstraction just to save a user. You have a UserRepository that wraps DbContext, a UserService that wraps the repository, and a UserManager that...
timderzhavets.hashnode.dev21 min read