1 type derived from BaseClass
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ModelExplorerTest.cs (1)
144
private class DerivedClass :
BaseClass
9 references to BaseClass
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
ModelExplorerTest.cs (9)
15
var modelExplorer = provider.GetModelExplorerForType(typeof(
BaseClass
), new DerivedClass());
29
var modelExplorer = provider.GetModelExplorerForType(typeof(
BaseClass
), model: null);
35
Assert.Equal(typeof(
BaseClass
), modelType);
43
var modelExplorer = provider.GetModelExplorerForType(typeof(
BaseClass
), new DerivedClass());
67
var modelExplorer = provider.GetModelExplorerForType(typeof(
BaseClass
), model: null);
77
Assert.Equal(typeof(
BaseClass
), baseProperty.Metadata.ContainerType);
91
var modelExplorer = provider.GetModelExplorerForType(typeof(
BaseClass
), model);
109
var modelExplorer = provider.GetModelExplorerForType(typeof(
BaseClass
), model: null);
130
var modelExplorer = provider.GetModelExplorerForType(typeof(
BaseClass
), model);