Esempio n. 1
0
        public void CheckPasswordPwned_Pass()
        {
            //Arrange
            string password = "******";
            //Act
            var response = pm.CheckIsPasswordPwned(password);

            //Assert
            Assert.IsNotNull(response);
            Assert.IsTrue(response);
        }
Esempio n. 2
0
        public void CheckPasswordPwned_Pass()
        {
            //Arrange
            string password = "******";

            //Act
            using (_db = tu.CreateDataBaseContext())
            {
                PasswordManager pm       = new PasswordManager(_db);
                var             response = pm.CheckIsPasswordPwned(password);
                //Assert
                Assert.IsNotNull(response);
                Assert.IsTrue(response);
            }
        }