title: AutoMapper registration in Unity DI
body: <p>I'm not that familiar with Unity or StructureMap.  How do you convert the following StructureMap registration sample into Unity registration syntax?</p>
  
  <pre><code>    public class ConfigurationRegistry : Registry
      {
          public ConfigurationRegistry()
          {
              ForRequestedType&lt;ConfigurationStore&gt;()
                  .CacheBy(InstanceScope.Singleton)
                  .TheDefault.Is.OfConcreteType&lt;ConfigurationStore&gt;()
                  .CtorDependency&lt;IEnumerable&lt;IObjectMapper&gt;&gt;().Is(expr =&gt; expr.ConstructedBy(MapperRegistry.AllMappers));
  
              ForRequestedType&lt;IConfigurationProvider&gt;()
                  .TheDefault.Is.ConstructedBy(ctx =&gt; ctx.GetInstance&lt;ConfigurationStore&gt;());
  
              ForRequestedType&lt;IConfiguration&gt;()
                  .TheDefault.Is.ConstructedBy(ctx =&gt; ctx.GetInstance&lt;ConfigurationStore&gt;());
  
              ForRequestedType&lt;IMappingEngine&gt;().TheDefaultIsConcreteType&lt;MappingEngine&gt;();
  
              ForRequestedType&lt;ITypeMapFactory&gt;().TheDefaultIsConcreteType&lt;TypeMapFactory&gt;();
          }
      }
  </code></pre>