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.)
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.)