title: Unity Container: use ContainerControlledLifetimeManager by default for "Resolve" method group
body: <p>How to fill TODO to make this test pass?</p>
  
  <pre><code>class MyClass { }
  
  [Test]
  public void Singleton_by_default_test()
  {
      var parentContainer = GetUnityContainer();        
      var container = parentContainer.GetChildContainer();
  
      // TODO: Add magic here (but do NOT explicitly register MyClass in container!)
  
      Assert.AreSame(container.Resolve&lt;MyClass&gt;(), container.Resolve&lt;MyClass&gt;());
  }
  </code></pre>
  
  <p><strong>Update:</strong>
  There is a way that uses inheritance.</p>
  
  <pre><code>public class SingletonContainer : UnityContainer
  {
      public override object Resolve(Type t, string name)
      {
          var obj = base.Resolve(t, name);
          RegisterInstance(t, name, obj, new ContainerControlledLifetimeManager());
          return obj;
      }
  }
  </code></pre>
  
  <p>I am using <em>container.GetChildContainer()</em> to get container instance so this method does not suite me.</p>