public void TestPasswordCompare()
        {
            var checker = new PasswordChecker(new Mock <IConsole>().Object);
            var result  = checker.ComparePassword(P1, P1);

            Assert.True(result);

            result = checker.ComparePassword("2233435", "2");
            Assert.False(result);
        }
        public void TestPasswordValidation()
        {
            var checker = new PasswordChecker(new Mock <IConsole>().Object);
            var isValid = checker.CheckPassword(P2, P2, out var myPassword);

            Assert.True(isValid);
            Assert.Equal("gfHBWzLIsM3JeoVSJtVflw==", myPassword);

            isValid = checker.ComparePassword("rtHjiKmfreDswVV", "SeffhdfuiDfrgrg");
            Assert.False(isValid);
        }