42 references to ValidationContext
Microsoft.AspNetCore.Http.Abstractions.Tests (10)
Validation\ValidatableTypeInfoTests.cs (10)
52context.ValidationContext = new ValidationContext(personWithMissingRequiredFields); 111context.ValidationContext = new ValidationContext(employee); 157context.ValidationContext = new ValidationContext(car); 223context.ValidationContext = new ValidationContext(order); 274context.ValidationContext = new ValidationContext(person); 329context.ValidationContext = new ValidationContext(rootNode); 359context.ValidationContext = new ValidationContext(product); 395context.ValidationContext = new ValidationContext(user); 445context.ValidationContext = new ValidationContext(entity); 485context.ValidationContext = new ValidationContext(user);
Microsoft.AspNetCore.Http.Extensions.Tests (10)
ValidationsGenerator\ValidationsGenerator.ValidatableType.cs (10)
101ValidationContext = new ValidationContext(instance) 120ValidationContext = new ValidationContext(instance) 139ValidationContext = new ValidationContext(instance) 161ValidationContext = new ValidationContext(instance) 190ValidationContext = new ValidationContext(instance) 242ValidationContext = new ValidationContext(instance) 272ValidationContext = new ValidationContext(instance) 291ValidationContext = new ValidationContext(instance) 318ValidationContext = new ValidationContext(instance) 368ValidationContext = new ValidationContext(instance)
Microsoft.Extensions.Http.Resilience.Tests (1)
Helpers\OptionsUtilities.cs (1)
15var context = new ValidationContext(options);
Microsoft.Extensions.Options.DataAnnotations (1)
DataAnnotationValidateOptions.cs (1)
85bool res = Validator.TryValidateObject(options, new ValidationContext(options), results, validateAllProperties: true);
Shared.Tests (20)
Data.Validation\LengthAttributeTests.cs (13)
28var context = new ValidationContext(options); 84var context = new ValidationContext(options); 156var context = new ValidationContext(options); 213var context = new ValidationContext(options); 263var context = new ValidationContext(options); 341var context = new ValidationContext(options0); 346context = new ValidationContext(options1); 351context = new ValidationContext(options2); 356context = new ValidationContext(options3); 361context = new ValidationContext(options4); 370var context = new ValidationContext(value); 389var context = new ValidationContext(options); 409var context = new ValidationContext(options);
Data.Validation\TimeSpanAttributeTests.cs (7)
26var context = new ValidationContext(options); 91var context = new ValidationContext(options); 154var context = new ValidationContext(options); 228var context = new ValidationContext(options0); 233context = new ValidationContext(options1); 238context = new ValidationContext(options3); 247var context = new ValidationContext(value);