Exemplo n.º 1
0
        //Test to get single Project
        public void ShouldReturnSingleProject()
        {
            var projectId = 2;

            ProjectEntity projectDetail = _mockRepository.GetProject(projectId);

            Assert.IsNotNull(projectDetail);
            Assert.IsTrue(projectDetail.ProjectName == "Creating Prototype");
            Assert.IsTrue(projectDetail.ProjectPriority == 3);
            Assert.IsTrue(projectDetail.ProjectStatus == "Y");
            Assert.IsTrue(projectDetail.DateReqd == "Y");
            Assert.IsTrue(projectDetail.StartDate == new DateTime(2018, 9, 9));
            Assert.IsTrue(projectDetail.EndDate == new DateTime(2018, 9, 15));
        }
 public ProjectEntity GetProject(int projectId)
 {
     return(_projDL.GetProject(projectId));
 }