Esempio n. 1
0
        public void ComparePasswordHash_True(string password, string hashedPassword, string salt)
        {
            //Arrange

            //Act
            var result = _cryptographicService.ComparePasswordHash(password, hashedPassword, salt);

            //Assert
            Assert.True(result);
        }
Esempio n. 2
0
 public bool ValidateCredentials(User user, string password) =>
 _cryptographicService.ComparePasswordHash(password, user.HashPassword, user.Salt);