public void RequestProject() { RequestProject request = new RequestProject { IdRequestProject = 2, RequestDate = DateTime.Now, IdProject = 2, Enrollment = "zS18012124", RequestStatus = RequestStatus.REQUESTED }; _unitOfWork.RequestProjects.Add(request); int expected = 2; int actual = _request.Count; Assert.AreEqual(expected, actual); }
public void GetQuantityRequestPracticioner() { List <RequestProject> requestProject = new List <RequestProject> { new RequestProject { IdRequestProject = 3, RequestDate = DateTime.Now, IdProject = 2, Enrollment = "zS18012123", RequestStatus = RequestStatus.REQUESTED } }; DbSet <RequestProject> mockSet = DbContextMock.GetQueryableMockDbSet(requestProject, x => x.IdRequestProject); ProfessionalPracticesContext mockContext = DbContextMock.GetContext(mockSet); UnitOfWork unitOfWork = new UnitOfWork(mockContext); RequestProject requestProjectsFound = unitOfWork.RequestProjects.FindFirstOccurence(Request => Request.Enrollment == "zS18012123"); Assert.IsNotNull(requestProjectsFound.Enrollment); }
public void ProjDetailsQuery(string projID, IProjectDetails _detailsForm) { projDetails = RequestProject.Run(projID, myLogin, myPassword); _detailsForm.ShowDetails(); }
public void CreateNewProjectQuery(NewProject myQuery) { RequestProject.POSTNewProject(myQuery, myLogin, myPassword); }