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