22 references to ValidationContext
Microsoft.Extensions.Http.Resilience.Tests (1)
Helpers\OptionsUtilities.cs (1)
15
var context = new
ValidationContext
(options);
Microsoft.Extensions.Options.DataAnnotations (1)
DataAnnotationValidateOptions.cs (1)
85
bool res = Validator.TryValidateObject(options, new
ValidationContext
(options), results, validateAllProperties: true);
Shared.Tests (20)
Data.Validation\LengthAttributeTests.cs (13)
28
var context = new
ValidationContext
(options);
84
var context = new
ValidationContext
(options);
156
var context = new
ValidationContext
(options);
213
var context = new
ValidationContext
(options);
263
var context = new
ValidationContext
(options);
341
var context = new
ValidationContext
(options0);
346
context = new
ValidationContext
(options1);
351
context = new
ValidationContext
(options2);
356
context = new
ValidationContext
(options3);
361
context = new
ValidationContext
(options4);
370
var context = new
ValidationContext
(value);
389
var context = new
ValidationContext
(options);
409
var context = new
ValidationContext
(options);
Data.Validation\TimeSpanAttributeTests.cs (7)
26
var context = new
ValidationContext
(options);
91
var context = new
ValidationContext
(options);
154
var context = new
ValidationContext
(options);
228
var context = new
ValidationContext
(options0);
233
context = new
ValidationContext
(options1);
238
context = new
ValidationContext
(options3);
247
var context = new
ValidationContext
(value);