C# Class Selenol.Validation.Page.UrlAttribute

Inheritance: System.Attribute, IPageUrlValidator
Afficher le fichier Open project: pbakshy/Selenol

Méthodes publiques

Méthode Description
GetErrorMessage ( string currentUrl ) : string

Gets an error message for an invalid page.

Validate ( string currentUrl ) : bool

Validates the page url. Checks that a page url contains a url part.

Private Methods

Méthode Description
CheckHttps ( string pageUrl ) : bool
UrlAttribute ( string urlPart ) : System

Method Details

GetErrorMessage() public méthode

Gets an error message for an invalid page.
public GetErrorMessage ( string currentUrl ) : string
currentUrl string The current Url.
Résultat string

Validate() public méthode

Validates the page url. Checks that a page url contains a url part.
public Validate ( string currentUrl ) : bool
currentUrl string The current Url.
Résultat bool