Class UserProfileValidator
Example validator class demonstrating complex object validation using ValidationBuilder.
Inherited Members
Namespace: ValidationFramework
Assembly: ValidationFramework.dll
Syntax
public class UserProfileValidator
Constructors
| Edit this page View SourceUserProfileValidator()
Initializes a new instance of the UserProfileValidator class with pre-configured validations.
Declaration
public UserProfileValidator()
Methods
| Edit this page View SourceValidateProfile(UserProfile)
Validates a user profile against all configured validation rules.
Declaration
public ValidationResult ValidateProfile(UserProfile profile)
Parameters
| Type | Name | Description |
|---|---|---|
| UserProfile | profile | The user profile to validate. |
Returns
| Type | Description |
|---|---|
| ValidationResult | A ValidationResult containing any validation errors. |