public void ShallRenturnHomeAddress() { var result = new ContactPointUseParser().FromCda("H"); result.Should().Be(ContactPoint.ContactPointUse.Home); result = new ContactPointUseParser().FromCda("HP"); result.Should().Be(ContactPoint.ContactPointUse.Home); result = new ContactPointUseParser().FromCda("HV"); result.Should().Be(ContactPoint.ContactPointUse.Home); }
public void ShallRenturnMobileContactPoint() { var result = new ContactPointUseParser().FromCda("MC"); result.Should().Be(ContactPoint.ContactPointUse.Mobile); }
public void ShallRenturnOldAddress() { var result = new ContactPointUseParser().FromCda("OLD"); result.Should().Be(ContactPoint.ContactPointUse.Old); }
public void ShallRenturnTempAddress() { var result = new ContactPointUseParser().FromCda("TMP"); result.Should().Be(ContactPoint.ContactPointUse.Temp); }
public void ShallRenturnWorkAddress() { var result = new ContactPointUseParser().FromCda("WP"); result.Should().Be(ContactPoint.ContactPointUse.Work); }
public void NotMappedUseAttributeShallRenturnNull() { var result = new ContactPointUseParser().FromCda("BAD"); result.Should().BeNull(); }
public void NullXmlShallRenturnNull() { var result = new ContactPointUseParser().FromCda(null); result.Should().BeNull(); }