You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/UnitTest/Microsoft.AspNet.OData.Test.Shared/Query/Expressions/AggregationBinderTests.cs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ public void SingleGroupBy()
28
28
{
29
29
varfilters=VerifyQueryDeserialization(
30
30
"groupby((ProductName))",
31
-
".GroupBy($it => new GroupByWrapper() {GroupByContainer = new LastInChain() {Name = ProductName, Value = Convert($it.ProductName), }, })"
31
+
".GroupBy($it => new GroupByWrapper() {GroupByContainer = new LastInChain() {Name = ProductName, Value = $it.ProductName, }, })"
32
32
+".Select($it => new AggregationWrapper() {GroupByContainer = $it.Key.GroupByContainer, })");
33
33
}
34
34
@@ -37,7 +37,7 @@ public void MultipleGroupBy()
37
37
{
38
38
varfilters=VerifyQueryDeserialization(
39
39
"groupby((ProductName, SupplierID))",
40
-
".GroupBy($it => new GroupByWrapper() {GroupByContainer = new AggregationPropertyContainer() {Name = SupplierID, Value = Convert($it.SupplierID), Next = new LastInChain() {Name = ProductName, Value = Convert($it.ProductName), }, }, })"
40
+
".GroupBy($it => new GroupByWrapper() {GroupByContainer = new AggregationPropertyContainer() {Name = SupplierID, Value = Convert($it.SupplierID), Next = new LastInChain() {Name = ProductName, Value = $it.ProductName, }, }, })"
41
41
+".Select($it => new AggregationWrapper() {GroupByContainer = $it.Key.GroupByContainer, })");
42
42
}
43
43
@@ -46,7 +46,7 @@ public void NavigationGroupBy()
46
46
{
47
47
varfilters=VerifyQueryDeserialization(
48
48
"groupby((Category/CategoryName))",
49
-
".GroupBy($it => new GroupByWrapper() {GroupByContainer = new NestedPropertyLastInChain() {Name = Category, NestedValue = new GroupByWrapper() {GroupByContainer = new LastInChain() {Name = CategoryName, Value = Convert($it.Category.CategoryName), }, }, }, })"
49
+
".GroupBy($it => new GroupByWrapper() {GroupByContainer = new NestedPropertyLastInChain() {Name = Category, NestedValue = new GroupByWrapper() {GroupByContainer = new LastInChain() {Name = CategoryName, Value = $it.Category.CategoryName, }, }, }, })"
50
50
+".Select($it => new AggregationWrapper() {GroupByContainer = $it.Key.GroupByContainer, })");
51
51
}
52
52
@@ -55,7 +55,7 @@ public void NavigationMultipleGroupBy()
0 commit comments