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