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); }
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); }
public void TestTypedNameIsFound() { var index = new FhirPropertyIndex(_fhirModel, new List <Type> { typeof(ClinicalImpression), typeof(Period) }); var pm = index.FindPropertyInfo("ClinicalImpression", "effectivePeriod"); Assert.NotNull(pm); }