Exemple #1
0
        [InlineData("TesTesT1122")]  //Repeated
        public void Is_Not_Valid_Password_Return_False(string pPassword)
        {
            Business.BusinessPasswordValidate passwordValidate = new Business.BusinessPasswordValidate();
            Password password = new Password();

            password.InputPassword = pPassword;

            object InputPassword = JsonConvert.SerializeObject(password);

            bool result = passwordValidate.ValidatePassword(InputPassword);

            Assert.False(result);
        }
Exemple #2
0
        public void Is_Valid_Password_Return_True()
        {
            Business.BusinessPasswordValidate passwordValidate = new Business.BusinessPasswordValidate();
            Password password = new Password();

            password.InputPassword = "******";

            object InputPassword = JsonConvert.SerializeObject(password);

            bool result = passwordValidate.ValidatePassword(InputPassword);

            Assert.True(result);
        }