18 instantiations of TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (18)
CachedExpressionCompilerTest.cs (18)
14var model = new TestModel(); 46var model = new TestModel(); 63var model = new TestModel(); 95var model = new TestModel(); 119var model = new TestModel(); 143var model = new TestModel(); 159var model = new TestModel(); 193var model = new TestModel(); 242var model = new TestModel(); 273var model = new TestModel { Name = "Test" }; 305var model = new TestModel { Age = 12 }; 483var model = new TestModel { Date = dateTime }; 516var model = new TestModel { DifferentModel = new DifferentModel { Name = expected } }; 571TestModel = new TestModel { DifferentModel = new DifferentModel { Name = expected } } 642TestModel = new TestModel { DifferentModel = new DifferentModel { Name = expected } } 685var model = new TestModel { DifferentModel = null }; 824var model = new TestModel(); 872var model = new TestModel { DifferentModels = new[] { new DifferentModel { Name = expected } } };
38 references to TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (38)
CachedExpressionCompilerTest.cs (38)
14var model = new TestModel(); 46var model = new TestModel(); 63var model = new TestModel(); 95var model = new TestModel(); 119var model = new TestModel(); 143var model = new TestModel(); 159var model = new TestModel(); 160var expression = GetTestModelExpression(m => TestModel.StaticField); 175var expression1 = GetTestModelExpression(m => TestModel.StaticField); 176var expression2 = GetTestModelExpression(m => TestModel.StaticField); 192TestModel.StaticProperty = expected; 193var model = new TestModel(); 194var expression = GetTestModelExpression(m => TestModel.StaticProperty); 209var expression1 = GetTestModelExpression(m => TestModel.StaticProperty); 210var expression2 = GetTestModelExpression(m => TestModel.StaticProperty); 226TestModel.StaticProperty = expected; 227var expression = GetTestModelExpression(m => TestModel.StaticProperty); 242var model = new TestModel(); 273var model = new TestModel { Name = "Test" }; 305var model = new TestModel { Age = 12 }; 321var model = (TestModel)null; 337var model = (TestModel)null; 483var model = new TestModel { Date = dateTime }; 499var model = (TestModel)null; 516var model = new TestModel { DifferentModel = new DifferentModel { Name = expected } }; 685var model = new TestModel { DifferentModel = null }; 701var model = (TestModel)null; 824var model = new TestModel(); 841var model = (TestModel)null; 872var model = new TestModel { DifferentModels = new[] { new DifferentModel { Name = expected } } }; 898private static Expression<Func<TestModel, TResult>> GetTestModelExpression<TResult>(Expression<Func<TestModel, TResult>> expression) 941public TestModel TestModel { get; set; }