public async Task CanChangePassword() { var customer = await CreateCustomerAsync(PasswordFormat.Encrypted); var request = new ChangePasswordRequest("*****@*****.**", true, PasswordFormat.Clear, "password", "password"); var unSuccess = await _customerRegistrationService.ChangePasswordAsync(request); request = new ChangePasswordRequest("*****@*****.**", true, PasswordFormat.Hashed, "newpassword", "password"); var success = await _customerRegistrationService.ChangePasswordAsync(request); unSuccess.Success.Should().BeFalse(); success.Success.Should().BeTrue(); await DeleteCustomerAsync(customer); }