C# Class Tp.Integration.Plugin.Common.Validation.ProfileDtoValidator

Performs base validation and custom validation logic.
Inheritance: IValidatable
Mostra file Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
IsValid ( string input ) : bool
ProfileDtoValidator ( PluginProfileDto dto ) : System
Validate ( PluginProfileErrorCollection errors ) : void

Private Methods

Method Description
ValidateNameHasValidCharacters ( PluginProfileErrorCollection errors ) : void
ValidateNameIsNotEmpty ( PluginProfileErrorCollection errors ) : void
ValidateSettings ( PluginProfileErrorCollection errors ) : void

Method Details

IsValid() public static method

public static IsValid ( string input ) : bool
input string
return bool

ProfileDtoValidator() public method

public ProfileDtoValidator ( PluginProfileDto dto ) : System
dto PluginProfileDto
return System

Validate() public method

public Validate ( PluginProfileErrorCollection errors ) : void
errors PluginProfileErrorCollection
return void