Exemplo n.º 1
0
 public TypeValidator(IArrayValidator stringArrayWithUniqueValuesValidator, ITypeElementSpecification typeElementSpecification, IEnumerable <IArrayFilterer> arrayFilterers)
 {
     _stringArrayWithUniqueValuesValidator = stringArrayWithUniqueValuesValidator;
     _typeElementSpecification             = typeElementSpecification;
     _arrayFilterers = arrayFilterers.ToList();
 }
Exemplo n.º 2
0
 public ObjectValidator(ITokenValidatorFactory tokenHandlerFactory, IArrayValidator arrayValidator, IKeywordFactory keywordFactory)
 {
     _tokenHandlerFactory = tokenHandlerFactory;
     _arrayValidator      = arrayValidator;
     _keywords            = keywordFactory.GetKeywords().Select(keyword => new TokenName(keyword.Keyword)).ToImmutableHashSet();
 }
 public RequiredValidator(IArrayValidator stringArrayWithUniqueValuesValidator, IEnumerable <IArrayFilterer> arrayFilterers)
 {
     _stringArrayWithUniqueValuesValidator = stringArrayWithUniqueValuesValidator;
     _arrayFilterers = arrayFilterers.ToList();
 }
Exemplo n.º 4
0
 public EnumValidator(IArrayValidator arrayValidator, IEnumerable <IArrayFilterer> arrayFilterers)
 {
     _arrayValidator = arrayValidator;
     _arrayFilterers = arrayFilterers.ToList();
 }