AutoMapper.UnitTests.Constructors.When_mapping_to_an_object_with_a_constructor_with_a_matching_argument.Because_of C# (CSharp) Метод

Because_of() защищенный Метод

protected Because_of ( ) : void
Результат void
        protected override void Because_of()
        {
            Expression<Func<object, object>> ctor = (input) => new Dest((int)input);

            object o = ctor.Compile()(5);

            _dest = Mapper.Map<Source, Dest>(new Source { Foo = 5, Bar = 10 });
        }
When_mapping_to_an_object_with_a_constructor_with_a_matching_argument