public void Should_be_able_to_delete_permissions() { var permission = managementClient.GetPermissions() .SingleOrDefault(x => x.User == testUser && x.Vhost == testVHost); if (permission == null) { throw new ApplicationException(string.Format("No permission for vhost: {0} and user: {1}", testVHost, testUser)); } managementClient.DeletePermission(permission); }