public void UnrelatedAbsoluteUrlIsNotUpdatedInAnImage()
        {
            var html = "<p><img src=\"https://www.accesseastsussex.org/jobs/index.aspx\" />";

            var linkTransformer = new RemoveAzureDomainHtmlFormatter();

            html = linkTransformer.Format(html);

            Assert.AreEqual("<p><img src=\"https://www.accesseastsussex.org/jobs/index.aspx\" />", html);
        }
        public void RelativeUrlIsUnchangedInAnImage()
        {
            var html = "<p><img src=\"/abc/123/page.html\" />";

            var linkTransformer = new RemoveAzureDomainHtmlFormatter();

            html = linkTransformer.Format(html);

            Assert.AreEqual("<p><img src=\"/abc/123/page.html\" />", html);
        }
        public void AbsoluteAzureUrlIsUpdatedInAnImage()
        {
            var html = "<p><img src=\"https://example.azurewebsites.net/abc/123/page.html\" />";

            var linkTransformer = new RemoveAzureDomainHtmlFormatter();

            html = linkTransformer.Format(html);

            Assert.AreEqual("<p><img src=\"/abc/123/page.html\" />", html);
        }
        public void RelativeUrlIsUnchangedInALink()
        {
            var html = "<p><a href=\"/abc/123/page.html\">link</a><p>";

            var linkTransformer = new RemoveAzureDomainHtmlFormatter();

            html = linkTransformer.Format(html);

            Assert.AreEqual("<p><a href=\"/abc/123/page.html\">link</a><p>", html);
        }