Ejemplo n.º 1
0
        public static ValidationNode Default()
        {
            var validation = new ValidationNode();

            validation.RegisterStrategy(RenderingStrategies.Summary);
            validation.RegisterStrategy(RenderingStrategies.Highlight);

            return(validation);
        }
Ejemplo n.º 2
0
 public AjaxValidationNode(ActionCall call)
     : base(typeof(AjaxValidationBehavior <>).MakeGenericType(call.InputType()))
 {
     InputType  = call.InputType();
     Validation = ValidationNode.Default();
 }
 public ValidationActionFilter(Type handlerType, MethodInfo method) : base(handlerType, method)
 {
     Validation = ValidationNode.Default();
 }
Ejemplo n.º 4
0
 protected bool Equals(ValidationNode other)
 {
     return(_strategies.SequenceEqual(other._strategies));
 }