示例#1
0
        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);
        }
示例#2
0
		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);
		}
示例#3
0
        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);
        }
示例#4
0
        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;