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

AssertContentTypeEqualsValidationRule() public method

Constructs the ValidationRule.
public AssertContentTypeEqualsValidationRule ( string expectedContentType ) : System.ComponentModel
expectedContentType string The expected content type.
return System.ComponentModel
        public AssertContentTypeEqualsValidationRule(string expectedContentType)
        {
            Contract.Requires(!string.IsNullOrWhiteSpace(expectedContentType), "The expected content type value cannot be null or empty.");
            this.expectedContentType = expectedContentType;
        }
AssertContentTypeEqualsValidationRule