NancyFx/Nancy — pull request #1764 by sloncho (2014-12-05 21:05:29+00:00)
Title: Remove unneeded/bad IModelValidator registrations

Short: As these classes are never resolved from the container, but are created with "new" in the factories, there is no need for the registrations to exist at all.

Long:

These 2 registrations are incomplete, as their ctors expect Type as parameter. This causes IoC container diagnostics to fail (example, Windsor reports missing dependencies).

I have a test which validates if after bootstraper.Initialize() the container is in a consistent state, and that's how I found the problem.