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

AssertBodyDoesNotIncludeValueValidationRule() public method

Constructs the ValidationRule.
public AssertBodyDoesNotIncludeValueValidationRule ( string value ) : System.ComponentModel
value string The value that should not be in the the response body.
return System.ComponentModel
        public AssertBodyDoesNotIncludeValueValidationRule(string value)
        {
            Contract.Requires(!string.IsNullOrWhiteSpace(value), "The value cannot be null or empty.");

            this.value = value;
        }
AssertBodyDoesNotIncludeValueValidationRule