huysentruitw / entity-framework-core-mock

Easy Mock wrapper for mocking EFCore5 DbContext and DbSet using Moq or NSubstitute
MIT License
132 stars 24 forks source link

CreateDbSetMock with DbContext.Set<entity> #16

Closed mjal146 closed 4 years ago

mjal146 commented 5 years ago

Given that, for retrieve data from a Dictionary with MemberInfo, it is not possible to mock DbSet by DbContext.Set

huysentruitw commented 5 years ago

is it possible to give a little bit more context? What are you trying to do (sample code?) and where/how does it fail?