Exemplo n.º 1
0
        public void Update(AccountDto updatedUserInfo, IPasswordHasher passwordHasher)
        {
            updatedUserInfo.ThrowIfNull();
            passwordHasher.ThrowIfNull();

            Email        = updatedUserInfo.Email;
            UserName     = updatedUserInfo.UserName;
            PasswordHash = passwordHasher.HashPassword(updatedUserInfo.Password);
        }