Example #1
0
        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);
        }
Example #2
0
        public void ShallRenturnMobileContactPoint()
        {
            var result = new ContactPointUseParser().FromCda("MC");

            result.Should().Be(ContactPoint.ContactPointUse.Mobile);
        }
Example #3
0
        public void ShallRenturnOldAddress()
        {
            var result = new ContactPointUseParser().FromCda("OLD");

            result.Should().Be(ContactPoint.ContactPointUse.Old);
        }
Example #4
0
        public void ShallRenturnTempAddress()
        {
            var result = new ContactPointUseParser().FromCda("TMP");

            result.Should().Be(ContactPoint.ContactPointUse.Temp);
        }
Example #5
0
        public void ShallRenturnWorkAddress()
        {
            var result = new ContactPointUseParser().FromCda("WP");

            result.Should().Be(ContactPoint.ContactPointUse.Work);
        }
Example #6
0
        public void NotMappedUseAttributeShallRenturnNull()
        {
            var result = new ContactPointUseParser().FromCda("BAD");

            result.Should().BeNull();
        }
Example #7
0
        public void NullXmlShallRenturnNull()
        {
            var result = new ContactPointUseParser().FromCda(null);

            result.Should().BeNull();
        }