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")); }
public void Subdomain() { var policy = new WhiteListDomainPolicy("http://qux.foo.bar", "http://foo.bar"); Assert.IsTrue(policy.Accept("http://qux.foo.bar")); }