title: Verify Autofac registrations in a unit test
body: <p>I'm registering many types to my <code>Container</code>, implementing all sorts of interfaces.</p>
  
  <p>In some programmatic manner, I want to have a unit test that will check all resolving are successful, meaning there are no circular or missing dependencies in the registrations.</p>
  
  <p>I tried to add something like this:</p>
  
  <pre><code>        [TestMethod]
          public void Resolve_CanResolveAllTypes()
          {
              foreach (var registration in _container.ComponentRegistry.Registrations)
              {
                  var instance = _container.Resolve(registration.Activator.LimitType);
                  Assert.IsNotNull(instance);
              }
          }
  </code></pre>
  
  <p>But it fails on first run on resolving <code>Autofac.Core.Lifetime.LifetimeScope</code>, though I have methods that accepts <code>ILifetimeScope</code> as parameter and get it just fine when my application starts.</p>