public void Initialize() { _httpContext = Substitute.For <IHttpContextService>(); _accountService = Substitute.For <IAccountService>(); _internshipPeriodService = Substitute.For <IInternshipPeriodService>(); _accountController = new AccountController(_httpContext, _accountService, _internshipPeriodService); }
public HomeController(IInternshipPeriodService internshipPeriodService) { if (internshipPeriodService == null) { throw new NullReferenceException(); } _internshipPeriodService = internshipPeriodService; }
public AccountController(IHttpContextService httpContext, IAccountService accountService, IInternshipPeriodService internshipPeriodService) { DependencyService.VerifyDependencies(httpContext, accountService, internshipPeriodService); _httpContext = httpContext; _accountService = accountService; _internshipPeriodService = internshipPeriodService; }
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); }
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); }
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; }
public void Initialize() { _internshipPeriodService = Substitute.For <IInternshipPeriodService>(); _homeController = new HomeController(_internshipPeriodService); }
public void Initialize() { _internshipPeriodRepository = Substitute.For <IEntityRepository <InternshipPeriod> >(); _internshipPeriodService = Substitute.For <InternshipPeriodService>(_internshipPeriodRepository); }