NLite.Data.Test.NorthwindExecutionTest.TestGroupByWithElementSelectorSum C# (CSharp) Method

TestGroupByWithElementSelectorSum() private method

private TestGroupByWithElementSelectorSum ( ) : void
return void
        public virtual void TestGroupByWithElementSelectorSum()
        {
            var list = db.Orders.Where(o => o.CustomerID == "ALFKI").GroupBy(o => o.CustomerID, o => (o.CustomerID == "ALFKI" ? 1 : 1)).Select(g => g.Sum()).ToList();
            AssertValue(1, list.Count);
            AssertValue(6, list[0]);
        }
NorthwindExecutionTest