예제 #1
0
        public virtual bool Validate()
        {
            if (string.IsNullOrWhiteSpace(Url))
            {
                ErrorMessages.Add(ErrorMessagesConstants.UrlEmptyNullOrWhiteSpaces);
                return(false);
            }
            //else if (!UrlUtility.ChekUrlWellFormed(Url) || !UrlUtility.ChekUrlValidUri(Url))
            else if (!UrlUtility.ChekUrlValidUri(Url))
            {
                ErrorMessages.Add(ErrorMessagesConstants.InvalidUrl);
                return(false);
            }

            return(true);
        }