15 references to MaxLengthAttribute
FormatterWebSite (2)
Models\Project.cs (2)
15[MaxLength(5)] 23[MaxLength(5)]
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
DataAnnotationsModelValidatorTest.cs (3)
368var attribute = new MaxLengthAttribute(4); 457new MaxLengthAttribute(length) { ErrorMessage = LocalizationKey }, 461new MaxLengthAttribute(length) { ErrorMessage = LocalizationKey },
MaxLengthAttributeAdapterTest.cs (5)
23var attribute = new MaxLengthAttribute(10); 57var attribute = new MaxLengthAttribute(10); 88var attribute = new MaxLengthAttribute(5) { ErrorMessage = message }; 114var attribute = new MaxLengthAttribute(10); 146var attribute = new MaxLengthAttribute(10);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
DefaultHtmlGeneratorTest.cs (2)
1071[MaxLength(MaxLengthAttributeValue)] 1079[MaxLength(MaxLengthAttributeValue)]
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiSchemaService\OpenApiComponentService.ParameterSchemas.cs (3)
314[([MaxLength(5)] string id) => {}, (OpenApiSchema schema) => Assert.Equal(5, schema.MaxLength)], 316[([MaxLength(5)] int[] ids) => {}, (OpenApiSchema schema) => Assert.Equal(5, schema.MaxItems)], 402[MaxLength(5)]