public void GetHardConstraintPropertyValidators_Customer()
        {
            var hardConstraintPropertyValidators = _customerPropertyReflector.GetHardConstraintPropertyValidators().ToArray();

            Assert.That(hardConstraintPropertyValidators.Count(), Is.EqualTo(1));
            Assert.That(hardConstraintPropertyValidators[0].GetType(), Is.EqualTo(typeof(NotEqualValidator)));
        }
        private bool HasValidationRulesOnProperty(PropertyInfo property)
        {
            var reflector = new ValidationAttributesBasedPropertyRuleReflector(property);

            return(reflector.GetAddingPropertyValidators().Any() ||
                   reflector.GetHardConstraintPropertyValidators().Any() ||
                   reflector.GetRemovingPropertyRegistrations().Any());
        }
        public void GetHardConstraintPropertyValidators_SpecialCustomer()
        {
            var hardConstraintPropertyValidators = _specialCustomerPropertyReflector.GetHardConstraintPropertyValidators().ToArray();

            Assert.That(hardConstraintPropertyValidators.Count(), Is.EqualTo(0));
        }