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

TestSelectAssociations() private method

private TestSelectAssociations ( ) : void
return void
        public virtual void TestSelectAssociations()
        {
            var doubleCusts = (
                from o in db.Orders
                where o.CustomerID == "ALFKI"
                select new { A = o.Customer, B = o.Customer }
                ).ToList();

            AssertValue(6, doubleCusts.Count);
            Assert.IsTrue(doubleCusts.All(c => c.A.CustomerID == "ALFKI" && c.B.CustomerID == "ALFKI"));
        }
NorthwindExecutionTest