title: Nancy Dependency Injection register multiple
body: <p>I have a module which is expecting a dependency to be satisfied however I get the an error stating </p>
  
  <p><strong>Something went wrong when trying to satisfy one of the dependencies during composition, make sure that you've registered all new dependencies in the container and inspect the innerexception for more details.</strong></p>
  
  <p>The inner exception which I believe is a red herring:</p>
  
  <p><strong>Unable to resolve type: Nancy.Routing.DefaultRequestDispatcher
  I believe I have hooked this up correctly (see below).</strong></p>
  
  <pre><code>public class FooModule : NancyModule
  {
      private readonly SomeValidator validator;
  
      public FooModule(SomeValidator validator)
      {
          this.validator = validator;
          //CODE..
      }
  }
  
  
  public class Bootstrap : DefaultNancyBootstrapper
  {
      protected override void ConfigureApplicationContainer(TinyIoCContainer container)
      {
          container.Register(new SomeValidator(new FooValidator()));
  
          base.ConfigureApplicationContainer(container);
      }
  }   
  
  public class SomeValidator
  {
      private readonly IValidator[] validators;
  
      public SomeValidator(params IValidator[] validators)
      {
          this.validators = validators;
      }
  }
  </code></pre>