title: UnityContainer - how register/resolve with dependency chaining
body: <p>I have an MVC app that has <code>Controller</code> that takes a <code>IDomainService</code>.
  The <code>DomainService</code> class constructor takes an <code>IRepository</code>
  and the <code>Repository</code> class constructor requires a connection string.</p>
  
  <p>I have something like this:</p>
  
  <pre><code>string connectionString = ConfigurationManager
      .ConnectionStrings["ApplicationServices"].ConnectionString;
  
  c.RegisterInstance("ConnectionString", connectionString);
  
  c.RegisterType&lt;IDepartmentRepository, DepartmentRepository&gt;(
      "DepartmentRepository", 
      new InjectionConstructor(connectionString));
  
  c.RegisterType&lt;IDepartmentDomainService, DepartmentService&gt;(
      new InjectionConstructor(
          new ResolvedParameter&lt;IDepartmentRepository&gt;(
              "DepartmentRepository")));
  </code></pre>
  
  <p>However, this doesn't work.</p>
  
  <p>Am I do something wrong? I have no problem with the repository injection, but I can't get my domain service injected (with the repository) to work.</p>
  
  <p>Thanks.</p>