public void ComparePasswordHash_True(string password, string hashedPassword, string salt) { //Arrange //Act var result = _cryptographicService.ComparePasswordHash(password, hashedPassword, salt); //Assert Assert.True(result); }
public bool ValidateCredentials(User user, string password) => _cryptographicService.ComparePasswordHash(password, user.HashPassword, user.Salt);