public void TestHostInTestEnvironment()
        {
            var parameters = new NameValueCollection();
            parameters.Add("Environment", "test");
            parameters.Add("BridgeWsUrl", "https://testprofiles.phe.org.uk/");
            var config = new AppConfig(parameters);

            var skin = ReaderFactory.GetProfileReader().GetSkinFromId(SkinIds.Core);
            var host = new FingertipsUrl(config).Host;
            Assert.AreEqual("http://" + skin.TestHost, host);
        }
 private void SetBridgeServicesUrl()
 {
     string bridge = appConfig.BridgeWsUrl;
     if (string.IsNullOrWhiteSpace(bridge))
     {
         IfRequestNotDefinedExplainWhy();
         var protocol = new FingertipsUrl(appConfig).Protocol;
         ViewBag.Protocol = protocol;
         bridge = protocol + Request.Url.Authority + "/";
     }
     PageModel.BridgeServicesUrl = bridge;
 }