C# Class SpecExpress.PropertyValidator

显示文件 Open project: rbell/SpecExpress Class Usage Examples

Public Methods

Method Description
GetValueForProperty ( object instance ) : object
Validate ( object instance, RuleValidatorContext parentRuleContexts, SpecificationContainer specificationContainer, ValidationNotification notification ) : bool
Validate ( object instance, SpecificationContainer specificationContainer, ValidationNotification notification ) : bool

Protected Methods

Method Description
PropertyValidator ( Type entityType, Type propertyType ) : System

Private Methods

Method Description
BuildPropertyDelegate ( ) : Delegate
GetFirstMemberCallFromCallArguments ( MethodCallExpression exp ) : MemberInfo

Method Details

GetValueForProperty() public method

public GetValueForProperty ( object instance ) : object
instance object
return object

PropertyValidator() protected method

protected PropertyValidator ( Type entityType, Type propertyType ) : System
entityType System.Type
propertyType System.Type
return System

Validate() public abstract method

public abstract Validate ( object instance, RuleValidatorContext parentRuleContexts, SpecificationContainer specificationContainer, ValidationNotification notification ) : bool
instance object
parentRuleContexts SpecExpress.Rules.RuleValidatorContext
specificationContainer SpecificationContainer
notification ValidationNotification
return bool

Validate() public abstract method

public abstract Validate ( object instance, SpecificationContainer specificationContainer, ValidationNotification notification ) : bool
instance object
specificationContainer SpecificationContainer
notification ValidationNotification
return bool