public void ChangingPasswordShouldFailIfCurrentPasswordIsIncorrect()
        {
            ChangePasswordRequest changePasswordRequest = new ChangePasswordRequest
            {
                CurrentPassword      = "******",
                NewPassword          = "******",
                ConfirmedNewPassword = "******"
            };

            ChangePasswordResult changePasswordResult = _changePasswordHandler.Handle(changePasswordRequest);

            Assert.IsFalse(changePasswordResult.Succeeded);
        }
Exemple #2
0
 public ChangePasswordResult ChangePassword(ChangePasswordRequest changePasswordRequest)
 {
     return(_changePasswordHandler.Handle(changePasswordRequest));
 }