12 references to LocalizationKey
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (12)
DataAnnotationsModelValidatorTest.cs (12)
452new RegularExpressionAttribute(regex) { ErrorMessage = LocalizationKey }, 457new MaxLengthAttribute(length) { ErrorMessage = LocalizationKey }, 461new MaxLengthAttribute(length) { ErrorMessage = LocalizationKey }, 466new CompareAttribute(pattern) { ErrorMessage = LocalizationKey }, 470new MinLengthAttribute(length) { ErrorMessage = LocalizationKey }, 475new CreditCardAttribute() { ErrorMessage = LocalizationKey }, 480new StringLengthAttribute(length) { ErrorMessage = LocalizationKey, MinimumLength = 1}, 485new RangeAttribute(0, length) { ErrorMessage = LocalizationKey }, 490new EmailAddressAttribute() { ErrorMessage = LocalizationKey }, 495new PhoneAttribute() { ErrorMessage = LocalizationKey }, 500new UrlAttribute() { ErrorMessage = LocalizationKey }, 537stringLocalizer.Verify(l => l[LocalizationKey, values], json);