Skip to content

Commit 387dcf6

Browse files
committed
Update README.markdown
1 parent d4f63e5 commit 387dcf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
This extension provides integration between Ninject and Moq, creating a "lightweight" auto-mocking container.
22
In your tests, you should use the MockingKernel instead of the StandardKernel. It adds the following features to Ninject:
33

4-
1. The following syntax will bind a service to the mocked object of a Mock<T>:
4+
1. The following syntax will bind a service to the mocked object of a Mock<T> and add additional interfaces to the mock:
55

6-
`Bind<IService>().ToMock();`
6+
`Bind<IService>().ToMock(typeof(IInterface1), typeof(IInterface2));`
77

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

0 commit comments

Comments
 (0)