Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Automocking container for RhinoMocks
C#
branch: master
Failed to load latest commit information.
lib updated to rhino mocks 3.6
src updated to rhino mocks 3.6
.gitignore Initial commit
README.markdown started work to create rhino mocks automocking container

README.markdown

This extension provides integration between Ninject and RhinoMocks, creating a "lightweight" auto-mocking container. In your tests, you should use the MockingKernel instead of the StandardKernel. It adds the following features to Ninject:

  1. The following syntax will bind a service to the mocked object of a Mock:

    Bind().ToMock();

  2. If you request a service that has no binding, instead of creating an implicit self-binding, the MockingKernel will create an instance of Mock and return the mocked object associated with it.

  3. A Reset() method is available, which clears the Ninject cache of any activated instances, regardless of whether they remain in scope. You can call this method after each test to ensure that instances are reactivated, without having to dispose and re-initialize the kernel each time.

Something went wrong with that request. Please try again.