Exemple #1
0
        private void GetEmployeesWithoutProjects()
        {
            EmployeeSqlDAL  dal       = new EmployeeSqlDAL(DatabaseConnection);
            List <Employee> employees = dal.GetEmployeesWithoutProjects();

            if (employees.Count > 0)
            {
                employees.ForEach(emp =>
                {
                    Console.WriteLine(emp);
                });
            }
            else
            {
                Console.WriteLine("**** NO RESULTS ****");
            }

            Console.WriteLine();
        }
        public void GetEmployeesWithoutProjects()
        {
            List <Employee> NoProjectTest = test.GetEmployeesWithoutProjects();

            Assert.AreEqual(3, NoProjectTest.Count); //because we created someone and didnt assign them a project
        }