C# Class Amido.Testing.WebApi.ValidationRules.AssertBodyIncludesValueValidationRule

Inheritance: ValidationRule
Show file Open project: amido/Amido.Testing

Public Methods

Method Description
AssertBodyIncludesValueValidationRule ( string expectedIncludedValue ) : System.ComponentModel

Constructs the ValidationRule.

Validate ( object sender, ValidationEventArgs e ) : void

The validate method.

Method Details

AssertBodyIncludesValueValidationRule() public method

Constructs the ValidationRule.
public AssertBodyIncludesValueValidationRule ( string expectedIncludedValue ) : System.ComponentModel
expectedIncludedValue string The expected value to appear within the response body.
return System.ComponentModel

Validate() public method

The validate method.
public Validate ( object sender, ValidationEventArgs e ) : void
sender object The sender.
e ValidationEventArgs The
return void