static Validator() { _configFactory = new ClassMappingConfigurationFactory(); _getProps = new GetPublicAndPrivateProperties(); _classLevelRuleFactory = new ClassLevelRuleFactory(_getProps); _aggregatedExceptions = new List <Exception>(); }
internal RuleValidator(IClassMappingConfigurationFactory configFactory, IClassLevelRuleFactory classLevelRuleFactory) { _configFactory = configFactory; _classLevelRuleFactory = classLevelRuleFactory; }
//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); }