Example #1
0
        public void InvalidPNIBirthDateValidatorKey()
        {
            _testLeadEntity.Properties = new IProperty[] { new DefaultProperty(null, true) };
            var quotedBIValidator = new QuotedBIValidator();

            var actualValue = quotedBIValidator.ValidLead(_testLeadEntity);

            bool expectedValue = false;

            Assert.AreEqual(expectedValue, actualValue);
        }
Example #2
0
        public void ValidPNIBirthDateValidator()
        {
            _testLeadEntity.Properties = new IProperty[] { new DefaultProperty(Modules.LeadEntity.Interface.Constants.PropertyKeys.QuotedBIKey, "100/300") };
            var quotedBIValidator = new QuotedBIValidator();

            var actualValue = quotedBIValidator.ValidLead(_testLeadEntity);

            bool expectedValue = true;

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

            _testLeadEntity.Properties = new IProperty[] { new DefaultProperty(Modules.LeadEntity.Interface.Constants.PropertyKeys.QuotedBIKey, "100/300") };
            var quotedBI = new QuotedBIValidator();

            quotedBI.ValidLead(_testLeadEntity);

            bool expectedValue = false;

            var actualValue = validator.ValidLead(_testLeadEntity);

            Assert.AreEqual(expectedValue, actualValue);
        }