Using IDbContext and Moq4 to ease DI and test your Entity Framework context and code.
An implementaion of IDbContext to use for testing
It’s now been a while since Microsoft released entity framework core and with this released I hoped for them to release an interface for DbContext. (Spoiler alert) Unfortunately they didn’t.
Share this post
Twitter
Facebook
Reddit
LinkedIn