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

TestGroupByWithAnonymousElement() private method

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