public List <ProjectModel> GetProjects()
        {
            EntityMapper <Project, ProjectModel> mapObj = new EntityMapper <Project, ProjectModel>();
            List <Project>      projectList             = ProjectManagerRepository.GetProjects();
            List <ProjectModel> projectModels           = new List <ProjectModel>();

            foreach (var project in projectList)
            {
                var projectModel = mapObj.Translate(project);
                projectModel.NoOfTasks      = ProjectManagerRepository.GetTasks().Where(x => x.Project_ID == projectModel.Project_ID).ToList().Count;
                projectModel.CompletedTasks = ProjectManagerRepository.GetTasks().Where(x => x.Project_ID == projectModel.Project_ID && x.End_Date.Date <= DateTime.Now.Date).ToList().Count;
                projectModels.Add(projectModel);
            }

            return(projectModels);
        }
        public void GetProjectsTest()
        {
            var tasks = ProjectManagerRepository.GetProjects();

            Assert.NotZero(tasks.Count);
        }