Esempio n. 1
0
 public void Initialize()
 {
     _httpContext             = Substitute.For <IHttpContextService>();
     _accountService          = Substitute.For <IAccountService>();
     _internshipPeriodService = Substitute.For <IInternshipPeriodService>();
     _accountController       = new AccountController(_httpContext, _accountService, _internshipPeriodService);
 }
Esempio n. 2
0
 public HomeController(IInternshipPeriodService internshipPeriodService)
 {
     if (internshipPeriodService == null)
     {
         throw new NullReferenceException();
     }
     _internshipPeriodService = internshipPeriodService;
 }
Esempio n. 3
0
        public AccountController(IHttpContextService httpContext,
                                 IAccountService accountService,
                                 IInternshipPeriodService internshipPeriodService)
        {
            DependencyService.VerifyDependencies(httpContext, accountService, internshipPeriodService);

            _httpContext             = httpContext;
            _accountService          = accountService;
            _internshipPeriodService = internshipPeriodService;
        }
Esempio n. 4
0
        public void Initialize()
        {
            _coordinatorRepository   = Substitute.For <IEntityRepository <Coordinator> >();
            _studentRepository       = Substitute.For <IEntityRepository <Student> >();
            _httpContext             = Substitute.For <IHttpContextService>();
            _accountService          = Substitute.For <IAccountService>();
            _fileService             = Substitute.For <IFileImportService>();
            _internshipPeriodService = Substitute.For <IInternshipPeriodService>();
            _archivesService         = Substitute.For <IArchivesService>();

            _coordinatorController = new CoordinatorController(_coordinatorRepository, _studentRepository,
                                                               _accountService, _fileService,
                                                               _httpContext, _internshipPeriodService, _archivesService);
        }
Esempio n. 5
0
        public void Initialize()
        {
            _internshipApplicationRepository = Substitute.For <IEntityRepository <InternshipApplication> >();
            _internshipOfferRepository       = Substitute.For <IEntityRepository <InternshipOffer> >();
            _studentRepository       = Substitute.For <IEntityRepository <Student> >();
            _httpContext             = Substitute.For <IHttpContextService>();
            _fileService             = Substitute.For <IFileSaveService>();
            _accountService          = Substitute.For <IAccountService>();
            _internshipPeriodService = Substitute.For <IInternshipPeriodService>();
            _notificationService     = Substitute.For <INotificationService>();

            _internshipApplicationController = new InternshipApplicationController(_internshipApplicationRepository, _internshipOfferRepository, _studentRepository, _fileService, _httpContext, _notificationService);
            _accountController = new AccountController(_httpContext, _accountService, _internshipPeriodService);
        }
Esempio n. 6
0
        public CoordinatorController(
            IEntityRepository <Coordinator> coordinatorRepository,
            IEntityRepository <Student> studentRepository,
            IAccountService accountService,
            IFileImportService fileService,
            IHttpContextService httpContextService,
            IInternshipPeriodService internshipPeriodService,
            IArchivesService archivesService)
        {
            DependencyService.VerifyDependencies(coordinatorRepository, studentRepository, accountService, fileService, httpContextService, internshipPeriodService, archivesService);

            _coordinatorRepository   = coordinatorRepository;
            _studentRepository       = studentRepository;
            _accountService          = accountService;
            _httpContextService      = httpContextService;
            _fileService             = fileService;
            _internshipPeriodService = internshipPeriodService;
            _archivesService         = archivesService;
        }
Esempio n. 7
0
        public void Initialize()
        {
            _internshipPeriodService = Substitute.For <IInternshipPeriodService>();

            _homeController = new HomeController(_internshipPeriodService);
        }
Esempio n. 8
0
 public void Initialize()
 {
     _internshipPeriodRepository = Substitute.For <IEntityRepository <InternshipPeriod> >();
     _internshipPeriodService    = Substitute.For <InternshipPeriodService>(_internshipPeriodRepository);
 }