Esempio n. 1
0
        public void Class_abstract_generic_with_only_properties_generic_should_not_be_mapped()
        {
            var genericClassType = typeof(GenericAbstractCommand <>);

            mapper.Initialize(new[] { genericClassType });
            Assert.Null(mapper.GetMappedTypeFor(genericClassType));
        }
 public void Initialize(Type type)
 {
     _mapper.Initialize(new[] { type });
 }
Esempio n. 3
0
        public void Interfaces_with_only_properties_should_be_mapped()
        {
            mapper.Initialize(new[] { typeof(InterfaceWithProperties) });

            Assert.NotNull(mapper.GetMappedTypeFor(typeof(InterfaceWithProperties)));
        }
Esempio n. 4
0
 public void Initialize(IEnumerable <Type> types)
 {
     messageMapper.Initialize(types);
 }