Example #1
0
 static Validator()
 {
     _configFactory         = new ClassMappingConfigurationFactory();
     _getProps              = new GetPublicAndPrivateProperties();
     _classLevelRuleFactory = new ClassLevelRuleFactory(_getProps);
     _aggregatedExceptions  = new List <Exception>();
 }
Example #2
0
 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;
 }
Example #4
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);
        }
 public ClassLevelRuleFactory(IGetProperties getProps)
 {
     _getProps = getProps;
 }