Esempio n. 1
0
        public ProjectArtifactController(
            IProjectArtifactService service,
            IUserService userService,
            IArtifactTypeService typeService,
            IImportanceService measureService,
            IProjectService projectService) : base(service)
        {
            this.service = service;

            ViewData.Add("ArtifactTypeID", new SelectList(typeService.getAll(), "ArtifactTypeID", "description"));
            ViewData.Add("ImportanceID", new SelectList(measureService.getAll(), "ImportanceID", "description"));
            ViewData.Add("ProjectID", new SelectList(projectService.getAll(), "ProjectID", "description"));
            ViewData.Add("CreationUserID", new SelectList(userService.getAll(), "UserID", "name"));
        }
Esempio n. 2
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;
        }
 public ImportanceController(IImportanceService importanceService, IMapper mapper, IUserService userService)
 {
     service          = importanceService;
     this.mapper      = mapper;
     this.userService = userService;
 }
Esempio n. 4
0
 public ImportanceController(IImportanceService service) : base(service)
 {
 }