4 implementations of
Aspire.Dashboard.Tests (1)
Model\DefaultInstrumentUnitResolverTests.cs (1)
48public LocalizedString this[string name, params object[] arguments] => new LocalizedString(name, $"Localized:{name}");
Microsoft.AspNetCore.Mvc.Localization.Test (1)
TestStringLocalizer.cs (1)
36public LocalizedString this[string name, params object[] arguments]
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizer.cs (1)
112public virtual LocalizedString this[string name, params object[] arguments]
Microsoft.Extensions.Localization.Abstractions (1)
StringLocalizerOfT.cs (1)
41public virtual LocalizedString this[string name, params object[] arguments]
18 references to
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
ValidationAttributeAdapterOfTAttribute.cs (1)
74return _stringLocalizer[Attribute.ErrorMessage, arguments];
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (10)
CompareAttributeAdapterTest.cs (1)
66stringLocalizer.Setup(s => s[attribute.ErrorMessage, expectedProperties])
DataAnnotationsModelValidatorTest.cs (2)
373stringLocalizer.Setup(s => s[attribute.ErrorMessage, It.IsAny<object[]>()]).Returns(localizedString); 537stringLocalizer.Verify(l => l[LocalizationKey, values], json);
FileExtensionsAttributeAdapterTest.cs (1)
115.Setup(s => s[attribute.ErrorMessage, expectedProperties])
MaxLengthAttributeAdapterTest.cs (2)
30stringLocalizer.Setup(s => s[attribute.ErrorMessage, expectedProperties]) 118stringLocalizer.Setup(s => s[errorKey, metadata.GetDisplayName(), attribute.Length]).Returns(localizedString);
MinLengthAttributeAdapterTest.cs (1)
30stringLocalizer.Setup(s => s[attribute.ErrorMessage, expectedProperties])
RangeAttributeAdapterTest.cs (1)
60.Setup(s => s[attribute.ErrorMessage, expectedProperties])
RequiredAttributeAdapterTest.cs (1)
31stringLocalizer.Setup(s => s[attribute.ErrorMessage, expectedProperties])
StringLengthAttributeAdapterTest.cs (1)
31stringLocalizer.Setup(s => s[attribute.ErrorMessage, expectedProperties])
Microsoft.AspNetCore.Mvc.Localization (1)
HtmlLocalizer.cs (1)
62return _localizer[name, arguments];
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
RemoteAttributeBase.cs (1)
200return _stringLocalizer[ErrorMessage, displayName];
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
RemoteAttributeBaseTest.cs (2)
267.Setup(l => l["Error about '{0}' from override.", "Length"]) 404.Setup(l => l["Error about '{0}' from override.", "Display Length"])
Microsoft.Extensions.Localization.Abstractions (2)
StringLocalizerExtensions.cs (1)
46return stringLocalizer[name, arguments];
StringLocalizerOfT.cs (1)
47return _localizer[name, arguments];
Microsoft.Extensions.Localization.Tests (1)
StringLocalizerOfTTest.cs (1)
102innerLocalizer.Verify(mock => mock["Welcome, {0}", "Bob"], Times.Once());