public void Map_NoConditions_MapsPartyIdToPartyName()
        {
            //Arrange
            var source = new PartyRoleProxy() { Party = new Party() { Id = 999 } };
            source.Party.AddDetails(new PartyDetails(){ Name = "999" });
            var mapper = new PartyRoleMapper();

            //Act
            var destination = mapper.Map(source);

            //Assert
            Assert.AreEqual("999", destination.Party.Name);
        }
Exemplo n.º 2
0
        public void Map_NoConditions_MapsPartyIdToPartyName()
        {
            //Arrange
            var source = new PartyRoleProxy()
            {
                Party = new Party()
                {
                    Id = 999
                }
            };

            source.Party.AddDetails(new PartyDetails()
            {
                Name = "999"
            });
            var mapper = new PartyRoleMapper();

            //Act
            var destination = mapper.Map(source);

            //Assert
            Assert.AreEqual("999", destination.Party.Name);
        }