public void MapMemberWithPartNamesOnDifferentLevels() { Mapper.CreateMap<ComplexSource, Destination>(); var source = new ComplexSource { Some = new ComplexSourceChild {Property = "hello world"} }; Destination map = Mapper.Map<ComplexSource, Destination>(source); Assert.Equal("hello world", map.SomeProperty); }
public void Test() { Mapper.CreateMap<ComplexSourceChild, ComplexDestinationChild>(); Mapper.CreateMap<ComplexSource, ComplexDestination>(); var source = new ComplexSource { Some = new ComplexSourceChild {Property = "hello world"} }; ComplexDestination map = Mapper.Map<ComplexSource, ComplexDestination>(source); Assert.Equal("hello world", map.Some.Property); }
public void MapMemberWithPartNamesOnDifferentLevels() { Mapper.CreateMap <ComplexSource, Destination>(); var source = new ComplexSource { Some = new ComplexSourceChild { Property = "hello world" } }; Destination map = Mapper.Map <ComplexSource, Destination>(source); Assert.Equal("hello world", map.SomeProperty); }
public void Test() { Mapper.CreateMap <ComplexSourceChild, ComplexDestinationChild>(); Mapper.CreateMap <ComplexSource, ComplexDestination>(); var source = new ComplexSource { Some = new ComplexSourceChild { Property = "hello world" } }; ComplexDestination map = Mapper.Map <ComplexSource, ComplexDestination>(source); Assert.Equal("hello world", map.Some.Property); }
public QuestCompletionProgress CalcProgress(UserAllianceData allianceData, UserMagicShopData magicShopData, UserSessionChestData sessionChestData, ComplexSource source) => default;
// Methods public bool IsCompleted(UserAllianceData allianceData, UserMagicShopData magicShopData, UserSessionChestData sessionChestData, ComplexSource source) => default;