43 references to ValidationResult
BasketService (1)
Models\BasketItem.cs (1)
19
results.Add(new
ValidationResult
("Invalid number of units", new[] { "Quantity" }));
Microsoft.Extensions.Compliance.Redaction (6)
src\Shared\Data.Validation\LengthAttribute.cs (2)
175
return new
ValidationResult
(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
184
return new
ValidationResult
(validationMessage, validationContext.GetMemberName());
src\Shared\Data.Validation\TimeSpanAttribute.cs (4)
134
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be > to {min}.", validationContext.GetMemberName());
139
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be >= to {min}.", validationContext.GetMemberName());
146
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be < to {max}.", validationContext.GetMemberName());
151
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be <= to {max}.", validationContext.GetMemberName());
Microsoft.Extensions.Diagnostics.Probes (6)
src\Shared\Data.Validation\LengthAttribute.cs (2)
175
return new
ValidationResult
(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
184
return new
ValidationResult
(validationMessage, validationContext.GetMemberName());
src\Shared\Data.Validation\TimeSpanAttribute.cs (4)
134
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be > to {min}.", validationContext.GetMemberName());
139
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be >= to {min}.", validationContext.GetMemberName());
146
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be < to {max}.", validationContext.GetMemberName());
151
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be <= to {max}.", validationContext.GetMemberName());
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
src\Shared\Data.Validation\LengthAttribute.cs (2)
175
return new
ValidationResult
(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
184
return new
ValidationResult
(validationMessage, validationContext.GetMemberName());
src\Shared\Data.Validation\TimeSpanAttribute.cs (4)
134
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be > to {min}.", validationContext.GetMemberName());
139
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be >= to {min}.", validationContext.GetMemberName());
146
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be < to {max}.", validationContext.GetMemberName());
151
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be <= to {max}.", validationContext.GetMemberName());
Microsoft.Extensions.Http.Resilience (6)
src\Shared\Data.Validation\LengthAttribute.cs (2)
175
return new
ValidationResult
(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
184
return new
ValidationResult
(validationMessage, validationContext.GetMemberName());
src\Shared\Data.Validation\TimeSpanAttribute.cs (4)
134
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be > to {min}.", validationContext.GetMemberName());
139
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be >= to {min}.", validationContext.GetMemberName());
146
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be < to {max}.", validationContext.GetMemberName());
151
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be <= to {max}.", validationContext.GetMemberName());
Microsoft.Extensions.Telemetry (6)
src\Shared\Data.Validation\LengthAttribute.cs (2)
175
return new
ValidationResult
(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
184
return new
ValidationResult
(validationMessage, validationContext.GetMemberName());
src\Shared\Data.Validation\TimeSpanAttribute.cs (4)
134
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be > to {min}.", validationContext.GetMemberName());
139
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be >= to {min}.", validationContext.GetMemberName());
146
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be < to {max}.", validationContext.GetMemberName());
151
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be <= to {max}.", validationContext.GetMemberName());
MyFrontend (1)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
19
results.Add(new
ValidationResult
("Invalid number of units", new[] { "Quantity" }));
OrderProcessor (1)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
19
results.Add(new
ValidationResult
("Invalid number of units", new[] { "Quantity" }));
Shared (6)
Data.Validation\LengthAttribute.cs (2)
175
return new
ValidationResult
(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
184
return new
ValidationResult
(validationMessage, validationContext.GetMemberName());
Data.Validation\TimeSpanAttribute.cs (4)
134
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be > to {min}.", validationContext.GetMemberName());
139
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be >= to {min}.", validationContext.GetMemberName());
146
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be < to {max}.", validationContext.GetMemberName());
151
return new
ValidationResult
($"The field {validationContext.GetDisplayName()} must be <= to {max}.", validationContext.GetMemberName());
System.ComponentModel.Annotations (4)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
56
return new
ValidationResult
(FormatErrorMessage(validationContext.DisplayName), memberNames);
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (2)
304
return new
ValidationResult
(FormatErrorMessage(validationContext.DisplayName), memberNames);
442
result = new
ValidationResult
(errorMessage, result.MemberNames);
System\ComponentModel\DataAnnotations\ValidationResult.cs (1)
41
:
this
(errorMessage, null)