2 instantiations of SampleModel
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
ValidatableObjectAdapterTest.cs (2)
119
var model = new
SampleModel
();
147
var model = new
SampleModel
();
21 references to SampleModel
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (21)
ValidatableObjectAdapterTest.cs (21)
21
var method = typeof(
SampleModel
).GetMethod(nameof(
SampleModel
.IsLovely));
50
_metadataProvider.GetMetadataForType(typeof(
SampleModel
)),
51
nameof(
SampleModel
),
69
new[] { new ValidationResult("Error message", new[] { nameof(
SampleModel
.FirstName) }) },
70
new[] { new ModelValidationResult(nameof(
SampleModel
.FirstName), "Error message") }
76
new ValidationResult("Error message2", new[] { nameof(
SampleModel
.FirstName) }),
77
new ValidationResult("Error message3", new[] { nameof(
SampleModel
.LastName) }),
78
new ValidationResult("Error message4", new[] { nameof(
SampleModel
) }),
83
new ModelValidationResult(nameof(
SampleModel
.FirstName), "Error message2"),
84
new ModelValidationResult(nameof(
SampleModel
.LastName), "Error message3"),
86
new ModelValidationResult(nameof(
SampleModel
), "Error message4"),
94
nameof(
SampleModel
.FirstName),
95
nameof(
SampleModel
.LastName),
101
new ModelValidationResult(nameof(
SampleModel
.FirstName), "Error message1"),
102
new ModelValidationResult(nameof(
SampleModel
.LastName), "Error message1"),
119
var
model = new SampleModel();
147
var
model = new SampleModel();
193
public bool IsLovely(
SampleModel
other)
213
public
SampleModel
SampleModelWithDisplay { get; set; }
215
public
SampleModel
SampleModel { get; set; }