Skip to content

Commit d6aa45c

Browse files
committed
Update README.md
1 parent 9daa377 commit d6aa45c

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,45 @@
11
FluentAssertions.Ioc.Ninject
22
============================
33

4-
Extensions for Fluent Assertions for testing Ninject mappings.
4+
Extensions methods for [Fluent Assertions](https://github.com/dennisdoomen/fluentassertions) for testing Ninject mappings.
55

6-
## Continuous Integration
6+
Why?
7+
====
8+
9+
To test Ninject mappings using the [conventions extension](https://github.com/ninject/ninject.extensions.conventions) (or setup manually) are resolving. Instead of finding out at runtime that your app won't run, you'll have a failing unit test instead.
10+
11+
Tests are written like this:
12+
13+
```` c#
14+
[Test]
15+
public void Services_can_be_resolved_with_a_single_instance()
16+
{
17+
// Arrange
18+
var kernel = GetKernel();
19+
var interfaces = FindAssembly.Containing<ISampleService>().GetPublicInterfaces()
20+
.EndingWith("Service");
21+
22+
// Assert
23+
kernel.Should().Resolve(interfaces).WithSingleInstance();
24+
}
25+
````
26+
27+
Installing
28+
==========
29+
30+
Please install the NuGet package:
31+
32+
````
33+
PM> Install-Package FluentAssertions.Ioc.Ninject
34+
````
35+
36+
Documentation
37+
=============
38+
39+
Please see the [sample tests](https://github.com/kevinkuszyk/FluentAssertions.Ioc.Ninject/blob/master/src/FluentAssertions.Ioc.Ninject.SampleTests/IocTests.cs)
40+
41+
Continuous Integration
42+
======================
743

844
[![Build status](https://ci.appveyor.com/api/projects/status/kexyhqbklr5eea02)](https://ci.appveyor.com/project/kevinkuszyk/fluentassertions-ioc-ninject)
945

0 commit comments

Comments
 (0)