C# Class Selenol.Validation.Page.UrlAttribute

Inheritance: System.Attribute, IPageUrlValidator
Show file Open project: pbakshy/Selenol

Public Methods

Method 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

Method Description
CheckHttps ( string pageUrl ) : bool
UrlAttribute ( string urlPart ) : System

Method Details

GetErrorMessage() public method

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

Validate() public method

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