예제 #1
0
        public void Setup()
        {
            centresDataService        = A.Fake <ICentresDataService>();
            cryptoService             = A.Fake <ICryptoService>();
            jobGroupsDataService      = A.Fake <IJobGroupsDataService>();
            registrationService       = A.Fake <IRegistrationService>();
            userService               = A.Fake <IUserService>();
            centreCustomPromptHelper  = A.Fake <CentreCustomPromptHelper>();
            featureManager            = A.Fake <IFeatureManager>();
            supervisorDelegateService = A.Fake <ISupervisorDelegateService>();
            request = A.Fake <HttpRequest>();

            controller = new RegisterController(
                centresDataService,
                jobGroupsDataService,
                registrationService,
                cryptoService,
                userService,
                centreCustomPromptHelper,
                featureManager,
                supervisorDelegateService
                )
                         .WithDefaultContext()
                         .WithMockRequestContext(request)
                         .WithMockServices()
                         .WithMockTempData();
        }
예제 #2
0
        public void Setup()
        {
            var centreCustomPromptsService = A.Fake <ICentreCustomPromptsService>();

            centreCustomPromptsHelper = new CentreCustomPromptHelper(centreCustomPromptsService);
            userService          = A.Fake <IUserService>();
            jobGroupsDataService = A.Fake <IJobGroupsDataService>();
            passwordResetService = A.Fake <IPasswordResetService>();

            httpRequest  = A.Fake <HttpRequest>();
            httpResponse = A.Fake <HttpResponse>();
            const string cookieName  = "EmailDelegateFilter";
            const string cookieValue = "JobGroupId|JobGroupId|1";

            emailDelegatesController = new EmailDelegatesController(
                centreCustomPromptsHelper,
                jobGroupsDataService,
                passwordResetService,
                userService
                )
                                       .WithMockHttpContext(httpRequest, cookieName, cookieValue, httpResponse)
                                       .WithMockUser(true)
                                       .WithMockServices()
                                       .WithMockTempData();
        }
예제 #3
0
 public void Setup()
 {
     centreCustomPromptsService = A.Fake <ICentreCustomPromptsService>();
     userService              = A.Fake <IUserService>();
     imageResizeService       = A.Fake <ImageResizeService>();
     jobGroupsDataService     = A.Fake <IJobGroupsDataService>();
     centreCustomPromptHelper = new CentreCustomPromptHelper(centreCustomPromptsService);
 }
예제 #4
0
        public void SetUp()
        {
            centreCustomPromptHelper = A.Fake <CentreCustomPromptHelper>();
            jobGroupsDataService     = A.Fake <IJobGroupsDataService>();
            userService = A.Fake <IUserService>();

            controller = new EditDelegateController(userService, jobGroupsDataService, centreCustomPromptHelper)
                         .WithDefaultContext()
                         .WithMockUser(true);
        }
예제 #5
0
 public AllDelegatesController(
     IUserDataService userDataService,
     CentreCustomPromptHelper centreCustomPromptHelper,
     IJobGroupsDataService jobGroupsDataService
     )
 {
     this.userDataService          = userDataService;
     this.centreCustomPromptHelper = centreCustomPromptHelper;
     this.jobGroupsDataService     = jobGroupsDataService;
 }
예제 #6
0
 public EditDelegateController(
     IUserService userService,
     IJobGroupsDataService jobGroupsDataService,
     CentreCustomPromptHelper customPromptHelper
     )
 {
     this.userService          = userService;
     this.jobGroupsDataService = jobGroupsDataService;
     centreCustomPromptHelper  = customPromptHelper;
 }
예제 #7
0
 public EmailDelegatesController(
     CentreCustomPromptHelper centreCustomPromptHelper,
     IJobGroupsDataService jobGroupsDataService,
     IPasswordResetService passwordResetService,
     IUserService userService
     )
 {
     this.centreCustomPromptHelper = centreCustomPromptHelper;
     this.jobGroupsDataService     = jobGroupsDataService;
     this.passwordResetService     = passwordResetService;
     this.userService = userService;
 }
예제 #8
0
 public ViewDelegateController(
     IUserDataService userDataService,
     CentreCustomPromptHelper centreCustomPromptHelper,
     ICourseService courseService,
     IPasswordResetService passwordResetService,
     ICourseDataService courseDataService
     )
 {
     this.userDataService          = userDataService;
     this.centreCustomPromptHelper = centreCustomPromptHelper;
     this.courseService            = courseService;
     this.passwordResetService     = passwordResetService;
     this.courseDataService        = courseDataService;
 }
