public void WillAllowLocalhostRedirects(string sourceUrl, string destinationUrl)
        {
            var redirectPolicy = new AllowLocalHttpRedirectPolicy();

            Assert.True(redirectPolicy.IsAllowed(new Uri(sourceUrl), new Uri(destinationUrl)));
        }
        public void WillOnlyAllowSafeRedirects(string sourceUrl, string destinationUrl, bool expectedResult)
        {
            var redirectPolicy = new AllowLocalHttpRedirectPolicy();

            Assert.Equal(expectedResult, redirectPolicy.IsAllowed(new Uri(sourceUrl), new Uri(destinationUrl)));
        }