public void Update(AccountDto updatedUserInfo, IPasswordHasher passwordHasher) { updatedUserInfo.ThrowIfNull(); passwordHasher.ThrowIfNull(); Email = updatedUserInfo.Email; UserName = updatedUserInfo.UserName; PasswordHash = passwordHasher.HashPassword(updatedUserInfo.Password); }