16 references to MaxLengthAttribute
Aspire.Dashboard (1)
Model\Otlp\FilterDialogFormModel.cs (1)
19
[
MaxLength
(1024)]
FormatterWebSite (2)
Models\Project.cs (2)
15
[
MaxLength
(5)]
23
[
MaxLength
(5)]
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
DataAnnotationsModelValidatorTest.cs (3)
368
var attribute = new
MaxLengthAttribute
(4);
457
new
MaxLengthAttribute
(length) { ErrorMessage = LocalizationKey },
461
new
MaxLengthAttribute
(length) { ErrorMessage = LocalizationKey },
MaxLengthAttributeAdapterTest.cs (5)
23
var attribute = new
MaxLengthAttribute
(10);
57
var attribute = new
MaxLengthAttribute
(10);
88
var attribute = new
MaxLengthAttribute
(5) { ErrorMessage = message };
114
var attribute = new
MaxLengthAttribute
(10);
146
var 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\OpenApiSchemaService.ParameterSchemas.cs (3)
337
[([
MaxLength
(5)] string id) => {}, (OpenApiSchema schema) => Assert.Equal(5, schema.MaxLength)],
339
[([
MaxLength
(5)] int[] ids) => {}, (OpenApiSchema schema) => Assert.Equal(5, schema.MaxItems)],
531
[
MaxLength
(5)]