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