Exemplo n.º 1
0
        public void HashShouldSucceed()
        {
            // Arrange
            IPasswordProvider passwordProvider = new PasswordProvider();
            var password = "******";

            // Act
            var result = passwordProvider.Hash(password);

            // Assert
            result.Should().NotBeNull();
        }
Exemplo n.º 2
0
        public void VerifyShouldReturnTrue()
        {
            // Arrange
            IPasswordProvider passwordProvider = new PasswordProvider();
            var password       = "******";
            var passwordHashed = passwordProvider.Hash(password);

            // Act
            var result = passwordProvider.Verify(password, passwordHashed);

            // Assert
            result.Should().BeTrue();
        }