예제 #1
0
 public RequirementRequestForChangesController(
     IRequirementRequestForChangesService service,
     IStakeholderRequirementService stakeholderRequirement,
     IStakeholderRequirementApprovalService stakeholders,
     IRequestStatusService status,
     IStakeholdersProjectService stakeholderProject,
     IRequirementService requirement) : base(service)
 {
     this.stakeholderProject     = stakeholderProject;
     this.stakeholderRequirement = stakeholderRequirement;
     this.requirement            = requirement;
     this.stakeholders           = stakeholders;
     this.service = service;
     ViewData.Add("RequestStatusID", new SelectList(status.getAll(), "RequestStatusID", "description"));
 }
예제 #2
0
        public StakeholderRequirementApprovalController(
            IStakeholderRequirementApprovalService service,
            IStakeholdersService stakeholder,
            IRequirementService requirement,
            IStakeholderRequirementService stakeholderRequirementService,
            IStakeholdersProjectService stakeholderProjectService,
            IProjectService projectService) : base(service)
        {
            this.stakeholderProjectService     = stakeholderProjectService;
            this.stakeholderRequirementService = stakeholderRequirementService;
            this.requirement = requirement;
            this.service     = service;
            this.stakeholder = stakeholder;

            ViewBag.ProjectID = new SelectList(projectService.getAll(), "ProjectID", "DisplayName");
        }
예제 #3
0
        public RequirementController(
            IRequirementService requirementService,
            IStakeholderRequirementService stakeholderRequirementService,
            IImportanceService measureService,
            IRequirementDocumentService reqDocument,
            IRequirementSubTypeService subTypeService,
            IRequirementStatusService statusService,
            IRequirementTypeService typeService,
            IRequirementCharacteristicsService reqCharacteristics,
            IUserService userService,
            IRequirementVersionsService versions,
            IRequirementRequestForChangesService requestService,
            IRequirementVersionsService rationaleService,
            ILinkBetweenRequirementsService linkRequirementService,
            ILinkBetweenRequirementsArtifactsService linkReqArtifactService,
            IStakeholdersProjectService stakeholdersProject,
            IStakeholderRequirementApprovalService stakeholdersRequirement,
            IRequirementTemplateService templateService,
            IStakeholderRequirementApprovalService stakeholderApproval,
            IProjectService projectService) : base(requirementService)
        {
            Mapper.Initialize(cfg =>
            {
                cfg.CreateAutomaticMapping <RequirementViewModel, RequirementEntity>();
                cfg.CreateAutomaticMapping <RequirementEntity, RequirementViewModel>();
            });

            this.stakeholderRequirementService = stakeholderRequirementService;
            this.reqDocument             = reqDocument;
            this.stakeholderApproval     = stakeholderApproval;
            this.versions                = versions;
            this.subTypeService          = subTypeService;
            this.requestService          = requestService;
            this.stakeholdersRequirement = stakeholdersRequirement;
            this.reqCharacteristics      = reqCharacteristics;
            this.requirementService      = requirementService;
            this.templateService         = templateService;
            this.stakeholdersProject     = stakeholdersProject;
            this.userService             = userService;
            this.measureService          = measureService;
            this.projectService          = projectService;
            this.statusService           = statusService;
            this.typeService             = typeService;
            this.linkRequirementService  = linkRequirementService;
            this.linkReqArtifactService  = linkReqArtifactService;
            this.rationaleService        = rationaleService;
        }