Example #1
0
        public void ShallReturnUnknown()
        {
            var result = new AdministrativeGenderParser().FromCda("UNK");

            result.Should().Be(AdministrativeGender.Unknown);
        }
Example #2
0
        public void ShallReturnOther()
        {
            var result = new AdministrativeGenderParser().FromCda("UN");

            result.Should().Be(AdministrativeGender.Other);
        }
Example #3
0
        public void NotMappedUseAttributeShallRenturnNull()
        {
            var result = new AdministrativeGenderParser().FromCda("BAD");

            result.Should().BeNull();
        }
Example #4
0
        public void ShallReturnFemale()
        {
            var result = new AdministrativeGenderParser().FromCda("F");

            result.Should().Be(AdministrativeGender.Female);
        }
Example #5
0
        public void NullXmlShallRenturnNull()
        {
            var result = new AdministrativeGenderParser().FromCda(null);

            result.Should().BeNull();
        }