22 references to ValidationContext
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);