31 references to GetModelAttributes
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (31)
DataAnnotationsMetadataProviderTest.cs (31)
94var context = new DisplayMetadataProviderContext(key, GetModelAttributes(new object[] { attribute }));
115var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
138var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
157var context = new BindingMetadataProviderContext(key, GetModelAttributes(attributes));
176var context = new BindingMetadataProviderContext(key, GetModelAttributes(attributes));
199var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
222var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
245var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
280var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
318var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
355var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
385var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
420var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
455var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
484var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
519var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
548var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
593var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
638var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
672var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
804var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
832var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
982var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
1010var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));
1586var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
1602var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
1619var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
1638var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
1655var context = new ValidationMetadataProviderContext(key, GetModelAttributes(parameter.GetCustomAttributes(inherit: true)));
1672var context = new ValidationMetadataProviderContext(key, GetModelAttributes(parameter.GetCustomAttributes(inherit: true)));
1689var context = new DisplayMetadataProviderContext(key, GetModelAttributes(attributes));