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

Support private property setters when cloning values #45

Closed nevaldas closed 2 years ago

nevaldas commented 2 years ago

In EF, you can have private property setters in your model and it is able to set them. This was not possible with this library, so adding support for that.

huysentruitw commented 2 years ago

Thanks for this PR (again) 🙌 Please also copy this test to the NSubstitute variant of the library and check if something needs to be fixed in the NSubstitute implementation as well.