Ejemplo n.º 1
0
 public void TestCompareEntityNotEqual()
 {
     Customer customer = new Customer { CustomerID = "ALFKI" };
     Assert.AreEqual(90, this.Northwind.List<Customer>().Where(c => c != customer).Count());
 }
Ejemplo n.º 2
0
        public void TestCompareEntityEqual()
        {
            Customer customer = new Customer { CustomerID = "ALFKI" };
            var list = this.Northwind.List<Customer>().Where(c => c == customer).ToList();

            Assert.AreEqual(1, list.Count);
            Assert.AreEqual("ALFKI", list[0].CustomerID);
        }