public void Can_Get_All_ProjectTypes()
        {
            //Act
            var result = objRepo.GetAll().ToList();

            //Assert
            Assert.IsNotNull(result);
        }
Example #2
0
        public Project Add(Project project)
        {
            var projectsType     = projectTypeRepository.GetAll();
            var exactProjectType = projectsType.First(x => x.ProjectTypeId == project.ProjectType.ProjectTypeId);

            project.ProjectType = exactProjectType;

            return(projectRepository.Add(project));
        }
 public IEnumerable <ProjectType> GetAll()
 {
     return(projectTypeRepository.GetAll());
 }
 // GET: api/ProjectStatus
 public IHttpActionResult Get()
 {
     return(Ok(projectTypeRepo.GetAll()));
 }