public void TestUnauthorizedDelete() { ResourceCreate.Create(); CurrentUser.Login(); AssertUnauthorized(ResourceCreate.Delete()); }
public void TestAuthorizedDelete() { ResourceCreate.Create(); CurrentUser.AddRoleAndRelogin(typeof(ExampleResource), ResourceActions.Delete); AssertOk(ResourceCreate.Delete()); }
public void TestAuthorizedAlter() { ResourceCreate.Create(); CurrentUser.AddRoleAndRelogin(typeof(ExampleResource), ResourceActions.Read | ResourceActions.Alter); AssertOk(ResourceAlter.Update()); }