Ejemplo n.º 1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var redirectionController = new RedirectionController();
            var redirectUrl           = redirectionController.GetFullSiteUrl();

            if (!string.IsNullOrEmpty(redirectUrl))
            {
                lnkPortal.NavigateUrl = redirectUrl;
                lnkPortal.Text        = Localization.GetString("lnkPortal", LocalResourcesFile);
            }
            else
            {
                this.Visible = false;
            }
        }
Ejemplo n.º 2
0
        public void RedirectionController_GetFullSiteUrl_With_NoRedirections()
        {
            var url = _redirectionController.GetFullSiteUrl(Portal0, HomePageOnPortal0);

            Assert.AreEqual(string.Empty, url);
        }