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

Why does DbContextMock.Object.Entry(entry) return null #35

Closed mzmoosa01 closed 3 years ago

mzmoosa01 commented 3 years ago

Context

I'm trying to test a Put method and when the DbContextMock.Object.Entry(entry) seems to always return null

Recreating the issue

I'm not sure if this is expected or if I'm doing something wrong perhaps.

huysentruitw commented 3 years ago

See #34

mzmoosa01 commented 3 years ago

Thank you for the response.