1 type derived from ModelType
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (1)
491private class DerivedModelType : ModelType
19 references to ModelType
Microsoft.AspNetCore.Mvc.Core.Test (19)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (19)
18var metadata = provider.GetMetadataForType(typeof(ModelType)); 34var metadata1 = Assert.IsType<DefaultModelMetadata>(provider.GetMetadataForType(typeof(ModelType))); 35var metadata2 = Assert.IsType<DefaultModelMetadata>(provider.GetMetadataForType(typeof(ModelType))); 64var modelType = typeof(ModelType); 93var metadata = provider.GetMetadataForProperties(typeof(ModelType)).ToArray(); 122var properties1 = provider.GetMetadataForProperties(typeof(ModelType)).Cast<DefaultModelMetadata>().ToArray(); 123var properties2 = provider.GetMetadataForProperties(typeof(ModelType)).Cast<DefaultModelMetadata>().ToArray(); 144var metadata1 = Assert.IsType<DefaultModelMetadata>(provider.GetMetadataForType(typeof(ModelType))); 145var metadata2 = Assert.IsType<DefaultModelMetadata>(provider.GetMetadataForType(typeof(ModelType))); 158var metadata = provider.GetMetadataForProperties(typeof(ModelType)).First(); 189var metadata = provider.GetMetadataForProperties(typeof(ModelType)); 204var parameters = typeof(ModelType) 205.GetMethod(nameof(ModelType.Method1)) 223var parameters = typeof(ModelType) 224.GetMethod(nameof(ModelType.Method1)) 252var parameter = typeof(ModelType) 253.GetMethod(nameof(ModelType.Method1)) 476private void GetMetadataForParameterTestMethod([Model("OnParameter")] ModelType parameter) 500public ModelType ModelProperty { get; set; }