ninject / Ninject.MockingKernel

Extension for Ninject aiding testability in Moq, NSubstitute, and FakeItEasy
http://ninject.org/
Other
62 stars 25 forks source link

Support CallBase and DefaultValue configuration of Moq.MockFactory. #21

Closed bnordli closed 6 years ago

bnordli commented 9 years ago

At times, I find it handy to make test mocks automatically return new mocks (for unregistered calls). I found no way to configure this using Ninject.MockingKernel.Moq, and decided to implement it myself.

(I usually don't set the CallBase flag, but decided to implement that as a Ninject setting as well, for completeness.)