Skip to content

Commit b92d9f6

Browse files
committed
Update README.md
1 parent 5f51f76 commit b92d9f6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ This extension provides integration between Ninject and Moq/NSubstitute/RhinoMoc
66

77
In your tests, you should use the MockingKernel instead of the StandardKernel. It adds the following features to Ninject:
88

9-
1. The following syntax will bind a service to the mocked object of a `Mock<T>`. and add additional interfaces to the mock:
10-
`Bind<IService>().ToMock();`
11-
You can add additional interfaces to the mock:
12-
`Bind<IService>().ToMock(typeof(IInterface1), typeof(IInterface2));`
9+
1. The following syntax will bind a service to the mocked object of a `Mock<T>`.
10+
```C#
11+
Bind<IService>().ToMock();
12+
```
13+
You can add additional interfaces to the mock.
14+
```C#
15+
Bind<IService>().ToMock(typeof(IInterface1), typeof(IInterface2));
16+
```
1317

1418
2. If you request a service that has no binding, instead of creating an implicit self-binding, the MockingKernel
1519
will create an instance of `Mock<T>` and return the mocked object associated with it.
@@ -24,4 +28,4 @@ Hat tip to [Scott Reynolds](http://github.com/scottcreynolds) for the idea, and
2428
https://github.com/ninject/Ninject.MockingKernel/wiki
2529

2630
## CI build status
27-
[![Build Status](https://teamcity.bbv.ch/app/rest/builds/buildType:(id:bt34)/statusIcon)](http://teamcity.bbv.ch/viewType.html?buildTypeId=bt34&guest=1)
31+
[![Build Status](https://teamcity.bbv.ch/app/rest/builds/buildType:(id:bt34)/statusIcon)](http://teamcity.bbv.ch/viewType.html?buildTypeId=bt34&guest=1)

0 commit comments

Comments
 (0)