public static ProjectUpdate Create(ProjectUpdateBatch projectUpdateBatch)
            {
                var focusArea     = TestFocusArea.Create();
                var projectUpdate = new ProjectUpdate(projectUpdateBatch, ProjectStage.Planned, ProjectLocationSimpleType.None);

                projectUpdate.ProjectDescription = MakeTestName("Project Description");
                projectUpdate.FocusArea          = focusArea;
                projectUpdateBatch.ProjectUpdate = projectUpdate;
                return(projectUpdate);
            }
Exemplo n.º 2
0
            public static Project Create()
            {
                var projectType  = TestProjectType.Create();
                var projectStage = ProjectStage.Planned;
                // TODO: Verify that "Approved" is the correct project state or use the correct value

                var testFocusArea = TestFocusArea.Create();
                var project       = Project.CreateNewBlank(projectType, projectStage, ProjectLocationSimpleType.None, ProjectApprovalStatus.Approved);

                project.FocusArea = testFocusArea;
                return(project);
            }
Exemplo n.º 3
0
            public static Project Create(short projectID, string projectName)
            {
                var projectType  = TestProjectType.Create();
                var projectStage = ProjectStage.Implementation;
                var focusArea    = TestFocusArea.Create();

                // TODO: Verify that "Approved" is the correct project state or use the correct value
                var project = new Project(projectType, projectStage, projectName, false, ProjectLocationSimpleType.None, ProjectApprovalStatus.Approved, Project.CreateNewFhtProjectNumber())
                {
                    ProjectID = projectID
                };

                project.FocusArea          = focusArea;
                project.ProjectDescription = "Some description";
                return(project);
            }
Exemplo n.º 4
0
            public static Project Create(DatabaseEntities dbContext)
            {
                var projectType  = TestProjectType.Create(dbContext);
                var projectStage = ProjectStage.Planned;
                var focusArea    = TestFocusArea.Create();

                var project = new Project(projectType,
                                          projectStage,
                                          $"Test Project Name {Guid.NewGuid()}",
                                          false,
                                          ProjectLocationSimpleType.None,
                                          // TODO: Verify that this is correct or use the correct value
                                          ProjectApprovalStatus.Approved,
                                          Project.CreateNewFhtProjectNumber()
                                          );

                project.FocusArea          = focusArea;
                project.ProjectDescription = MakeTestName("Test Project Description");
                dbContext.Projects.Add(project);
                return(project);
            }