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); }
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(); }