ninject/ninject.extensions.conventions — pull request #18 by BrunoJuchli (2014-04-15 13:31:23+00:00)
Title: Add Bind<TInterface> syntax to bind a specific interface

We would like to have `IBindSyntax.Bind<>` syntax to bind a specific interface, like:

IBindingRoot.Bind(x => x
.FromCurrentAssembly()
.SelectAllClasses()
.InheritingFrom
.Bind);

Hint:
- The pull request also contains `IBindSyntax.Bind(params Type[] serviceTypes)`. We don't need that but i felt i would make it more complex. If you think it only blows up the syntax interface without generating adequate benefit feel free to remove it (or tell me to remove it ;-) ).
- This required adapting the kernel mock in order to be able to test `.Bind(typeof(IFoo), typeof(IBar)).To(typeof(FooBar))` style bindings.