public void Find_WithLastNameFilter_ReturnTheEmployeesWithTheExactLastName()
        {
            string lastName = "Pacheco";

            IList <Employee> employees = employeeEF.Find(lastName, null, null);

            Assert.AreEqual(1, employees.Count);
        }
Exemplo n.º 2
0
        public void Find_WithLastNameFilter_ReturnTheEmployeesWithTheExactLastName()
        {
            //Employee employee1 = new Employee("Luis", "Pacheco", new DateTime(2010, 12, 30));
            //LoadData(employee1);
            //Employee employee2 = new Employee("Luis", "Quispe", new DateTime(2010, 12, 29));
            //LoadData(employee2);
            //FlushChanges();

            string lastName = "Pacheco";

            IList <Employee> employees = employeeEF.Find(lastName, null, null);

            Assert.AreEqual(1, employees.Count);
        }