示例#1
0
        public void TestNonExistingPropertyReturnsNull()
        {
            var index = new FhirPropertyIndex(_fhirModel, new List <Type> {
                typeof(Patient), typeof(Account)
            });

            var pm = index.FindPropertyInfo("TypeNotPresent", "subject");

            Assert.Null(pm);

            pm = index.FindPropertyInfo("Patient", "property_not_present");
            Assert.Null(pm);
        }
示例#2
0
        public void TestExistingPropertyIsFound()
        {
            var index = new FhirPropertyIndex(_fhirModel, new List <Type> {
                typeof(Patient), typeof(HumanName)
            });

            var pm = index.FindPropertyInfo("Patient", "name");

            Assert.NotNull(pm);

            pm = index.FindPropertyInfo("HumanName", "given");
            Assert.NotNull(pm);
        }
示例#3
0
        public void TestTypedNameIsFound()
        {
            var index = new FhirPropertyIndex(_fhirModel, new List <Type> {
                typeof(ClinicalImpression), typeof(Period)
            });

            var pm = index.FindPropertyInfo("ClinicalImpression", "effectivePeriod");

            Assert.NotNull(pm);
        }