2 writes to ErrorMessage
System.ComponentModel.Annotations (2)
45 references to ErrorMessage
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Mvc.DataAnnotations (4)
Microsoft.Extensions.Options (3)
Microsoft.Extensions.Options.DataAnnotations (1)
Shared.Tests (24)
Data.Validation\LengthAttributeTests.cs (14)
42Assert.Contains(nameof(options.Name), results[0].ErrorMessage);
56Assert.Contains(nameof(options.Address), results[0].ErrorMessage);
63Assert.Contains(nameof(options.Address), results[0].ErrorMessage);
98Assert.Contains(nameof(options.Name), results[0].ErrorMessage);
112Assert.Contains(nameof(options.Address), results[0].ErrorMessage);
120Assert.Contains(nameof(options.Address), results[0].ErrorMessage);
171Assert.Contains(nameof(options.Names), results[0].ErrorMessage);
189Assert.Contains(nameof(options.Addresses), results[0].ErrorMessage);
225Assert.Contains(nameof(options.Names), results[0].ErrorMessage);
237Assert.Contains(nameof(options.Addresses), results[0].ErrorMessage);
278Assert.Contains(nameof(options.Names), results[0].ErrorMessage);
296Assert.Contains(nameof(options.Addresses), results[0].ErrorMessage);
396Assert.Equal("My custom message for 'CustomMessage'.", results.Single().ErrorMessage);
416Assert.Equal("The field DefaultMessage length must be greater or equal than 5.", results.Single().ErrorMessage);
Data.Validation\TimeSpanAttributeTests.cs (10)
40Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
47Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
65Assert.Contains(nameof(options.Time2), results[0].ErrorMessage);
105Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
112Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
126Assert.Contains(nameof(options.Time2), results[0].ErrorMessage);
133Assert.Contains(nameof(options.Time2), results[0].ErrorMessage);
168Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
175Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
193Assert.Contains(nameof(options.Time2), results[0].ErrorMessage);
System.ComponentModel.Annotations (10)