C# Class Bifrost.FluentValidation.MetaData.ValidationMetaDataGenerator

Represents an implementation of ICanGenerateValidationMetaData
Inheritance: ICanGenerateValidationMetaData
Datei anzeigen Open project: dolittle/Bifrost

Public Methods

Method Description
GenerateFor ( Type typeForValidation ) : Bifrost.Validation.MetaData.TypeMetaData
ValidationMetaDataGenerator ( IInstancesOf ruleGenerators, ICommandValidatorProvider validatorProvider ) : System

Initializes a new instance of ValidationMetaDataGenerator

Private Methods

Method Description
GenerateFor ( Bifrost.Validation.MetaData.TypeMetaData metaData, string property, IPropertyValidator validator ) : void
GenerateForChildValidator ( Bifrost.Validation.MetaData.TypeMetaData metaData, Type genericArguments, IPropertyValidator>.IGrouping member, IPropertyValidator validator, bool isModelRule, string currentKey ) : void
GenerateForValidator ( IValidator inputValidator, Bifrost.Validation.MetaData.TypeMetaData metaData, string parentKey, bool isParentConcept = false, bool isParentModelRule = false ) : void
Generators ( IInstancesOf ruleGenerators ) : ICanGenerateRule>.Dictionary
GetKeyForMember ( string parentKey, bool isParentConcept, bool isParentModelRule, IPropertyValidator>.IGrouping member, bool isModelRule ) : string
GetPropertyInfo ( Type type, string name ) : PropertyInfo

Method Details

GenerateFor() public method

public GenerateFor ( Type typeForValidation ) : Bifrost.Validation.MetaData.TypeMetaData
typeForValidation System.Type
return Bifrost.Validation.MetaData.TypeMetaData

ValidationMetaDataGenerator() public method

Initializes a new instance of ValidationMetaDataGenerator
public ValidationMetaDataGenerator ( IInstancesOf ruleGenerators, ICommandValidatorProvider validatorProvider ) : System
ruleGenerators IInstancesOf The known instances of generators.
validatorProvider ICommandValidatorProvider The provider of command input validators.
return System