예제 #1
0
        public void HashShouldSucceed()
        {
            // Arrange
            IPasswordProvider passwordProvider = new PasswordProvider();
            var password = "******";

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

            // Assert
            result.Should().NotBeNull();
        }
예제 #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();
        }