Ejemplo 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);
        }
Ejemplo 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);
        }