예제 #9
0
 public MyAccountController(
     ICentreCustomPromptsService centreCustomPromptsService,
     IUserService userService,
     IImageResizeService imageResizeService,
     IJobGroupsDataService jobGroupsDataService,
     CentreCustomPromptHelper customPromptHelper
     )
 {
     this.centreCustomPromptsService = centreCustomPromptsService;
     this.userService          = userService;
     this.imageResizeService   = imageResizeService;
     this.jobGroupsDataService = jobGroupsDataService;
     centreCustomPromptHelper  = customPromptHelper;
 }
예제 #10
0
 public RegisterDelegateByCentreController(
     IJobGroupsDataService jobGroupsDataService,
     IUserService userService,
     CentreCustomPromptHelper centreCustomPromptHelper,
     ICryptoService cryptoService,
     IUserDataService userDataService,
     IRegistrationService registrationService
     )
 {
     this.jobGroupsDataService     = jobGroupsDataService;
     this.userService              = userService;
     this.centreCustomPromptHelper = centreCustomPromptHelper;
     this.userDataService          = userDataService;
     this.registrationService      = registrationService;
     this.cryptoService            = cryptoService;
 }
예제 #11
0
 public void Setup()
 {
     jobGroupsDataService     = A.Fake <IJobGroupsDataService>();
     userService              = A.Fake <IUserService>();
     userDataService          = A.Fake <IUserDataService>();
     centreCustomPromptHelper = A.Fake <CentreCustomPromptHelper>();
     cryptoService            = A.Fake <ICryptoService>();
     registrationService      = A.Fake <IRegistrationService>();
     controller = new RegisterDelegateByCentreController(
         jobGroupsDataService,
         userService,
         centreCustomPromptHelper,
         cryptoService,
         userDataService,
         registrationService
         )
                  .WithDefaultContext()
                  .WithMockTempData();
 }
예제 #12
0
 public RegisterController(
     ICentresDataService centresDataService,
     IJobGroupsDataService jobGroupsDataService,
     IRegistrationService registrationService,
     ICryptoService cryptoService,
     IUserService userService,
     CentreCustomPromptHelper centreCustomPromptHelper,
     IFeatureManager featureManager,
     ISupervisorDelegateService supervisorDelegateService
     )
 {
     this.centresDataService        = centresDataService;
     this.jobGroupsDataService      = jobGroupsDataService;
     this.registrationService       = registrationService;
     this.cryptoService             = cryptoService;
     this.userService               = userService;
     this.centreCustomPromptHelper  = centreCustomPromptHelper;
     this.featureManager            = featureManager;
     this.supervisorDelegateService = supervisorDelegateService;
 }
예제 #13
0
        public void SetUp()
        {
            var centreCustomPromptsService = A.Fake <ICentreCustomPromptsService>();
            var centreCustomPromptsHelper  = new CentreCustomPromptHelper(centreCustomPromptsService);

            userDataService = A.Fake <IUserDataService>();
            courseService   = A.Fake <ICourseService>();
            var passwordResetService = A.Fake <IPasswordResetService>();

            courseDataService = A.Fake <ICourseDataService>();

            viewDelegateController = new ViewDelegateController(
                userDataService,
                centreCustomPromptsHelper,
                courseService,
                passwordResetService,
                courseDataService
                )
                                     .WithDefaultContext()
                                     .WithMockUser(true);
        }
예제 #14
0
        public void Setup()
        {
            var centreCustomPromptsService = A.Fake <ICentreCustomPromptsService>();

            centreCustomPromptsHelper = new CentreCustomPromptHelper(centreCustomPromptsService);
            userDataService           = A.Fake <IUserDataService>();
            jobGroupsDataService      = A.Fake <IJobGroupsDataService>();

            httpRequest  = A.Fake <HttpRequest>();
            httpResponse = A.Fake <HttpResponse>();
            const string cookieName  = "DelegateFilter";
            const string cookieValue = "ActiveStatus|Active|false";

            allDelegatesController = new AllDelegatesController(
                userDataService,
                centreCustomPromptsHelper,
                jobGroupsDataService
                )
                                     .WithMockHttpContext(httpRequest, cookieName, cookieValue, httpResponse)
                                     .WithMockUser(true)
                                     .WithMockServices()
                                     .WithMockTempData();
        }
예제 #15
0
 public void Setup()
 {
     centreCustomPromptsService = A.Fake <ICentreCustomPromptsService>();
     centreCustomPromptHelper   = new CentreCustomPromptHelper(centreCustomPromptsService);
 }