public void ChangingPasswordShouldFailIfCurrentPasswordIsIncorrect() { ChangePasswordRequest changePasswordRequest = new ChangePasswordRequest { CurrentPassword = "******", NewPassword = "******", ConfirmedNewPassword = "******" }; ChangePasswordResult changePasswordResult = _changePasswordHandler.Handle(changePasswordRequest); Assert.IsFalse(changePasswordResult.Succeeded); }
public ChangePasswordResult ChangePassword(ChangePasswordRequest changePasswordRequest) { return(_changePasswordHandler.Handle(changePasswordRequest)); }