C# Class DeploymentTracker.Services.Utilities.Validators

Validators class. Contains extenders
Show file Open project: RyanTBerry/WindowsAzureDeploymentTracker

Public Methods

Method Description
VerifyGreaterThanZero ( this intTargetObj, string message ) : void

Verifies the integer is greater than zero or not

VerifyInteger ( this intTargetObj, string message ) : void

Verifies the integer.

VerifyNonZero ( this intTargetObj, string parameterName, string message ) : void

Verifies the non zero.

VerifyNotNull ( this stringTargetObj, string parameterName, string message ) : void

Verifies the not null.

VerifyPath ( this stringPath, string message ) : void

Verifies the path.

VerifyPhysicalPath ( this intTargetObj, string parameterName, string message ) : void

Verifies the physical path.

VerifyUri ( this stringTargetObj, string message ) : void

Verifies the URI.

Method Details

VerifyGreaterThanZero() public static method

Verifies the integer is greater than zero or not
public static VerifyGreaterThanZero ( this intTargetObj, string message ) : void
intTargetObj this The int target obj.
message string The message.
return void

VerifyInteger() public static method

Verifies the integer.
public static VerifyInteger ( this intTargetObj, string message ) : void
intTargetObj this The int target obj.
message string The message.
return void

VerifyNonZero() public static method

Verifies the non zero.
public static VerifyNonZero ( this intTargetObj, string parameterName, string message ) : void
intTargetObj this The int target obj.
parameterName string Name of the parameter.
message string The message.
return void

VerifyNotNull() public static method

Verifies the not null.
public static VerifyNotNull ( this stringTargetObj, string parameterName, string message ) : void
stringTargetObj this The string target obj.
parameterName string Name of the parameter.
message string The message.
return void

VerifyPath() public static method

Verifies the path.
public static VerifyPath ( this stringPath, string message ) : void
stringPath this The string path.
message string The message.
return void

VerifyPhysicalPath() public static method

Verifies the physical path.
public static VerifyPhysicalPath ( this intTargetObj, string parameterName, string message ) : void
intTargetObj this The int target obj.
parameterName string Name of the parameter.
message string The message.
return void

VerifyUri() public static method

Verifies the URI.
public static VerifyUri ( this stringTargetObj, string message ) : void
stringTargetObj this The string target obj.
message string The message.
return void