Esempio n. 1
0
        public void TestPasswordEncryption()
        {
            var password          = "******";
            var checker           = new PasswordChecker(new Mock <IConsole>().Object);
            var encryptedPassword = checker.EncryptPassword(password);

            Assert.Equal("0zdZaCXmM7Bodtdc0Bs6VA==", encryptedPassword);

            var decryptedPassword = checker.DecryptPassword(encryptedPassword);

            Assert.Equal(password, decryptedPassword);
        }