Esempio n. 1
0
        public override bool Verify(object value, out string validationError)
        {
            var str = value as string;

            if (!ValidationExtensions.NameIsValid(str, out validationError))
            {
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
        public override bool Verify(object value, out string validationError)
        {
            var ph = value as string;

            if (!ValidationExtensions.ValidateNumber(ref ph))
            {
                validationError = "Invalid phone number";
                return(false);
            }
            validationError = null;
            return(true);
        }
Esempio n. 3
0
 public override bool Verify(object value, out string validationError)
 {
     validationError = "Invalid email";
     return(ValidationExtensions.EmailIsValid(value as string));
 }