Amido.Testing.WebApi.ValidationRules.AssertBodyIncludesValueValidationRule.AssertBodyIncludesValueValidationRule C# (CSharp) Method

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
        public AssertBodyIncludesValueValidationRule(string expectedIncludedValue)
        {
            Contract.Requires(!string.IsNullOrWhiteSpace(expectedIncludedValue), "The expected included value cannot be null or empty.");

            this.expectedIncludedValue = expectedIncludedValue;
        }
AssertBodyIncludesValueValidationRule