4 instantiations of TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
ExpressionHelperTest.cs (4)
22var modelTest = new TestModel(); 171var Model = new TestModel(); 186var myModel = new TestModel(); 293var myModel = new TestModel();
110 references to TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (110)
ExpressionHelperTest.cs (110)
20var myModels = new List<TestModel>(); 21var models = new List<TestModel>(); 22var modelTest = new TestModel(); 23var modelType = typeof(TestModel); 28(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory), 32(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 36(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId), 44(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory), 48(Expression<Func<TestModel, TestModel>>)(model => model), 52(Expression<Func<TestModel, string>>)(model => value), 56(Expression<Func<TestModel, int>>)(model => models[0].SelectedCategory.CategoryId), 60(Expression<Func<TestModel, string>>)(model => modelTest.Name), 64(Expression<Func<TestModel, Type>>)(model => modelType), 68(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory), 72(Expression<Func<IList<TestModel>, Category>>)(model => model[i].SelectedCategory), 80(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 84(Expression<Func<TestModel, int>>)(model => model.PreferredCategories[i].CategoryId), 88(Expression<Func<IList<TestModel>, Category>>)(model => myModels[i].SelectedCategory), 92(Expression<Func<IList<TestModel>, int>>)(model => model[2].PreferredCategories[i].CategoryId), 100(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().Name), 108(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().Model), 112(Expression<Func<IList<TestModel>, int>>)(model => model.FirstOrDefault().SelectedCategory.CategoryId), 116(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().SelectedCategory.CategoryName.MainCategory), 120(Expression<Func<IList<TestModel>, int>>)(model => model.FirstOrDefault().PreferredCategories.Count), 124(Expression<Func<IList<TestModel>, int>>)(model => model.FirstOrDefault().PreferredCategories.FirstOrDefault().CategoryId), 130(Expression<Func<TestModel, int>>)(m => Microsoft.AspNetCore.Mvc.ViewFeatures.Model.Constants.WoodstockYear), 135(Expression<Func<TestModel, int>>)(m => Model.Constants.WoodstockYear), 142(Expression<Func<TestModel, string>>)(m => Model.Constants.Model.Name), 146(Expression<Func<TestModel, string>>)(m => AStaticClass.Model), 150(Expression<Func<TestModel, string>>)(m => AStaticClass.Test), 154(Expression<Func<TestModel, string>>)(m => AnotherStaticClass.Model.Name), 158(Expression<Func<TestModel, string>>)(m => AnotherStaticClass.Test.Name), 166data.Add((Expression<Func<TestModel, string>>)(m => model), string.Empty); 171var Model = new TestModel(); 172data.Add((Expression<Func<TestModel, TestModel>>)(m => Model), string.Empty); 173data.Add((Expression<Func<TestModel, TestModel>>)(model => Model), string.Empty); 174data.Add((Expression<Func<TestModel, Category>>)(m => Model.SelectedCategory), "SelectedCategory"); 186var myModel = new TestModel(); 190(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory), 191(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 192(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId), 193(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory), 194(Expression<Func<TestModel, string>>)(testModel => key), 195(Expression<Func<TestModel, TestModel>>)(m => m), 196(Expression<Func<TestModel, Category>>)(m => myModel.SelectedCategory), 207var myModels = new List<TestModel>(); 211(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory), 212(Expression<Func<IList<TestModel>, Category>>)(model => myModels[i].SelectedCategory), 213(Expression<Func<IList<TestModel>, CategoryName>>)(testModel => testModel[i].SelectedCategory.CategoryName), 214(Expression<Func<TestModel, int>>)(model => model.PreferredCategories[i].CategoryId), 215(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 230(Expression<Func<TestModel[][], string>>)(model => model[23][3].Name), 231(Expression<Func<TestModel[][], string>>)(model => model[i][3].Name), 232(Expression<Func<TestModel[][], string>>)(model => model[23][j].Name), 233(Expression<Func<TestModel[][], string>>)(model => model[i][j].Name), 235(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().Name), 236(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().SelectedCategory.CategoryName.MainCategory), 237(Expression<Func<IList<TestModel>, int>>)(model => model.FirstOrDefault().PreferredCategories.FirstOrDefault().CategoryId), 252(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory), 253(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory) 256(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 257(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName) 260(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId), 261(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId) 264(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory), 265(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory) 268(Expression<Func<TestModel, TestModel>>)(model => model), 269(Expression<Func<TestModel, TestModel>>)(m => m) 272(Expression<Func<TestModel, string>>)(model => value), 273(Expression<Func<TestModel, string>>)(m => value) 279(Expression<Func<TestModel, string>>)(m => Model), 280(Expression<Func<TestModel, TestModel>>)(m => m) 293var myModel = new TestModel(); 298(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory), 299(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName) 302(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 306(Expression<Func<TestModel, string>>)(model => model.Model), 307(Expression<Func<TestModel, string>>)(model => model.Name) 310(Expression<Func<TestModel, string>>)(model => model.Model), 314(Expression<Func<TestModel, string>>)(model => model.Name), 318(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 319(Expression<Func<TestModel, string>>)(model => value) 322(Expression<Func<TestModel, string>>)(testModel => testModel.SelectedCategory.CategoryName.MainCategory), 323(Expression<Func<TestModel, string>>)(testModel => value) 326(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory), 327(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory) 330(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory), 334(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId), 335(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory) 338(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 339(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory) 342(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 346(Expression<Func<TestModel, string>>)(m => Model), 347(Expression<Func<TestModel, string>>)(m => m.Model) 350(Expression<Func<TestModel, TestModel>>)(m => m), 351(Expression<Func<TestModel, string>>)(m => m.Model) 354(Expression<Func<TestModel, string>>)(m => myModel.Name), 355(Expression<Func<TestModel, string>>)(m => m.Name) 358(Expression<Func<TestModel, string>>)(m => key), 359(Expression<Func<TestModel, string>>)(m => value) 439var collection = new List<TestModel>(); 448(Expression<Func<List<TestModel>, int>>)(m => collection[i].SelectedCategory.CategoryId),