public LearningPortalController(
     ICentresDataService centresDataService,
     ICourseDataService courseDataService,
     ISelfAssessmentService selfAssessmentService,
     ISupervisorService supervisorService,
     IFrameworkService frameworkService,
     INotificationService notificationService,
     IFrameworkNotificationService frameworkNotificationService,
     ILogger <LearningPortalController> logger,
     IConfiguration config,
     IActionPlanService actionPlanService,
     ICandidateAssessmentDownloadFileService candidateAssessmentDownloadFileService,
     ISearchSortFilterPaginateService searchSortFilterPaginateService,
     IMultiPageFormService multiPageFormService
     )
 {
     this.centresDataService           = centresDataService;
     this.courseDataService            = courseDataService;
     this.selfAssessmentService        = selfAssessmentService;
     this.supervisorService            = supervisorService;
     this.frameworkService             = frameworkService;
     this.notificationService          = notificationService;
     this.frameworkNotificationService = frameworkNotificationService;
     this.logger            = logger;
     this.config            = config;
     this.actionPlanService = actionPlanService;
     this.candidateAssessmentDownloadFileService = candidateAssessmentDownloadFileService;
     this.searchSortFilterPaginateService        = searchSortFilterPaginateService;
     this.multiPageFormService = multiPageFormService;
 }
 public SupervisorController(
     ISupervisorService supervisorService,
     ICommonService commonService,
     IFrameworkNotificationService frameworkNotificationService,
     ISelfAssessmentService selfAssessmentService,
     IFrameworkService frameworkService,
     IConfigDataService configDataService,
     ICentreRegistrationPromptsService centreRegistrationPromptsService,
     IUserDataService userDataService,
     ILogger <SupervisorController> logger,
     IConfiguration config,
     ISearchSortFilterPaginateService searchSortFilterPaginateService,
     IMultiPageFormService multiPageFormService,
     IRegistrationService registrationService
     )
 {
     this.supervisorService                = supervisorService;
     this.commonService                    = commonService;
     this.frameworkNotificationService     = frameworkNotificationService;
     this.selfAssessmentService            = selfAssessmentService;
     this.frameworkService                 = frameworkService;
     this.configDataService                = configDataService;
     this.centreRegistrationPromptsService = centreRegistrationPromptsService;
     this.userDataService                  = userDataService;
     this.logger = logger;
     this.config = config;
     this.searchSortFilterPaginateService = searchSortFilterPaginateService;
     this.multiPageFormService            = multiPageFormService;
     this.registrationService             = registrationService;
 }
 public VerifyDelegateUserCanAccessSelfAssessment(
     ISelfAssessmentService selfAssessmentService,
     ILogger <VerifyDelegateUserCanAccessSelfAssessment> logger
     )
 {
     this.selfAssessmentService = selfAssessmentService;
     this.logger = logger;
 }
Beispiel #4
0
        public void SetUp()
        {
            actionPlanService                      = A.Fake <IActionPlanService>();
            centresDataService                     = A.Fake <ICentresDataService>();
            courseDataService                      = A.Fake <ICourseDataService>();
            selfAssessmentService                  = A.Fake <ISelfAssessmentService>();
            supervisorService                      = A.Fake <ISupervisorService>();
            frameworkService                       = A.Fake <IFrameworkService>();
            notificationService                    = A.Fake <INotificationService>();
            frameworkNotificationService           = A.Fake <IFrameworkNotificationService>();
            candidateAssessmentDownloadFileService = A.Fake <ICandidateAssessmentDownloadFileService>();
            var logger = A.Fake <ILogger <LearningPortalController> >();

            config = A.Fake <IConfiguration>();
            filteredApiHelperService        = A.Fake <IFilteredApiHelperService>();
            searchSortFilterPaginateService = A.Fake <ISearchSortFilterPaginateService>();

            A.CallTo(() => config["CurrentSystemBaseUrl"]).Returns(BaseUrl);

            var user = new ClaimsPrincipal(
                new ClaimsIdentity(
                    new[]
            {
                new Claim("learnCandidateID", CandidateId.ToString()),
                new Claim("UserCentreID", CentreId.ToString()),
            },
                    "mock"
                    )
                );

            controller = new LearningPortalController(
                centresDataService,
                courseDataService,
                selfAssessmentService,
                supervisorService,
                frameworkService,
                notificationService,
                frameworkNotificationService,
                logger,
                config,
                actionPlanService,
                candidateAssessmentDownloadFileService,
                searchSortFilterPaginateService,
                multiPageFormService
                );
            controller.ControllerContext = new ControllerContext {
                HttpContext = new DefaultHttpContext {
                    User = user
                }
            };
            controller = controller.WithMockTempData();
        }
