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