Beispiel #1
0
        private SearchQueryService SetupSearchQueryService()
        {
            ISearchParameterCache ISearchParameterCache = SetupSearchParameterCache();
            SearchQueryFactory    SearchQueryFactory    = SetupSearchQueryFactory(ISearchParameterCache);
            IResourceTypeSupport  IResourceTypeSupport  = new ResourceTypeSupport();
            var IKnownResourceMock = IKnownResource_MockFactory.Get();
            IChainQueryProcessingService IChainQueryProcessingService = new ChainQueryProcessingService(IResourceTypeSupport, IKnownResourceMock.Object, ISearchParameterCache, SearchQueryFactory);
            SearchQueryService           SearchQueryService           = new SearchQueryService(ISearchParameterCache, SearchQueryFactory, IResourceTypeSupport, IKnownResourceMock.Object, IChainQueryProcessingService);

            return(SearchQueryService);
        }
Beispiel #2
0
 public SearchQueryService(ISearchParameterCache ISearchParameterCache,
                           ISearchQueryFactory ISearchQueryFactory,
                           IResourceTypeSupport IResourceTypeSupport,
                           IKnownResource IKnownResource,
                           IChainQueryProcessingService IChainQueryProcessingService)
 {
     this.ISearchParameterCache        = ISearchParameterCache;
     this.ISearchQueryFactory          = ISearchQueryFactory;
     this.IResourceTypeSupport         = IResourceTypeSupport;
     this.IKnownResource               = IKnownResource;
     this.IChainQueryProcessingService = IChainQueryProcessingService;
 }
Beispiel #3
0
        public ChainQueryProcessingService(IResourceTypeSupport IResourceTypeSupport,
                                           IKnownResource IKnownResource,
                                           ISearchParameterCache ISearchParameterCache,
                                           ISearchQueryFactory ISearchQueryFactory)
        {
            this.IResourceTypeSupport  = IResourceTypeSupport;
            this.IKnownResource        = IKnownResource;
            this.ISearchParameterCache = ISearchParameterCache;
            this.ISearchQueryFactory   = ISearchQueryFactory;

            this.InvalidSearchQueryParameterList     = new List <InvalidSearchQueryParameter>();
            this.UnsupportedSearchQueryParameterList = new List <InvalidSearchQueryParameter>();
        }
 public SearchQueryFactory(IFhirUriFactory IFhirUriFactory,
                           IResourceTypeSupport IResourceTypeSupport,
                           ISearchParameterCache ISearchParameterCache,
                           IKnownResource IKnownResource,
                           IFhirDateTimeFactory IFhirDateTimeFactory,
                           ISearchParameterRepository ISearchParameterRepository)
 {
     this.IFhirUriFactory            = IFhirUriFactory;
     this.IResourceTypeSupport       = IResourceTypeSupport;
     this.ISearchParameterCache      = ISearchParameterCache;
     this.IKnownResource             = IKnownResource;
     this.IFhirDateTimeFactory       = IFhirDateTimeFactory;
     this.ISearchParameterRepository = ISearchParameterRepository;
 }
        public static SearchQueryFactory Get(ISearchParameterCache ISearchParameterCache)
        {
            Bug.Common.Interfaces.IFhirUriFactory IFhirUriFactory = FhirUriFactory_Factory.Get(TestData.BaseUrlServer, new string[]
            {
                ResourceType.Observation.GetCode(),
                ResourceType.Patient.GetCode(),
                ResourceType.Device.GetCode(),
                ResourceType.Encounter.GetCode()
            });

            IResourceTypeSupport  IResourceTypeSupport = new ResourceTypeSupport();
            Mock <IKnownResource> IKnownResourceMock   = IKnownResource_MockFactory.Get();
            IFhirDateTimeFactory  IFhirDateTimeFactory = IFhirDateTimeFactory_Factory.Get(TimeSpan.FromHours(10));
            //This mock below 'ISearchParameterRepository' is not fully formed!
            Mock <ISearchParameterRepository> ISearchParameterRepositoryMock = ISearchParameterRepository_MockFactory.Get();

            return(new SearchQueryFactory(IFhirUriFactory, IResourceTypeSupport, ISearchParameterCache, IKnownResourceMock.Object, IFhirDateTimeFactory, ISearchParameterRepositoryMock.Object));
        }
Beispiel #6
0
 public Indexer(ISearchParameterCache ISearchParameterCache,
                ITypedElementSupport ITypedElementSupport,
                IDateTimeSetterSupport IDateTimeSetterSupport,
                INumberSetterSupport INumberSetterSupport,
                IReferenceSetterSupport IReferenceSetterSupport,
                IStringSetterSupport IStringSetterSupport,
                ITokenSetterSupport ITokenSetterSupport,
                IQuantitySetterSupport IQuantitySetterSupport,
                IUriSetterSupport IUriSetterSupport,
                ILogger ILogger)
 {
     this.ISearchParameterCache   = ISearchParameterCache;
     this.ITypedElementSupport    = ITypedElementSupport;
     this.IDateTimeSetterSupport  = IDateTimeSetterSupport;
     this.INumberSetterSupport    = INumberSetterSupport;
     this.IReferenceSetterSupport = IReferenceSetterSupport;
     this.IStringSetterSupport    = IStringSetterSupport;
     this.ITokenSetterSupport     = ITokenSetterSupport;
     this.IQuantitySetterSupport  = IQuantitySetterSupport;
     this.IUriSetterSupport       = IUriSetterSupport;
     this.ILogger = ILogger;
 }
Beispiel #7
0
 private SearchQueryFactory SetupSearchQueryFactory(ISearchParameterCache ISearchParameterCache)
 {
     return(SearchQueryFactory_Factory.Get(ISearchParameterCache));
 }