Mocking EF DataContext with Moq
So I wanted to mock the interface I use as base for my data context in my unit tests.
Mocking the interface itself is pretty easy, but I wanted to check if the properties of type DbSet
So, all we need to do is mock the methods of the DbSet
As you can see, the method calls to a DbSet
Comments
Post a Comment