title: Automapper with Unity - where to put CreateMap stuff?
body: <p>I am registering automapper using unity with the following:</p>
  
  <pre><code>container
    .RegisterType&lt;AutoMapper.Configuration, AutoMapper.Configuration&gt;(new PerThreadLifetimeManager(),
  new InjectionConstructor(typeof (ITypeMapFactory), AutoMapper.Mappers.MapperRegistry.AllMappers()))
    .RegisterType&lt;ITypeMapFactory, TypeMapFactory&gt;()
    .RegisterType&lt;IConfiguration, AutoMapper.Configuration&gt;()
    .RegisterType&lt;IConfigurationProvider, AutoMapper.Configuration&gt;()
    .RegisterType&lt;IMappingEngine, MappingEngine&gt;();
  </code></pre>
  
  <p>This works fine but where do I put the equivalent of my Mapper.CreateMap's?</p>
  
  <p>Also, if I have some custom resolvers, how and where do I register these where they have dependencies on other objects I have registered through Unity?</p>