11 instantiations of LengthAttribute
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
1124[Length(3, 10)] 1127[Length(1, 4)]
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
553[Length(1, 2)]
Shared.Tests (8)
Data.Validation\LengthAttributeTests.cs (8)
20[Length(5, 7)] 76[Length(5, 7, Exclusive = true)] 148[Length(5, 7)] 205[Length(5, 7)] 255[Length(5, 7)] 321[Length(5, 10)] 327[Length(10, 5)] 333[Length(-5, -10)]
4 references to LengthAttribute
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
596if (ResolveAttribute<LengthAttribute>() is { } lengthAttribute)
Microsoft.Extensions.Validation.Localization (2)
BuiltInFormatters.cs (1)
21internal sealed class LengthAttributeFormatter(LengthAttribute attribute) : IValidationAttributeFormatter
ValidationAttributeFormatterRegistry.cs (1)
68AddFormatter<LengthAttribute>(a => new LengthAttributeFormatter(a));
Shared.Tests (1)
Data.Validation\LengthAttributeTests.cs (1)
371var attr = new LengthAttribute(5);