예제 #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));
        }
예제 #2
0
 public void Initialize(Type type)
 {
     _mapper.Initialize(new[] { type });
 }
예제 #3
0
        public void Interfaces_with_only_properties_should_be_mapped()
        {
            mapper.Initialize(new[] { typeof(InterfaceWithProperties) });

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