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

override method added to CreateDbSetMock for using without set selector. #30

Closed sermetk closed 2 years ago

huysentruitw commented 3 years ago

Hi, thank you for this PR. Can you elaborate a bit more what the use-case for this PR is?

I'm asking because we could probably also make this work: CreateDbSetMock(x => x.Set<Entity>()) for DbContexts without DbSet members.

huysentruitw commented 2 years ago

Closing because of no response.