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