Does anyone have an implementation lying around of an auto-mock container using Rhino Mocks and NInject?
R – Auto-mock container: Rhino Mocks and NInject
ninjectrhino-mocks
ninjectrhino-mocks
Does anyone have an implementation lying around of an auto-mock container using Rhino Mocks and NInject?
Best Answer
OK I built one myself using the Moq integration as a starting point. It is very simple. You need these 3 classes:
You can then create an auto-mocking kernel in your unit test like this: