1 type derived from TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewDataDictionaryOfTModelTest.cs (1)
430
private class SupremeTestModel :
TestModel
2 instantiations of TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ViewDataDictionaryOfTModelTest.cs (2)
34
var model = new
TestModel
();
307
var model = new
TestModel
();
15 references to TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
ViewDataDictionaryOfTModelTest.cs (15)
34
var
model = new TestModel();
53
Assert.Equal(typeof(
TestModel
), viewData1.ModelMetadata.ModelType);
65
Assert.Equal(typeof(
TestModel
), viewData2.ModelMetadata.ModelType);
77
var source = new ViewDataDictionary<
TestModel
>(metadataProvider);
82
var viewData1 = new ViewDataDictionary<
TestModel
>(source);
92
Assert.Equal(typeof(
TestModel
), viewData1.ModelMetadata.ModelType);
104
Assert.Equal(typeof(
TestModel
), viewData2.ModelMetadata.ModelType);
144
var viewData = new ViewDataDictionary<
TestModel
>(source);
236
{ new List<
TestModel
>(), typeof(List<
TestModel
>) },
248
var source = new ViewDataDictionary<
TestModel
>(new EmptyModelMetadataProvider());
307
var
model = new TestModel();
309
var source = new ViewDataDictionary<
TestModel
>(metadataProvider)
315
var viewData = new ViewDataDictionary<
TestModel
>(source, model);
321
Assert.Equal(typeof(
TestModel
), viewData.ModelMetadata.ModelType);