Beispiel #5
0
 public EntriesController(
     ILogger <EntriesController> logger,
     IEntryService entryService,
     ISkillService skillService,
     ISelfAssessmentService selfAssessmentService,
     IUserService userService)
 {
     _logger                = logger;
     _entryService          = entryService;
     _skillService          = skillService;
     _selfAssessmentService = selfAssessmentService;
     _userService           = userService;
 }
Beispiel #6
0
 public SkillsController(
     ILogger <SkillsController> logger,
     ISkillService skillService,
     ITaxonomyService taxonomyService,
     ISelfAssessmentService selfAssessmentService,
     IUserService userService)
 {
     _skillService          = skillService;
     _taxonomyService       = taxonomyService;
     _selfAssessmentService = selfAssessmentService;
     _userService           = userService;
     _logger = logger;
 }
Beispiel #7
0
 public RecommendedLearningController(
     IFilteredApiHelperService filteredApiHelperService,
     ISelfAssessmentService selfAssessmentService,
     IConfiguration configuration,
     IRecommendedLearningService recommendedLearningService,
     IActionPlanService actionPlanService
     )
 {
     this.filteredApiHelperService   = filteredApiHelperService;
     this.selfAssessmentService      = selfAssessmentService;
     this.configuration              = configuration;
     this.recommendedLearningService = recommendedLearningService;
     this.actionPlanService          = actionPlanService;
 }
Beispiel #8
0
        public void Setup()
        {
            filteredApiHelperService   = A.Fake <IFilteredApiHelperService>();
            selfAssessmentService      = A.Fake <ISelfAssessmentService>();
            configuration              = A.Fake <IConfiguration>();
            recommendedLearningService = A.Fake <IRecommendedLearningService>();
            actionPlanService          = A.Fake <IActionPlanService>();

            controller = new RecommendedLearningController(
                filteredApiHelperService,
                selfAssessmentService,
                configuration,
                recommendedLearningService,
                actionPlanService
                )
                         .WithDefaultContext()
                         .WithMockUser(true, delegateId: DelegateId);
        }
Beispiel #9
0
 public SupervisorController(
     ISupervisorService supervisorService,
     ICommonService commonService,
     IFrameworkNotificationService frameworkNotificationService,
     ISelfAssessmentService selfAssessmentService,
     IConfigService configService,
     ICentreCustomPromptsService centreCustomPromptsService,
     ILogger <SupervisorController> logger,
     IConfiguration config)
 {
     this.supervisorService            = supervisorService;
     this.commonService                = commonService;
     this.frameworkNotificationService = frameworkNotificationService;
     this.selfAssessmentService        = selfAssessmentService;
     this.configService                = configService;
     this.centreCustomPromptsService   = centreCustomPromptsService;
     this.logger = logger;
     this.config = config;
 }
Beispiel #10
0
 public LearningPortalController(
     ICentresDataService centresDataService,
     ICourseDataService courseDataService,
     ISelfAssessmentService selfAssessmentService,
     ISupervisorService supervisorService,
     INotificationService notificationService,
     IFrameworkNotificationService frameworkNotificationService,
     ILogger <LearningPortalController> logger,
     IConfiguration config,
     IActionPlanService actionPlanService
     )
 {
     this.centresDataService           = centresDataService;
     this.courseDataService            = courseDataService;
     this.selfAssessmentService        = selfAssessmentService;
     this.supervisorService            = supervisorService;
     this.notificationService          = notificationService;
     this.frameworkNotificationService = frameworkNotificationService;
     this.logger            = logger;
     this.config            = config;
     this.actionPlanService = actionPlanService;
 }
Beispiel #11
0
 public void Setup()
 {
     selfAssessmentDataService = A.Fake <ISelfAssessmentDataService>();
     selfAssessmentService     = new SelfAssessmentService(selfAssessmentDataService);
 }
 public void Setup()
 {
     selfAssessmentService = A.Fake <ISelfAssessmentService>();
     logger = A.Fake <ILogger <VerifyDelegateUserCanAccessSelfAssessment> >();
 }