public void Test_IdentityIsNull() { _permissionManager = new PermissionManager( null, _mockSecurityManager ); _permissionManager.HasPermission( _resourceUri ).Returns( t => { throw new ArgumentNullException( "identity" ); } ); }
public void Test_SecurityManagerIsNull() { _permissionManager = new PermissionManager( CreateIdentity(), null ); _permissionManager.HasPermission( _resourceUri ).Returns( t => { throw new ArgumentNullException( "securityManager" ); } ); }