6 references to PhotoFileName
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
FileExtensionsAttributeAdapterTest.cs (6)
23
var metadata = provider.GetMetadataForProperty(typeof(Profile), nameof(Profile.
PhotoFileName
));
30
var expectedErrorMessage = string.Format(CultureInfo.CurrentCulture, attribute.ErrorMessage, nameof(Profile.
PhotoFileName
), formattedExtensions);
74
var metadata = provider.GetMetadataForProperty(typeof(Profile), nameof(Profile.
PhotoFileName
));
81
var expectedErrorMessage = string.Format(CultureInfo.CurrentCulture, attribute.ErrorMessage, nameof(Profile.
PhotoFileName
), formattedExtensions);
104
var metadata = provider.GetMetadataForProperty(typeof(Profile), nameof(Profile.
PhotoFileName
));
111
var expectedErrorMessage = $"{nameof(Profile.
PhotoFileName
)} expects only the following extensions: {formattedExtensions}";