public void ChangePassword(PasswordEdit.Command request) { if (HashedPassword.NotEqual(Hash.Create(request.CurrentPassword))) { throw new DomainException("Current password does not match"); } HashedPassword = Hash.Create(request.Password); }