public FhirSearchHelperTests() { var mockCacheHelper = new Mock <IFhirCacheHelper>(); mockCacheHelper.Setup(op => op.GetResourceProfile(It.Is <string>(s => s.Equals(FhirConstants.SystemNrlsProfile)))).Returns(FhirResources.SD_NrlsPointer); _fhirCacheHelper = mockCacheHelper.Object; }
public ValidationHelperTests() { var mockCacheHelper = new Mock <IFhirCacheHelper>(); mockCacheHelper.Setup(op => op.GetSource()).Returns(ResourceResolverStub.MockResourceResolver.GetSource()); mockCacheHelper.Setup(op => op.GetValueSet(It.Is <string>(s => s.Equals(FhirConstants.VsRecordType)))).Returns(FhirResources.ValueSet_NrlsType); _fhirCacheHelper = mockCacheHelper.Object; }
public ValidationHelper(IFhirCacheHelper fhirCacheHelper) { _fhirCacheHelper = fhirCacheHelper; _source = _fhirCacheHelper.GetSource(); var ctx = new ValidationSettings() { ResourceResolver = _source, GenerateSnapshot = true, EnableXsdValidation = false, Trace = false, ResolveExteralReferences = true }; Validator = new Validator(ctx); }
public void Dispose() { _fhirCacheHelper = null; }
public FhirSearchHelper(IFhirCacheHelper fhirCacheHelper) { _fhirCacheHelper = fhirCacheHelper; }