public void Can_change_password() { var request = new ChangePasswordRequest("*****@*****.**", true, PasswordFormat.Clear, "password", "password"); var result = _userRegistrationService.ChangePasswordAsync(request).Result; result.Success.ShouldEqual(false); request = new ChangePasswordRequest("*****@*****.**", true, PasswordFormat.Hashed, "newpassword", "password"); result = _userRegistrationService.ChangePasswordAsync(request).Result; result.Success.ShouldEqual(true); }