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

            //Assert
            Assert.IsNotNull(response);
            Assert.IsTrue(response);
        }
예제 #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);
            }
        }