public void Initialize()
 {
     _source = new ModelObject
     {
         BaseDate = new DateTime(2007, 4, 5),
         Sub = new ModelSubObject
         {
             ProperName = "Some name",
             SubSub = new ModelSubSubObject
             {
                 IAmACoolProperty = "Cool daddy-o"
             }
         },
         Sub2 = new ModelSubObject
         {
             ProperName = "Sub 2 name"
         },
         SubWithExtraName = new ModelSubObject
         {
             ProperName = "Some other name"
         },
     };
 }
 public void Initialize()
 {
     Mapper.Initialize(cfg =>
     {
         cfg.CreateMap<Model1, Dto1>();
         cfg.CreateMap<Model2, Dto2>();
         cfg.CreateMap<Model3, Dto3>();
         cfg.CreateMap<Model4, Dto4>();
         cfg.CreateMap<Model5, Dto5>();
         cfg.CreateMap<Model6, Dto6>();
         cfg.CreateMap<Model7, Dto7>();
         cfg.CreateMap<Model8, Dto8>();
         cfg.CreateMap<Model9, Dto9>();
         cfg.CreateMap<Model10, Dto10>();
         cfg.CreateMap<ModelObject, ModelDto>();
     });
     Mapper.AssertConfigurationIsValid();
     _source = new ModelObject
         {
             BaseDate = new DateTime(2007, 4, 5),
             Sub = new ModelSubObject
                 {
                     ProperName = "Some name",
                     SubSub = new ModelSubSubObject
                         {
                             IAmACoolProperty = "Cool daddy-o"
                         }
                 },
             Sub2 = new ModelSubObject
                 {
                     ProperName = "Sub 2 name"
                 },
             SubWithExtraName = new ModelSubObject
                 {
                     ProperName = "Some other name"
                 },
         };
 }
 public static ModelDto MapHelper(ModelObject source)
 {
     return new ModelDto
     {
         BaseDate = source.BaseDate,
         Sub2ProperName = source.Sub2.ProperName,
         SubProperName = source.Sub.ProperName,
         SubSubSubIAmACoolProperty = source.Sub.SubSub.IAmACoolProperty,
         SubWithExtraNameProperName = source.SubWithExtraName.ProperName
     };
 }