6 references to GetStringLengthErrorMessage
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
317
Assert.Contains(ValidationAttributeUtil.
GetStringLengthErrorMessage
(null, 5, "Street"), errorMessages);
349
Assert.Contains(ValidationAttributeUtil.
GetStringLengthErrorMessage
(null, 5, "Street"), errorMessages);
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
BodyValidationIntegrationTests.cs (1)
285
var contactLength = ValidationAttributeUtil.
GetStringLengthErrorMessage
(null, 10, "Contact");
CollectionModelBinderIntegrationTest.cs (2)
680
Assert.Equal(ValidationAttributeUtil.
GetStringLengthErrorMessage
(null, 3, "Street"), error.ErrorMessage);
720
Assert.Equal(ValidationAttributeUtil.
GetStringLengthErrorMessage
(null, 3, "Street"), error.ErrorMessage);
TryValidateModelIntegrationTest.cs (1)
111
var contactUsMax = ValidationAttributeUtil.
GetStringLengthErrorMessage
(null, 20, "Contact Us");