2 instantiations of SampleModel
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
DataAnnotationsModelValidatorTest.cs (2)
39
var array = new[] { new
SampleModel
{ Name = "one" }, new
SampleModel
{ Name = "two" } };
17 references to SampleModel
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (17)
DataAnnotationsModelValidatorTest.cs (17)
56
_metadataProvider.GetMetadataForProperty(typeof(
SampleModel
), nameof(
SampleModel
.Name)),
59
nameof(
SampleModel
.Name)
70
_metadataProvider.GetMetadataForType(typeof(
SampleModel
)),
77
_metadataProvider.GetMetadataForType(typeof(
SampleModel
)),
454
new object[] { nameof(
SampleModel
), regex }
459
new object[] { nameof(
SampleModel
), length }},
463
new object[] { nameof(
SampleModel
), length }
468
new object[] { nameof(
SampleModel
), pattern }},
472
new object[] { nameof(
SampleModel
), length }
477
new object[] { nameof(
SampleModel
), "CreditCard" }
482
new object[] { nameof(
SampleModel
), length, 1 }
487
new object[] { nameof(
SampleModel
), 0, length}
492
new object[] { nameof(
SampleModel
), "EmailAddress" }
497
new object[] { nameof(
SampleModel
), "PhoneNumber" }
502
new object[] { nameof(
SampleModel
), "Url" }
523
var metadata = _metadataProvider.GetMetadataForType(typeof(
SampleModel
));