2 instantiations of TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ExpressionMetadataProviderTest.cs (2)
97var myModel = new TestModel { SelectedCategory = new Category() }; 141var myModel = new TestModel { SelectedCategory = new Category() };
14 references to TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
ExpressionMetadataProviderTest.cs (14)
22var viewData = new ViewDataDictionary<TestModel>(provider); 31Assert.Equal(typeof(TestModel), explorer.ModelType); 40var viewData = new ViewDataDictionary<TestModel>(provider); 58var viewData = new ViewDataDictionary<TestModel[]>(provider); 67Assert.Equal(typeof(TestModel), explorer.ModelType); 76var viewData = new ViewDataDictionary<TestModel[]>(provider); 97var myModel = new TestModel { SelectedCategory = new Category() }; 99var viewData = new ViewDataDictionary<TestModel>(provider); 103var metadata = ExpressionMetadataProvider.FromLambdaExpression<TestModel, Category>( 113[InlineData(null, ModelMetadataKind.Type, typeof(TestModel))] 114[InlineData("", ModelMetadataKind.Type, typeof(TestModel))] 124var viewData = new ViewDataDictionary<TestModel>(provider); 141var myModel = new TestModel { SelectedCategory = new Category() }; 143var viewData = new ViewDataDictionary<TestModel>(provider);