public void TypeAuth_DefaultPolicy_DescriptorNull() { // arrange // act Action action = () => AuthorizeObjectTypeDescriptorExtensions.Authorize(null); // assert Assert.Throws <ArgumentNullException>(action); }
public void TypeAuth_WithPolicyAndRoles_DescriptorNull() { // arrange // act Action action = () => AuthorizeObjectTypeDescriptorExtensions .Authorize(null, "MyPolicy", new[] { "MyRole" }); // assert Assert.Throws <ArgumentNullException>(action); }