Beispiel #1
0
        public void CreateConfiguration_With4MapFromNoConfig_MapsAll()
        {
            var types    = new Type[] { typeof(TestEasy), typeof(TestConfig) };
            var config   = MappingConfigFactory.CreateConfiguration(types);
            var mappings = config.CreateMapper().ConfigurationProvider.GetAllTypeMaps();

            Assert.Equal(4, mappings.Length);
        }
Beispiel #2
0
        public void SetupTest()
        {
            var mapperConfig = MappingConfigFactory.CreateConfiguration();

            _mapper = mapperConfig.CreateMapper();
        }