public void UserManagementServiceUT_ChangePassword_ChangePasswordOfExistingUserSuccess(bool isTemp, string username, string name, string email, string phoneNumber, string password, int disabled, string userType, string salt) { // Arrange: Create the user. bool createResult = UserManagementServiceUT.CreateUser(isTemp, username, name, email, phoneNumber, password, disabled, userType, salt); Assert.IsTrue(createResult); // Act: Change the user password digest. bool passwordResult = UserManagementServiceUT.ChangePassword(username, password, salt); Assert.IsTrue(passwordResult); // Assert: Read the user and make sure his password now matches the change. UserObject user = UserManagementServiceUT.GetUserInfo(username); bool readResult; if (user.TempTimestamp == 0 && user.Username == username && user.Name == name && user.Email == email && user.PhoneNumber == phoneNumber && user.Password == password && user.Disabled == disabled && user.UserType == userType && user.Salt == salt) { readResult = true; } else { readResult = false; } Assert.IsTrue(readResult); // Cleanup: Delete that user. bool deleteResult = UserManagementServiceUT.DeleteUser(username); Assert.IsTrue(deleteResult); }