예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }
예제 #5
0
 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;
 }
예제 #6
0
        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;
        }
예제 #7
0
        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;
        }
 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());
 }
예제 #9
0
 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()));
 }
예제 #10
0
        public DuplicateScoreCardsCleanup(
            IBaseScoreCardRepository baseScoreCardRepository,
            IValuationScoreCardRepository valuationScoreCardRepository)
        {
            Requires.NotNull(baseScoreCardRepository, nameof(baseScoreCardRepository));
            Requires.NotNull(valuationScoreCardRepository, nameof(valuationScoreCardRepository));

            this.valuationScoreCardRepository = valuationScoreCardRepository;
            this.baseScoreCardRepository = baseScoreCardRepository;
        }
예제 #11
0
        public DuplicateScoreCardsCleanup(
            IBaseScoreCardRepository baseScoreCardRepository,
            IValuationScoreCardRepository valuationScoreCardRepository)
        {
            Requires.NotNull(baseScoreCardRepository, nameof(baseScoreCardRepository));
            Requires.NotNull(valuationScoreCardRepository, nameof(valuationScoreCardRepository));

            this.valuationScoreCardRepository = valuationScoreCardRepository;
            this.baseScoreCardRepository      = baseScoreCardRepository;
        }
예제 #12
0
        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;
        }
예제 #13
0
        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;
        }
예제 #14
0
        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;
        }
예제 #15
0
        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;
        }
예제 #16
0
        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;
        }
예제 #17
0
        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;
        }
예제 #18
0
        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;
        }
예제 #19
0
        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;
        }
예제 #20
0
 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>()));
 }
예제 #21
0
        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>()));
        }
예제 #22
0
        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;
        }
예제 #23
0
        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;
        }
예제 #24
0
        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;
        }
예제 #25
0
        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;
        }
예제 #26
0
 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>()));
 }
예제 #27
0
 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()
     });
 }
예제 #28
0
        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;
        }
예제 #29
0
        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;
        }
예제 #30
0
        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;
        }
예제 #31
0
        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;
        }
예제 #32
0
 public MyQoamController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IUserJournalRepository userJournalRepository)
     : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication)
 {
     _userJournalRepository = userJournalRepository;
 }
예제 #33
0
        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;
        }
예제 #34
0
 public MyQoamController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IUserJournalRepository userJournalRepository, ISubjectRepository subjectRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication)
 {
     _userJournalRepository = userJournalRepository;
     _subjectRepository     = subjectRepository;
 }
예제 #35
0
 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>());
 }
예제 #36
0
 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>());
 }
예제 #37
0
 public ScoreCardApiController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository)
 {
     _baseScoreCardRepository      = baseScoreCardRepository;
     _valuationScoreCardRepository = valuationScoreCardRepository;
 }
예제 #38
0
        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;
        }