19 references to GetExpression
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (19)
CachedExpressionCompilerTest.cs (19)
354var expression = GetExpression<BadEqualityModel, int>(m => m.Id); 370var expression = GetExpression<BadEqualityModel, int>(m => m.Id); 386var expression = GetExpression<BadEqualityValueTypeModel, int>(m => m.Id); 402var expression = GetExpression<BadEqualityValueTypeModel, int>(m => m.Id); 418var expression = GetExpression<DateTime, int>(m => m.Year); 434var expression = GetExpression<DateTime, int>(m => m.Year); 451var expression = GetExpression<DateTime?, DateTime>(m => m.Value); 467var expression = GetExpression<DateTime?, DateTime>(m => m.Value); 576var expression = GetExpression<Chain0Model, string>(m => m.Chain1.ValueTypeModel.TestModel.DifferentModel.Name); 599var expression = GetExpression<Chain0Model, string>(m => m.Chain1.ValueTypeModel.TestModel.DifferentModel.Name); 620var expression = GetExpression<Chain0Model, string>(m => m.Chain1.ValueTypeModel.TestModel.DifferentModel.Name); 647var expression = GetExpression<Chain0Model, string>(m => m.Chain1.NullableValueTypeModel.Value.TestModel.DifferentModel.Name); 670var expression = GetExpression<Chain0Model, string>(m => m.Chain1.NullableValueTypeModel.Value.TestModel.DifferentModel.Name); 722var expression = GetExpression<ValueType1, string>(m => m.ValueType2.Name); 742var expression = GetExpression<ValueType1, DateTime>(m => m.ValueType2.Date); 762var expression = GetExpression<ValueType1, string>(m => m.NullableValueType2.Value.Name); 778var expression = GetExpression<ValueType1, string>(m => m.NullableValueType2.Value.Name); 794var expression = GetExpression<ValueType1, DateTime>(m => m.NullableValueType2.Value.Date); 899=> GetExpression(expression);