2 instantiations of SampleModel
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
DataAnnotationsModelValidatorTest.cs (2)
39var 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)), 59nameof(SampleModel.Name) 70_metadataProvider.GetMetadataForType(typeof(SampleModel)), 77_metadataProvider.GetMetadataForType(typeof(SampleModel)), 454new object[] { nameof(SampleModel), regex } 459new object[] { nameof(SampleModel), length }}, 463new object[] { nameof(SampleModel), length } 468new object[] { nameof(SampleModel), pattern }}, 472new object[] { nameof(SampleModel), length } 477new object[] { nameof(SampleModel), "CreditCard" } 482new object[] { nameof(SampleModel), length, 1 } 487new object[] { nameof(SampleModel), 0, length} 492new object[] { nameof(SampleModel), "EmailAddress" } 497new object[] { nameof(SampleModel), "PhoneNumber" } 502new object[] { nameof(SampleModel), "Url" } 523var metadata = _metadataProvider.GetMetadataForType(typeof(SampleModel));