26 references to ValidationResult
FormatterWebSite (1)
Models\InvalidModel.cs (1)
15
yield return new
ValidationResult
("The model is not valid.");
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
1570
yield return new
ValidationResult
("Parent not valid");
1608
yield return new
ValidationResult
("Password does not meet complexity requirements.");
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (3)
ValidatableObjectAdapterTest.cs (3)
65
new[] { new
ValidationResult
("Error message") },
75
new
ValidationResult
("Error message1"),
97
new
ValidationResult
("Error message2"),
Microsoft.AspNetCore.Mvc.IntegrationTests (17)
ActionParametersIntegrationTest.cs (1)
898
yield return new
ValidationResult
("Not valid.");
CompanyNameAttribute.cs (1)
15
return new
ValidationResult
("CompanyName cannot be null or empty.");
ProductValidatorAttribute.cs (3)
17
return new
ValidationResult
("Product must be made in the USA if it is not named.");
29
return new
ValidationResult
("Product must be made in the USA if it is not named.");
37
return new
ValidationResult
("Expected either ProductViewModel or SoftwareViewModel instance but got "
ValidationIntegrationTests.cs (6)
897
return new
ValidationResult
("Invalid Person.");
1004
return new
ValidationResult
("Invalid Product.");
1300
var result = new
ValidationResult
(
1318
return new
ValidationResult
(
2202
yield return new
ValidationResult
("Failed validation");
2413
return new
ValidationResult
("Invalid result");
ValidationWithRecordIntegrationTests.cs (6)
766
return new
ValidationResult
("Invalid Person.");
866
return new
ValidationResult
("Invalid Product.");
1150
var result = new
ValidationResult
(
1168
return new
ValidationResult
(
1993
yield return new
ValidationResult
("Failed validation");
2201
return new
ValidationResult
("Invalid result");
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
39
return new
ValidationResult
(SR.Format(SR.CompareAttribute_UnknownProperty, OtherProperty));
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
150
return new
ValidationResult
(SR.Format(SR.CustomValidationAttribute_Type_Conversion_Failed,
System\ComponentModel\DataAnnotations\ValidationException.cs (1)
97
_validationResult ??= new
ValidationResult
(Message);