// GET: Month public ChartPeriodController(IDataService dataService, ICommentService commentService, IWebHostEnvironment environment, IActionPlanService actionPlanService, ISettingService settingService, IMailHelper mailHelper, IKPILevelService kPILevelService, IFavouriteService favouriteService, IConfiguration configuaration, IHubContext <HenryHub> hubContext, INotificationService notificationService, IConfiguration configuration) { _environment = environment; _configuration = configuration; _dataService = dataService; _commentService = commentService; _actionPlanService = actionPlanService; _settingService = settingService; _mailHelper = mailHelper; _kPILevelService = kPILevelService; _favouriteService = favouriteService; _configuaration = configuaration; _hubContext = hubContext; _notificationService = notificationService; }
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 ActionPlanController( IWebHostEnvironment environment, IActionPlanService actionPlanService, ICategoryService categoryService ) { _environment = environment; _actionPlanService = actionPlanService; _categoryService = categoryService; }
public SignpostingController( IUserService userService, ILearningHubResourceService learningHubResourceService, IActionPlanService actionPlanService ) { this.userService = userService; this.learningHubResourceService = learningHubResourceService; this.actionPlanService = actionPlanService; }
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(); }
public WorkplaceController(IActionPlanService actionPlanService, IDataService dataService, IConfiguration configuration, ILevelService levelService, IHubContext <HenryHub> hubContext, IMailHelper mailHelper) { _actionPlanService = actionPlanService; _dataService = dataService; _configuration = configuration; _levelService = levelService; _hubContext = hubContext; _mailHelper = mailHelper; }
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; }
public void Setup() { actionPlanService = A.Fake <IActionPlanService>(); var homeController = new HomeController(A.Fake <IConfiguration>()).WithDefaultContext().WithMockTempData() .WithMockUser(true, 101, delegateId: DelegateId); context = new ActionExecutingContext( new ActionContext( new DefaultHttpContext(), new RouteData(new RouteValueDictionary()), new ActionDescriptor() ), new List <IFilterMetadata>(), new Dictionary <string, object>(), homeController ); }
public HomeController(INotificationService notificationService, IConfiguration configuaration, IActionPlanService actionPlanService, ISettingService settingService, IMailHelper mailHelper, IDataService dataService, IErrorMessageService errorMessageService, IConfiguration configuration) { _notificationService = notificationService; _configuaration = configuaration; _actionPlanService = actionPlanService; _settingService = settingService; _mailHelper = mailHelper; _dataService = dataService; _errorMessageService = errorMessageService; _configuration = configuration; }
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); }
public void SetUp() { userService = A.Fake <IUserService>(); learningHubResourceService = A.Fake <ILearningHubResourceService>(); actionPlanService = A.Fake <IActionPlanService>(); A.CallTo(() => actionPlanService.UpdateActionPlanResourcesLastAccessedDateIfPresent(A <int> ._, A <int> ._)) .DoesNothing(); A.CallTo(() => userService.GetDelegateUserById(DelegateId)) .Returns(UserTestHelper.GetDefaultDelegateUser(DelegateId)); A.CallTo(() => userService.DelegateUserLearningHubAccountIsLinked(DelegateId)).Returns(false); A.CallTo(() => learningHubResourceService.GetResourceByReferenceId(ResourceReferenceId)) .Returns((new ResourceReferenceWithResourceDetails(), false)); controller = new SignpostingController( userService, learningHubResourceService, actionPlanService ).WithDefaultContext().WithMockUser(true, delegateId: DelegateId); }
public void Setup() { genericCatalogue = Builder <Catalogue> .CreateNew().With(c => c.Name = "Generic catalogue").Build(); clockService = A.Fake <IClockService>(); competencyLearningResourcesDataService = A.Fake <ICompetencyLearningResourcesDataService>(); learningLogItemsDataService = A.Fake <ILearningLogItemsDataService>(); learningHubResourceService = A.Fake <ILearningHubResourceService>(); selfAssessmentDataService = A.Fake <ISelfAssessmentDataService>(); learningResourceReferenceDataService = A.Fake <ILearningResourceReferenceDataService>(); config = A.Fake <IConfiguration>(); actionPlanService = new ActionPlanService( competencyLearningResourcesDataService, learningLogItemsDataService, clockService, learningHubResourceService, selfAssessmentDataService, config, learningResourceReferenceDataService ); }
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; }
public SearchActionViewModelFactory(IActionService actionService, IActionPlanService actionPlanService, IEmployeeService employeeService) { _actionService = actionService; _actionPlanService = actionPlanService; _employeeService = employeeService; }
public ActionPlansController(ILogger <ActionPlansController> logger, IActionPlanService ActionPlanService) { _actionService = ActionPlanService; _logger = logger; }
public SearchActionPlanViewModelFactory(IActionPlanService actionPlanService, ISiteGroupService siteGroupService,ISiteService siteService) { _actionPlanService = actionPlanService; _siteGroupService = siteGroupService; _siteService = siteService; }
public VerifyDelegateCanAccessActionPlanResource( IActionPlanService actionPlanService ) { this.actionPlanService = actionPlanService; }