Esempio n. 1
0
        public static IPyroRequestUriFactory GetIPyroRequestUriFactory()
        {
            Mock <IPyroRequestUriFactory> MokIPyroRequestUriFactory = new Mock <IPyroRequestUriFactory>();

            MokIPyroRequestUriFactory.Setup(x => x.CreateFhirRequestUri()).Returns(() => new PyroRequestUri(TestSetupMocks.GetIPrimaryServiceRootCache(), TestSetupMocks.GetIPyroFhirUriFactory().CreateFhirRequestUri()));
            return(MokIPyroRequestUriFactory.Object);
        }
Esempio n. 2
0
        public static IPrimaryServiceRootCache GetIPrimaryServiceRootCache()
        {
            Mock <IPrimaryServiceRootCache> MokIPrimaryServiceRootCache = new Mock <IPrimaryServiceRootCache>();

            MokIPrimaryServiceRootCache.Setup(x => x.GetPrimaryRootUrlFromDatabase()).Returns(TestSetupMocks.GetIDtoRootUrlStore());
            MokIPrimaryServiceRootCache.Setup(x => x.GetPrimaryRootUrlFromWebConfig()).Returns(StaticTestData.FhirEndpoint());
            return(MokIPrimaryServiceRootCache.Object);
        }