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