public void ToDanskAdresseType_Empty_UkendtAdresseIndikatorFalse() { var citizen = new CitizenReadyAddress() { RoadCode = 22 }; citizen.Roads.Add(new Road() { RoadCode = 22 }); var result = citizen.ToDanskAdresseType(); Assert.False(result.UkendtAdresseIndikator); }
public void ToDanskAdresseType_ValidNormalCode_SpecielVejkodeIndikatorTrue( [ValueSource("ValidAddressTestValues")] CitizenReadyAddress citizen, [Values(9900, 9950)] short roadCode) { var val = citizen.RoadCode; citizen.RoadCode = roadCode; try { var result = citizen.ToDanskAdresseType(); Assert.True(result.SpecielVejkodeIndikator); } finally { citizen.RoadCode = val; } }
public void ToDanskAdresseType_Valid_ValgkredsDistriktTekstNull(CitizenReadyAddress citizen) { var result = citizen.ToDanskAdresseType(); Assert.IsNullOrEmpty(result.ValgkredsDistriktTekst); }
public void ToDanskAdresseType_Valid_UkendtAdresseIndikatorFalse(CitizenReadyAddress citizen) { var result = citizen.ToDanskAdresseType(); Assert.False(result.UkendtAdresseIndikator); }
public void ToDanskAdresseType_Valid_NoteTekstNull(CitizenReadyAddress citizen) { var result = citizen.ToDanskAdresseType(); Assert.IsNullOrEmpty(result.NoteTekst); }
public void ToDanskAdresseType_Valid_AddressPointNull(CitizenReadyAddress citizen) { var result = citizen.ToDanskAdresseType(); Assert.IsNull(result.AddressPoint); }
public void ToDanskAdresseType_Valid_AddressCompleteNotNull(CitizenReadyAddress citizen) { var result = citizen.ToDanskAdresseType(); Assert.IsNotNull(result.AddressComplete); }