public void InvalidPriorInsuranceValidatorKey()
        {
            _testLeadEntity.Properties = new IProperty[] { new DefaultProperty(null, true) };
            var priorInsuranceValidator = new PriorInsuranceValidator();

            var actualValue = priorInsuranceValidator.ValidLead(_testLeadEntity);

            bool expectedValue = false;

            Assert.AreEqual(expectedValue, actualValue);
        }
        public void ValidPriorInsuranceValidator()
        {
            _testLeadEntity.Properties = new IProperty[] { new DefaultProperty(LeadEntity.Interface.Constants.PropertyKeys.PriorInsuranceKey, true) };
            var priorInsuranceValidator = new PriorInsuranceValidator();

            var actualValue = priorInsuranceValidator.ValidLead(_testLeadEntity);

            bool expectedValue = true;

            Assert.AreEqual(expectedValue, actualValue);
        }
Example #3
0
        public void PriorInsuranceValidator()
        {
            var validator = _serviceProvider.GetService <IValidator>();

            _testLeadEntity.Properties = new IProperty[] { new DefaultProperty(Modules.LeadEntity.Interface.Constants.PropertyKeys.PriorInsuranceKey, true) };
            var priorInsurance = new PriorInsuranceValidator();

            priorInsurance.ValidLead(_testLeadEntity);

            bool expectedValue = false;

            var actualValue = validator.ValidLead(_testLeadEntity);

            Assert.AreEqual(expectedValue, actualValue);
        }