20 references to GetAttributesForProperty
Microsoft.AspNetCore.Mvc.Core.Test (8)
ModelBinding\Metadata\ModelAttributesTest.cs (8)
19var attributes = ModelAttributes.GetAttributesForProperty(modelType, property); 37var attributes = ModelAttributes.GetAttributesForProperty(modelType, property); 67var attributes = ModelAttributes.GetAttributesForProperty(modelType, property); 85var attributes = ModelAttributes.GetAttributesForProperty(modelType, property); 105var attributes = ModelAttributes.GetAttributesForProperty(modelType, property); 123var attributes = ModelAttributes.GetAttributesForProperty(modelType, property); 162var attributes = ModelAttributes.GetAttributesForProperty(typeof(MergedAttributes), property); 298var exception = Assert.Throws<InvalidOperationException>(() => ModelAttributes.GetAttributesForProperty(modelType, property));
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (12)
DataAnnotationsMetadataProviderTest.cs (12)
1150var attributes = ModelAttributes.GetAttributesForProperty( 1174var attributes = ModelAttributes.GetAttributesForProperty( 1203var attributes = ModelAttributes.GetAttributesForProperty( 1233var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1252var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1271var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1292var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1312var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1331var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1350var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1369var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1432var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property));