protected internal SecurableResourceInfo(Url url) { if (url == null) { throw new ArgumentNullException("url"); } Url = url; SecurityRequirements = new ResourceSecurityInfo(); }
public void it_should_merge_specifications() { var other = new ResourceSecurityInfo().Deny(ExpectedClaim, ExpectedValue); _resourceSecurityInfo.Allow(ExpectedClaim, ExpectedValue); _resourceSecurityInfo = _resourceSecurityInfo.OverrideWith(other); _resourceSecurityInfo.Allowed.Should().BeEmpty(); _resourceSecurityInfo.Denied[ExpectedClaim].Should().Contain(ExpectedValue); }
public void Teardown() { _resourceSecurityInfo = null; }
public void Setup() { _resourceSecurityInfo = new ResourceSecurityInfo(); }