huysentruitw / entity-framework-core-mock

Easy Mock wrapper for mocking EFCore5 DbContext and DbSet using Moq or NSubstitute

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CreateDbSetMock with DbContext.Set<entity>

mjal146 opened this issue · comments

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

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