Ejemplo n.º 1
0
        /// <summary>
        /// Implementors should attempt to read their specific configuration
        /// from the <paramref name="parameters"/>, configure and return
        /// a class that extends from <see cref="BrowserValidationConfiguration"/>
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns>
        /// An instance that extends from <see cref="BrowserValidationConfiguration"/>
        /// </returns>
        public BrowserValidationConfiguration CreateConfiguration(IDictionary parameters)
        {
            var config = new PrototypeValidationConfiguration();

            config.Configure(parameters);

            return config;
        }
        /// <summary>
        /// Implementors should attempt to read their specific configuration
        /// from the <paramref name="parameters"/>, configure and return
        /// a class that extends from <see cref="BrowserValidationConfiguration"/>
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns>
        /// An instance that extends from <see cref="BrowserValidationConfiguration"/>
        /// </returns>
        public BrowserValidationConfiguration CreateConfiguration(IDictionary parameters)
        {
            var config = new PrototypeValidationConfiguration();

            config.Configure(parameters);

            return(config);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrototypeValidationGenerator"/> class.
 /// </summary>
 /// <param name="config">Validation configuration instance</param>
 /// <param name="inputType">Type of the input.</param>
 /// <param name="attributes">The attributes.</param>
 public PrototypeValidationGenerator(PrototypeValidationConfiguration config, InputElementType inputType, IDictionary attributes)
 {
     this.config = config;
     this.inputType = inputType;
     this.attributes = attributes;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PrototypeValidationGenerator"/> class.
 /// </summary>
 /// <param name="config">Validation configuration instance</param>
 /// <param name="inputType">Type of the input.</param>
 /// <param name="attributes">The attributes.</param>
 public PrototypeValidationGenerator(PrototypeValidationConfiguration config, InputElementType inputType, IDictionary attributes)
 {
     this.config     = config;
     this.inputType  = inputType;
     this.attributes = attributes;
 }