title: Problem with Registering Mock objects with Unity
body: <p>I have a named registration like this:</p>
  
  <pre><code>Unity.Container.RegisterType&lt;IScheduler, DailyScheduler&gt;("Daily");
  </code></pre>
  
  <p>This is how I resolve interfaces at runtime:</p>
  
  <pre><code>var Scheduler = Unity.Container.Resolve&lt;IScheduler&gt;("Daily");
  </code></pre>
  
  <p>I override this registration in my Test class like this:</p>
  
  <pre><code>  var schedulerMock = new Mock&lt;IScheduler&gt;();
    schedulerMock.SetupSet(s =&gt; s.IntervalString = It.IsAny&lt;string&gt;());
    Unity.Container.RegisterInstance("Daily", schedulerMock.Object);
  </code></pre>
  
  <p>The problem is that the code is always resolving IScheduler to a DailyScheduler type not the mock object resulting in the VerifyAll method to fail. Am I missing something?</p>