Exemplo n.º 1
0
 public ProjectService(
     IProjectRepository repository,
     IHistoryProjectService historyProjectService,
     IUnitOfWork unit) : base(repository, unit)
 {
     this.historyProjectService = historyProjectService;
 }
        public ProjectsController(
            IProjectService projectService,
            IUserService userService,
            IArtifactRequirementTraceabilityMatrixService artifactMatrix,
            IRequirementService requirementService,
            IStakeholdersProjectService stakeholders,
            IProjectArtifactService projectArtifact,
            IProjectPhasesService phasesService,
            IHistoryProjectService historyProjectService,
            IRequirementTraceabilityMatrixService matrixService,
            IScanDirectoryService directory,
            IRequirementDocumentService reqDocument) : base(projectService)
        {
            this.artifactMatrix        = artifactMatrix;
            this.reqDocument           = reqDocument;
            this.requirementService    = requirementService;
            this.matrixService         = matrixService;
            this.stakeholders          = stakeholders;
            this.projectArtifact       = projectArtifact;
            this.historyProjectService = historyProjectService;
            this.directory             = directory;
            this.projectService        = projectService;

            ViewData.Add("ProjectPhasesID", new SelectList(phasesService.getAll(), "ProjectPhasesID", "description"));
            ViewData.Add("CreationUserID", new SelectList(userService.getAll(), "UserID", "name"));
        }