public ScoreController(IBaseScoreCardRepository baseScoreCardRepository, IBaseJournalPriceRepository baseJournalPriceRepository, IValuationScoreCardRepository valuationScoreCardRepository, IValuationJournalPriceRepository valuationJournalPriceRepository, IScoreCardVersionRepository scoreCardVersionRepository, IJournalRepository journalRepository, ILanguageRepository languageRepository, ISubjectRepository subjectRepository, IQuestionRepository questionRepository, GeneralSettings generalSettings, IUserProfileRepository userProfileRepository, IInstitutionRepository institutionRepository, IAuthentication authentication) : base(userProfileRepository, authentication) { Requires.NotNull(baseScoreCardRepository, "baseScoreCardRepository"); Requires.NotNull(baseJournalPriceRepository, "baseJournalPriceRepository"); Requires.NotNull(valuationScoreCardRepository, "valuationScoreCardRepository"); Requires.NotNull(valuationJournalPriceRepository, "valuationJournalPriceRepository"); Requires.NotNull(scoreCardVersionRepository, "scoreCardVersionRepository"); Requires.NotNull(journalRepository, "journalRepository"); Requires.NotNull(languageRepository, "languageRepository"); Requires.NotNull(subjectRepository, "keywordRepository"); Requires.NotNull(questionRepository, "questionRepository"); Requires.NotNull(institutionRepository, "institutionRepository"); Requires.NotNull(generalSettings, "generalSettings"); this.baseScoreCardRepository = baseScoreCardRepository; this.scoreCardVersionRepository = scoreCardVersionRepository; this.valuationJournalPriceRepository = valuationJournalPriceRepository; this.valuationScoreCardRepository = valuationScoreCardRepository; this.journalRepository = journalRepository; this.languageRepository = languageRepository; this.subjectRepository = subjectRepository; this.questionRepository = questionRepository; this.baseJournalPriceRepository = baseJournalPriceRepository; this.institutionRepository = institutionRepository; this.generalSettings = generalSettings; }
public InstitutionsController(IInstitutionRepository institutionRepository, IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(institutionRepository, nameof(institutionRepository)); this.institutionRepository = institutionRepository; }
public ScoreController(IBaseScoreCardRepository baseScoreCardRepository, IBaseJournalPriceRepository baseJournalPriceRepository, IValuationScoreCardRepository valuationScoreCardRepository, IValuationJournalPriceRepository valuationJournalPriceRepository, IScoreCardVersionRepository scoreCardVersionRepository, IJournalRepository journalRepository, ILanguageRepository languageRepository, IQuestionRepository questionRepository, GeneralSettings generalSettings, IUserProfileRepository userProfileRepository, IInstitutionRepository institutionRepository, IAuthentication authentication, IBulkImporter <AuthorToInvite> bulkImporter, IUserJournalRepository userJournalRepository, ISubjectRepository subjectRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(baseJournalPriceRepository, nameof(baseJournalPriceRepository)); Requires.NotNull(valuationJournalPriceRepository, nameof(valuationJournalPriceRepository)); Requires.NotNull(scoreCardVersionRepository, nameof(scoreCardVersionRepository)); Requires.NotNull(journalRepository, nameof(journalRepository)); Requires.NotNull(languageRepository, nameof(languageRepository)); Requires.NotNull(questionRepository, nameof(questionRepository)); Requires.NotNull(institutionRepository, nameof(institutionRepository)); Requires.NotNull(generalSettings, nameof(generalSettings)); this.scoreCardVersionRepository = scoreCardVersionRepository; this.valuationJournalPriceRepository = valuationJournalPriceRepository; this.journalRepository = journalRepository; this.languageRepository = languageRepository; this.questionRepository = questionRepository; this.baseJournalPriceRepository = baseJournalPriceRepository; this.institutionRepository = institutionRepository; this.generalSettings = generalSettings; _bulkImporter = bulkImporter; _userJournalRepository = userJournalRepository; _subjectRepository = subjectRepository; }
public QoamCornersController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IJournalRepository journalRepository, ICornerRepository cornerRepository, IBulkImporter<CornerToImport> bulkImporter) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { _journalRepository = journalRepository; _cornerRepository = cornerRepository; _bulkImporter = bulkImporter; }
public AdminController(JournalsImport journalsImport, UlrichsImport ulrichsImport, DoajImport doajImport, JournalTocsImport journalsTocImport, JournalsExport journalsExport, IJournalRepository journalRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IInstitutionRepository institutionRepository, IBlockedISSNRepository blockedIssnRepository, IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IBulkImporter<SubmissionPageLink> bulkImporter, IBulkImporter<Institution> institutionImporter) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(journalsImport, nameof(journalsImport)); Requires.NotNull(ulrichsImport, nameof(ulrichsImport)); Requires.NotNull(journalsTocImport, nameof(journalsTocImport)); Requires.NotNull(doajImport, nameof(doajImport)); Requires.NotNull(journalsExport, nameof(journalsExport)); Requires.NotNull(journalRepository, nameof(journalRepository)); Requires.NotNull(institutionRepository, nameof(institutionRepository)); Requires.NotNull(blockedIssnRepository, nameof(blockedIssnRepository)); Requires.NotNull(bulkImporter, nameof(bulkImporter)); Requires.NotNull(institutionImporter, nameof(institutionImporter)); this.journalsImport = journalsImport; this.ulrichsImport = ulrichsImport; this.doajImport = doajImport; _journalsTocImport = journalsTocImport; this.journalsExport = journalsExport; this.journalRepository = journalRepository; this.institutionRepository = institutionRepository; this.blockedIssnRepository = blockedIssnRepository; _bulkImporter = bulkImporter; _institutionImporter = institutionImporter; }
private static UnpublishedScoreCardsCleanup CreateUnpublishedScoreCardsCleanup( IBaseScoreCardRepository baseScoreCardRepository = null, IValuationScoreCardRepository valuationScoreCardRepository = null, CleanupSettings settings = null) { return new UnpublishedScoreCardsCleanup( baseScoreCardRepository ?? Mock.Of<IBaseScoreCardRepository>(), valuationScoreCardRepository ?? Mock.Of<IValuationScoreCardRepository>(), settings ?? CreateUnpublishedScoreCardsCleanupSettings()); }
private static UnpublishedScoreCardsCleanup CreateUnpublishedScoreCardsCleanup( IBaseScoreCardRepository baseScoreCardRepository = null, IValuationScoreCardRepository valuationScoreCardRepository = null, CleanupSettings settings = null) { return(new UnpublishedScoreCardsCleanup( baseScoreCardRepository ?? Mock.Of <IBaseScoreCardRepository>(), valuationScoreCardRepository ?? Mock.Of <IValuationScoreCardRepository>(), settings ?? CreateUnpublishedScoreCardsCleanupSettings())); }
public DuplicateScoreCardsCleanup( IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository) { Requires.NotNull(baseScoreCardRepository, nameof(baseScoreCardRepository)); Requires.NotNull(valuationScoreCardRepository, nameof(valuationScoreCardRepository)); this.valuationScoreCardRepository = valuationScoreCardRepository; this.baseScoreCardRepository = baseScoreCardRepository; }
public InstitutionsController(IInstitutionRepository institutionRepository, IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication) : base(userProfileRepository, authentication) { Requires.NotNull(institutionRepository, "institutionRepository"); Requires.NotNull(baseScoreCardRepository, "scoreCardRepository"); Requires.NotNull(valuationScoreCardRepository, "valuationScoreCardRepository"); this.institutionRepository = institutionRepository; this.baseScoreCardRepository = baseScoreCardRepository; this.valuationScoreCardRepository = valuationScoreCardRepository; }
public ExpirationChecker(IBaseScoreCardRepository baseScoreCardRepository, ExpirationCheckerNotification expirationCheckerNotification, ExpirationCheckerSettings expirationCheckerSettings, IMailSender mailSender) { Requires.NotNull(baseScoreCardRepository, nameof(baseScoreCardRepository)); Requires.NotNull(expirationCheckerNotification, nameof(expirationCheckerNotification)); Requires.NotNull(expirationCheckerSettings, nameof(expirationCheckerSettings)); Requires.NotNull(mailSender, nameof(mailSender)); this.baseScoreCardRepository = baseScoreCardRepository; this.expirationCheckerNotification = expirationCheckerNotification; this.expirationCheckerSettings = expirationCheckerSettings; this.mailSender = mailSender; }
public UnpublishedScoreCardsCleanup( IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, CleanupSettings settings) { Requires.NotNull(baseScoreCardRepository, nameof(baseScoreCardRepository)); Requires.NotNull(valuationScoreCardRepository, nameof(valuationScoreCardRepository)); Requires.NotNull(settings, nameof(settings)); this.settings = settings; this.valuationScoreCardRepository = valuationScoreCardRepository; this.baseScoreCardRepository = baseScoreCardRepository; }
public AccountController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IInstitutionRepository institutionRepository, IJournalRepository journalRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(authentication, nameof(authentication)); Requires.NotNull(userProfileRepository, nameof(userProfileRepository)); Requires.NotNull(institutionRepository, nameof(institutionRepository)); Requires.NotNull(journalRepository, nameof(journalRepository)); this.authentication = authentication; this.userProfileRepository = userProfileRepository; this.institutionRepository = institutionRepository; this.journalRepository = journalRepository; }
public ExpirationChecker(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, ExpirationCheckerNotification expirationCheckerNotification, ExpirationCheckerSettings expirationCheckerSettings, IMailSender mailSender) { Requires.NotNull(baseScoreCardRepository, "baseScoreCardRepository"); Requires.NotNull(valuationScoreCardRepository, "valuationScoreCardRepository"); Requires.NotNull(expirationCheckerNotification, "expirationCheckerNotification"); Requires.NotNull(expirationCheckerSettings, "expirationCheckerSettings"); Requires.NotNull(mailSender, "mailSender"); this.baseScoreCardRepository = baseScoreCardRepository; this.valuationScoreCardRepository = valuationScoreCardRepository; this.expirationCheckerNotification = expirationCheckerNotification; this.expirationCheckerSettings = expirationCheckerSettings; this.mailSender = mailSender; }
private static InstitutionsController CreateInstitutionsController( IInstitutionRepository institutionRepository = null, IBaseScoreCardRepository baseScoreCardRepository = null, IValuationScoreCardRepository valuationScoreCardRepository = null, IUserProfileRepository userProfileRepository = null, IAuthentication authentication = null) { return(new InstitutionsController( institutionRepository ?? CreateInstitutionRepository(), baseScoreCardRepository ?? Mock.Of <IBaseScoreCardRepository>(), valuationScoreCardRepository ?? Mock.Of <IValuationScoreCardRepository>(), userProfileRepository ?? Mock.Of <IUserProfileRepository>(), authentication ?? Mock.Of <IAuthentication>())); }
public void ConstructorWithNullBaseScoreCardRepositoryThrowsArgumentNullException() { // Arrange IBaseScoreCardRepository nullBaseScoreCardRepository = null; // Act // Assert Assert.Throws <ArgumentNullException>(() => new InstitutionsController( Mock.Of <IInstitutionRepository>(), nullBaseScoreCardRepository, Mock.Of <IValuationScoreCardRepository>(), Mock.Of <IUserProfileRepository>(), Mock.Of <IAuthentication>())); }
protected ApplicationController( IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication) { Requires.NotNull(baseScoreCardRepository, nameof(baseScoreCardRepository)); Requires.NotNull(valuationScoreCardRepository, nameof(valuationScoreCardRepository)); Requires.NotNull(userProfileRepository, nameof(userProfileRepository)); Requires.NotNull(authentication, nameof(authentication)); this.UserProfileRepository = userProfileRepository; this.Authentication = authentication; this.valuationScoreCardRepository = valuationScoreCardRepository; this.baseScoreCardRepository = baseScoreCardRepository; }
public HomeController( IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IJournalRepository journalRepository, IMailSender mailSender, ContactSettings contactSettings, IUserProfileRepository userProfileRepository, IAuthentication authentication) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(journalRepository, nameof(journalRepository)); Requires.NotNull(mailSender, nameof(mailSender)); Requires.NotNull(contactSettings, nameof(contactSettings)); this.journalRepository = journalRepository; this.mailSender = mailSender; this.contactSettings = contactSettings; }
private static HomeController CreateHomeController( IBaseScoreCardRepository baseScoreCardRepository = null, IValuationScoreCardRepository valuationScoreCardRepository = null, IJournalRepository journalRepository = null, IMailSender mailSender = null, ContactSettings contactSettings = null, IUserProfileRepository userProfileRepository = null, IAuthentication authentication = null) { return(new HomeController( baseScoreCardRepository ?? Mock.Of <IBaseScoreCardRepository>(), valuationScoreCardRepository ?? Mock.Of <IValuationScoreCardRepository>(), journalRepository ?? Mock.Of <IJournalRepository>(), mailSender ?? Mock.Of <IMailSender>(), contactSettings ?? CreateContactSettings(), userProfileRepository ?? Mock.Of <IUserProfileRepository>(), authentication ?? Mock.Of <IAuthentication>())); }
private static AccountController CreateAccountController( IBaseScoreCardRepository baseScoreCardRepository = null, IValuationScoreCardRepository valuationScoreCardRepository = null, IUserProfileRepository userProfileRepository = null, IAuthentication authentication = null, IInstitutionRepository institutionRepository = null, IJournalRepository journalRepository = null) { return(new AccountController( baseScoreCardRepository ?? Mock.Of <IBaseScoreCardRepository>(), valuationScoreCardRepository ?? Mock.Of <IValuationScoreCardRepository>(), userProfileRepository ?? CreateUserProfileRepository(), authentication ?? CreateAuthentication(), institutionRepository ?? CreateInstitutionRepository(), journalRepository ?? Mock.Of <IJournalRepository>()) { Url = HttpContextHelper.CreateUrlHelper() }); }
public JournalsController(IJournalRepository journalRepository, IBaseJournalPriceRepository baseJournalPriceRepository, IValuationJournalPriceRepository valuationJournalPriceRepository, IValuationScoreCardRepository valuationScoreCardRepository, ILanguageRepository languageRepository, IInstitutionJournalRepository institutionJournalRepository, IBaseScoreCardRepository baseScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IInstitutionRepository institutionRepository, IBulkImporter<UniversityLicense> bulkImporter) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(journalRepository, nameof(journalRepository)); Requires.NotNull(baseJournalPriceRepository, nameof(baseJournalPriceRepository)); Requires.NotNull(valuationJournalPriceRepository, nameof(valuationJournalPriceRepository)); Requires.NotNull(languageRepository, nameof(languageRepository)); Requires.NotNull(institutionJournalRepository, nameof(institutionJournalRepository)); Requires.NotNull(institutionRepository, nameof(institutionRepository)); Requires.NotNull(valuationJournalPriceRepository, nameof(valuationJournalPriceRepository)); Requires.NotNull(bulkImporter, nameof(bulkImporter)); this.journalRepository = journalRepository; this.baseJournalPriceRepository = baseJournalPriceRepository; this.institutionJournalRepository = institutionJournalRepository; this.institutionRepository = institutionRepository; this.valuationJournalPriceRepository = valuationJournalPriceRepository; _bulkImporter = bulkImporter; }
public JournalsController(IJournalRepository journalRepository, IBaseJournalPriceRepository baseJournalPriceRepository, IValuationJournalPriceRepository valuationJournalPriceRepository, IValuationScoreCardRepository valuationScoreCardRepository, ILanguageRepository languageRepository, ISubjectRepository subjectRepository, IInstitutionJournalRepository institutionJournalRepository, IBaseScoreCardRepository baseScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IInstitutionRepository institutionRepository) : base(userProfileRepository, authentication) { Requires.NotNull(journalRepository, "journalRepository"); Requires.NotNull(baseJournalPriceRepository, "baseJournalPriceRepository"); Requires.NotNull(valuationJournalPriceRepository, "valuationJournalPriceRepository"); Requires.NotNull(valuationScoreCardRepository, "valuationScoreCardRepository"); Requires.NotNull(languageRepository, "languageRepository"); Requires.NotNull(subjectRepository, "keywordRepository"); Requires.NotNull(institutionJournalRepository, "institutionJournalRepository"); Requires.NotNull(baseScoreCardRepository, "scoreCardRepository"); Requires.NotNull(institutionRepository, "institutionRepository"); Requires.NotNull(valuationJournalPriceRepository, "valuationJournalPriceRepository"); this.journalRepository = journalRepository; this.baseJournalPriceRepository = baseJournalPriceRepository; this.languageRepository = languageRepository; this.subjectRepository = subjectRepository; this.institutionJournalRepository = institutionJournalRepository; this.baseScoreCardRepository = baseScoreCardRepository; this.valuationScoreCardRepository = valuationScoreCardRepository; this.institutionRepository = institutionRepository; this.valuationJournalPriceRepository = valuationJournalPriceRepository; }
public ScoreController(IBaseScoreCardRepository baseScoreCardRepository, IBaseJournalPriceRepository baseJournalPriceRepository, IValuationScoreCardRepository valuationScoreCardRepository, IValuationJournalPriceRepository valuationJournalPriceRepository, IScoreCardVersionRepository scoreCardVersionRepository, IJournalRepository journalRepository, ILanguageRepository languageRepository, IQuestionRepository questionRepository, GeneralSettings generalSettings, IUserProfileRepository userProfileRepository, IInstitutionRepository institutionRepository, IAuthentication authentication, IBulkImporter<AuthorToInvite> bulkImporter, IUserJournalRepository userJournalRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(baseJournalPriceRepository, nameof(baseJournalPriceRepository)); Requires.NotNull(valuationJournalPriceRepository, nameof(valuationJournalPriceRepository)); Requires.NotNull(scoreCardVersionRepository, nameof(scoreCardVersionRepository)); Requires.NotNull(journalRepository, nameof(journalRepository)); Requires.NotNull(languageRepository, nameof(languageRepository)); Requires.NotNull(questionRepository, nameof(questionRepository)); Requires.NotNull(institutionRepository, nameof(institutionRepository)); Requires.NotNull(generalSettings, nameof(generalSettings)); this.scoreCardVersionRepository = scoreCardVersionRepository; this.valuationJournalPriceRepository = valuationJournalPriceRepository; this.journalRepository = journalRepository; this.languageRepository = languageRepository; this.questionRepository = questionRepository; this.baseJournalPriceRepository = baseJournalPriceRepository; this.institutionRepository = institutionRepository; this.generalSettings = generalSettings; _bulkImporter = bulkImporter; _userJournalRepository = userJournalRepository; }
public MyQoamController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IUserJournalRepository userJournalRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { _userJournalRepository = userJournalRepository; }
public AdminController(JournalsImport journalsImport, UlrichsImport ulrichsImport, DoajImport doajImport, JournalTocsImport journalsTocImport, JournalsExport journalsExport, IJournalRepository journalRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IInstitutionRepository institutionRepository, IBlockedISSNRepository blockedIssnRepository, IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IBulkImporter <SubmissionPageLink> bulkImporter, IBulkImporter <Institution> institutionImporter, ICornerRepository cornerRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(journalsImport, nameof(journalsImport)); Requires.NotNull(ulrichsImport, nameof(ulrichsImport)); Requires.NotNull(journalsTocImport, nameof(journalsTocImport)); Requires.NotNull(doajImport, nameof(doajImport)); Requires.NotNull(journalsExport, nameof(journalsExport)); Requires.NotNull(journalRepository, nameof(journalRepository)); Requires.NotNull(institutionRepository, nameof(institutionRepository)); Requires.NotNull(blockedIssnRepository, nameof(blockedIssnRepository)); Requires.NotNull(bulkImporter, nameof(bulkImporter)); Requires.NotNull(institutionImporter, nameof(institutionImporter)); this.journalsImport = journalsImport; this.ulrichsImport = ulrichsImport; this.doajImport = doajImport; _journalsTocImport = journalsTocImport; this.journalsExport = journalsExport; this.journalRepository = journalRepository; this.institutionRepository = institutionRepository; this.blockedIssnRepository = blockedIssnRepository; _bulkImporter = bulkImporter; _institutionImporter = institutionImporter; _cornerRepository = cornerRepository; }
public MyQoamController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IUserJournalRepository userJournalRepository, ISubjectRepository subjectRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { _userJournalRepository = userJournalRepository; _subjectRepository = subjectRepository; }
private static ProfilesController CreateProfilesController( IInstitutionRepository institutionRepository = null, IBaseScoreCardRepository baseScoreCardRepository = null, IValuationScoreCardRepository valuationScoreCardRepository = null, IRoles roles = null, IUserProfileRepository userProfileRepository = null, IAuthentication authentication = null) { return new ProfilesController( institutionRepository ?? CreateInstitutionRepository(), baseScoreCardRepository ?? Mock.Of<IBaseScoreCardRepository>(), valuationScoreCardRepository ?? Mock.Of<IValuationScoreCardRepository>(), roles ?? Mock.Of<IRoles>(), userProfileRepository ?? CreateUserProfileRepository(), authentication ?? Mock.Of<IAuthentication>()); }
private static HomeController CreateHomeController( IBaseScoreCardRepository baseScoreCardRepository = null, IValuationScoreCardRepository valuationScoreCardRepository = null, IJournalRepository journalRepository = null, IMailSender mailSender = null, ContactSettings contactSettings = null, IUserProfileRepository userProfileRepository = null, IAuthentication authentication = null) { return new HomeController( baseScoreCardRepository ?? Mock.Of<IBaseScoreCardRepository>(), valuationScoreCardRepository ?? Mock.Of<IValuationScoreCardRepository>(), journalRepository ?? Mock.Of<IJournalRepository>(), mailSender ?? Mock.Of<IMailSender>(), contactSettings ?? CreateContactSettings(), userProfileRepository ?? Mock.Of<IUserProfileRepository>(), authentication ?? Mock.Of<IAuthentication>()); }
public ScoreCardApiController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository) { _baseScoreCardRepository = baseScoreCardRepository; _valuationScoreCardRepository = valuationScoreCardRepository; }
public JournalsController(IJournalRepository journalRepository, IBaseJournalPriceRepository baseJournalPriceRepository, IValuationJournalPriceRepository valuationJournalPriceRepository, IValuationScoreCardRepository valuationScoreCardRepository, ILanguageRepository languageRepository, IInstitutionJournalRepository institutionJournalRepository, IBaseScoreCardRepository baseScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IInstitutionRepository institutionRepository, IBulkImporter <UniversityLicense> bulkImporter, ISubjectRepository subjectRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication) { Requires.NotNull(journalRepository, nameof(journalRepository)); Requires.NotNull(baseJournalPriceRepository, nameof(baseJournalPriceRepository)); Requires.NotNull(valuationJournalPriceRepository, nameof(valuationJournalPriceRepository)); Requires.NotNull(languageRepository, nameof(languageRepository)); Requires.NotNull(institutionJournalRepository, nameof(institutionJournalRepository)); Requires.NotNull(institutionRepository, nameof(institutionRepository)); Requires.NotNull(valuationJournalPriceRepository, nameof(valuationJournalPriceRepository)); Requires.NotNull(bulkImporter, nameof(bulkImporter)); this.journalRepository = journalRepository; this.baseJournalPriceRepository = baseJournalPriceRepository; this.institutionJournalRepository = institutionJournalRepository; this.institutionRepository = institutionRepository; this.valuationJournalPriceRepository = valuationJournalPriceRepository; _bulkImporter = bulkImporter; _subjectRepository = subjectRepository; }