public void IsRequired_HttpDisabled_ReturnsFalse()
        {
            var step = new HttpPasswordStep();

            _job.Profile.HttpSettings.Enabled = false;

            Assert.IsFalse(step.IsStepRequired(_job));
        }
        public void IsRequired_HttpEnabledWithoutBasicAuthentication_ReturnsFalse()
        {
            var step = new HttpPasswordStep();

            _job.Profile.HttpSettings.Enabled = true;
            _account.IsBasicAuthentication    = false;

            Assert.IsFalse(step.IsStepRequired(_job));
        }
        public void IsRequired_HttpEnabledWithBasicAuthenticationAndMissingPassword_ReturnsTrue()
        {
            var step = new HttpPasswordStep();

            _job.Profile.HttpSettings.Enabled = true;
            _account.IsBasicAuthentication    = true;
            _job.Passwords.HttpPassword       = "";

            Assert.IsTrue(step.IsStepRequired(_job));
        }
        public void IsRequired_HttpEnabledWithBasicAuthenticationAndPasswordPresent_ReturnsFalse()
        {
            var step = new HttpPasswordStep();

            _job.Profile.HttpSettings.Enabled = true;
            _account.IsBasicAuthentication    = true;
            _job.Passwords.HttpPassword       = "******";

            Assert.IsFalse(step.IsStepRequired(_job));
        }