static Validator() { _configFactory = new ClassMappingConfigurationFactory(); _getProps = new GetPublicAndPrivateProperties(); _classLevelRuleFactory = new ClassLevelRuleFactory(_getProps); _aggregatedExceptions = new List <Exception>(); }
public ClassMapper(IEnumerable <IClassLevelRule> rules, IGetProperties getProps, ICopyStrategyFactory copyStrategyFactory, IPropertyMappingStrategyFactory propertyMappingStrategyFactory) { _rules = rules; _copyStrategyFactory = copyStrategyFactory; _getProps = getProps; _propertyMappingStrategyFactory = propertyMappingStrategyFactory; }
public RequireAllPropertiesRule(IGetProperties getProps) { _getProps = getProps; }
//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); }
public ClassLevelRuleFactory(IGetProperties getProps) { _getProps = getProps; }