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

AssertContentLengthEqualsValidationRule() public method

Constructs the ValidationRule.
public AssertContentLengthEqualsValidationRule ( long expectedContentLength ) : System.ComponentModel
expectedContentLength long The expected content length.
return System.ComponentModel
        public AssertContentLengthEqualsValidationRule(long expectedContentLength)
        {
            Contract.Requires(expectedContentLength >= 0, "The expected content length must be a positive integer.");
            this.expectedContentLength = expectedContentLength;
        }
AssertContentLengthEqualsValidationRule