title: Using Castle Windsor to inject dependencies when the classes inherit from the same base class
body: <p>I have two classes that inherit from the same base class.</p>
  
  <pre><code>public class UserDetailValidator : BaseValidator&lt;UserDetail&gt;{
      public UserDetailValidator(IRepository&lt;Person, Guid&gt; userRepository, AddressValidator addressValidator)
      {
          RuleFor(x =&gt; x.FirstName).Length(1, 10);
      }
  }
  
  public class AddressValidator : BaseValidator&lt;Address&gt;
  </code></pre>
  
  <p>When I try and get the UserDetailValidator from WindsorServiceLocator I get the error </p>
  
  <p>Missing dependency.
  Component UserDetailValidator has a dependency on AddressValidator, which could not be resolved.
  Make sure the dependency is correctly registered in the container as a service, or provided as inline argument.  I'm using the following in my ValidationInstaller.</p>
  
  <pre><code>container.Register(
  AllTypes.FromAssemblyNamed("Validation")
          .IncludeNonPublicTypes()
      .BasedOn(typeof(IValidator&lt;&gt;))
      .WithService.AllInterfaces()
      .LifestyleTransient()
  </code></pre>
  
  <p>The IRepository component is being injected with no problems.  It's only the AddressValidator that does not come in.  What am I not doing properly?  I'm using Castle Windsor 3.0</p>