コード例 #1
0
ファイル: PasswordManagerUT.cs プロジェクト: bbare/SSO
        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);
            }
        }