19 references to MinLengthAttribute
BasicWebSite (2)
Models\Product.cs (1)
13
[
MinLength
(15)]
Models\User.cs (1)
12
[
MinLength
(4)]
FormatterWebSite (4)
Models\Employee.cs (1)
13
[
MinLength
(15)]
Models\Project.cs (1)
14
[
MinLength
(2)]
Models\SimpleTypePropertiesModel.cs (1)
16
[
MinLength
(2)]
Models\User.cs (1)
17
[Required,
MinLength
(5)]
HtmlGenerationWebSite (1)
Models\Warehouse.cs (1)
10
[
MinLength
(2)]
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsModelValidatorTest.cs (1)
470
new
MinLengthAttribute
(length) { ErrorMessage = LocalizationKey },
MinLengthAttributeAdapterTest.cs (4)
23
var attribute = new
MinLengthAttribute
(6);
57
var attribute = new
MinLengthAttribute
(6);
85
var attribute = new
MinLengthAttribute
(2) { ErrorMessage = "Array must have at least {1} items." };
113
var attribute = new
MinLengthAttribute
(2) { ErrorMessage = "Array must have at least {1} items." };
ValidationAttributeAdapterProviderTest.cs (1)
28
new
MinLengthAttribute
(1),
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (2)
338
[([
MinLength
(2)] string id) => {}, (OpenApiSchema schema) => Assert.Equal(2, schema.MinLength)],
340
[([
MinLength
(2)] int[] id) => {}, (OpenApiSchema schema) => Assert.Equal(2, schema.MinItems)],
Shared\SharedTypes.cs (1)
78
[
MinLength
(5)]
Sample (2)
Controllers\TestController.cs (1)
33
[
MinLength
(5)]
src\OpenApi\test\Microsoft.AspNetCore.OpenApi.Tests\Shared\SharedTypes.cs (1)
78
[
MinLength
(5)]
XmlFormattersWebSite (1)
Models\Employee.cs (1)
13
[
MinLength
(15)]