Example #1
0
 static Validator()
 {
     _configFactory         = new ClassMappingConfigurationFactory();
     _getProps              = new GetPublicAndPrivateProperties();
     _classLevelRuleFactory = new ClassLevelRuleFactory(_getProps);
     _aggregatedExceptions  = new List <Exception>();
 }
Example #2
0
 internal RuleValidator(IClassMappingConfigurationFactory configFactory,
                        IClassLevelRuleFactory classLevelRuleFactory)
 {
     _configFactory         = configFactory;
     _classLevelRuleFactory = classLevelRuleFactory;
 }
Example #3
0
        //TODO
        //potentially can offer a configuration hook that allows configuration of the static instance -A

        static Mapper()
        {
            _classMappingConfigFact = new ClassMappingConfigurationFactory();
            _getProps = new GetPublicAndPrivateProperties();
            _classLevelRuleFactory = new ClassLevelRuleFactory(_getProps);
        }