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

TestCompareTwoConstantEntityNestedRelationshipNegation() private method

        public virtual void TestCompareTwoConstantEntityNestedRelationshipNegation()
        {
            Order exclude = new Order() { OrderID = 10702 };
            Customer alfki = new Customer() { CustomerID = "ALFKI" };

            var testQuery = from o in db.Orders
                            where o.Customer == alfki &&
                                  o != exclude
                            select o;

            var test = testQuery.ToList();
            AssertValue(5, test.Count);
            AssertValue("ALFKI", test[0].CustomerID);
        }
NorthwindExecutionTest