22 writes to DisplayName
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
13 references to DisplayName
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (11)
DataAnnotationsMetadataProviderTest.cs (11)
36{ new DisplayAttribute() { Name = "DN" }, d => d.DisplayName(), "DN" },
72{ new DisplayNameAttribute("DisplayNameValue"), d => d.DisplayName(), "DisplayNameValue"},
205Assert.Equal("DisplayAttributeValue", context.DisplayMetadata.DisplayName());
228Assert.Equal(string.Empty, context.DisplayMetadata.DisplayName());
251Assert.Equal("DisplayNameAttributeValue", context.DisplayMetadata.DisplayName());
324Assert.Equal("Name from DisplayNameAttribute", context.DisplayMetadata.DisplayName());
359context.DisplayMetadata.DisplayName();
391Assert.Equal("name from resources", context.DisplayMetadata.DisplayName());
426Assert.Equal("name from resources", context.DisplayMetadata.DisplayName());
601Assert.Equal("name from localizer en-US", context.DisplayMetadata.DisplayName());
607Assert.Equal("name from localizer fr-FR", context.DisplayMetadata.DisplayName());