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

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

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

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

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

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

            result.Should().BeNull();
        }