Пример #1
0
        public void Get_All_Projects()
        {
            List <ProjectEntity> projects = _mockRepository.GetAllProjects();

            Assert.IsTrue(projects.Count() == 3);
            Assert.IsTrue(projects.ElementAt(0).ProjectName == "Development project");
            Assert.IsTrue(projects.ElementAt(0).StartDate == "10/01/2018");
            Assert.IsTrue(projects.ElementAt(1).Priority == 6);
            Assert.IsTrue(projects.ElementAt(1).ProjectManagerFullName == "Pavan Krishna");
            Assert.IsTrue(projects.ElementAt(2).TasksCount == 5);
            Assert.IsTrue(projects.ElementAt(2).Completed == 3);
        }
 public List <ProjectEntity> GetAllProjects()
 {
     return(_repo.GetAllProjects());
 }