Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public void ProjDetailsQuery(string projID, IProjectDetails _detailsForm)
 {
     projDetails = RequestProject.Run(projID, myLogin, myPassword);
     _detailsForm.ShowDetails();
 }
Exemple #4
0
 public void CreateNewProjectQuery(NewProject myQuery)
 {
     RequestProject.POSTNewProject(myQuery, myLogin, myPassword);
 }