Base:
method
FormatErrorMessage
System.ComponentModel.DataAnnotations.ValidationAttribute.FormatErrorMessage(System.String)
5 references to FormatErrorMessage
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
ValidationAttributeUtil.cs (1)
24return attr.FormatErrorMessage(field);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
StringLengthAttributeAdapterTest.cs (4)
61var expectedMessage = attribute.FormatErrorMessage("Length"); 88var expectedMessage = attribute.FormatErrorMessage("Length"); 116var expectedMessage = attribute.FormatErrorMessage("Length"); 142var expectedMessage = attribute.FormatErrorMessage("Length");