protected override void Because_of()
        {
            _source = new Source { Value = "jon" };
            _dest = new Destination();


            _sourceWithList = new SourceWithList { SomeList = new[] { 1, 2 } };
            _destWithList = new DestinationWithList();
            _dest = Mapper.Map<Source, Destination>(_source);
            _destWithList = Mapper.Map<SourceWithList, DestinationWithList>(_sourceWithList);
        }
Exemple #2
0
            protected override void Establish_context()
            {
                Mapper.CreateMap <Source, Destination>();
                Mapper.CreateMap <SourceWithList, DestinationWithList>();

                _source = new Source {
                    Value = "jon"
                };
                _dest = new Destination();


                _sourceWithList = new SourceWithList {
                    SomeList = new[] { 1, 2 }
                };
                _destWithList = new DestinationWithList();
            }