Esempio n. 1
0
        public void MultipleSchemes()
        {
            var policy = new WhiteListDomainPolicy("https://foo.bar", "http://foo.bar");

            Assert.IsTrue(policy.Accept("https://foo.bar/aza"));
            Assert.IsTrue(policy.Accept("http://foo.bar/aza"));
        }
Esempio n. 2
0
        public void Subdomain()
        {
            var policy = new WhiteListDomainPolicy("http://qux.foo.bar", "http://foo.bar");

            Assert.IsTrue(policy.Accept("http://qux.foo.bar"));
        }