예제 #1
0
        public static void RegisterModels()
        {
            var autoMapper = new AutoMapperConfigurator(Assembly.GetExecutingAssembly(),
                                                        "Mihaylov.Data.Models");

            autoMapper.Execute();
        }
예제 #2
0
        public void TestAutoMapperValid()
        {
            var mapper = new AutoMapperConfigurator(null, "Mihaylov.Data.Model");

            mapper.Execute();

            AutoMapperConfigurator.Configuration.AssertConfigurationIsValid();
        }