public void AuthenticateUser() { var permissions = new Permissions(DbConnector); var id = 0; Assert.DoesNotThrow(() => { id = permissions.AddUser(Username, Password, 0, FirstName, LastName, Email); }, "Add User"); //authenticate user var auth = 0; Assert.DoesNotThrow(() => { auth = permissions.AuthenticateUser(Username, Password); }, "Authenticate"); Assert.That(auth, Is.Not.EqualTo(0)); //add user to group Assert.DoesNotThrow(() => { permissions.AddUserToGroup(id, GroupId); }, "Add user to group"); //remove user from group Assert.DoesNotThrow(() => { permissions.RemoveUserFromGroup(id, GroupId); }, "Remove user from group"); }