Example #1
0
        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;
        }
Example #3
0
        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);
        }
Example #4
0
 public void Dispose()
 {
     _fhirCacheHelper = null;
 }
Example #5
0
 public FhirSearchHelper(IFhirCacheHelper fhirCacheHelper)
 {
     _fhirCacheHelper = fhirCacheHelper;
 }