Esempio n. 1
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;
        }
Esempio n. 2
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;
        }
Esempio n. 3
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;
 }
Esempio n. 4
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;
        }
Esempio n. 5
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());
 }
Esempio n. 7
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()));
 }
Esempio n. 8
0
        public DuplicateScoreCardsCleanup(
            IBaseScoreCardRepository baseScoreCardRepository,
            IValuationScoreCardRepository valuationScoreCardRepository)
        {
            Requires.NotNull(baseScoreCardRepository, nameof(baseScoreCardRepository));
            Requires.NotNull(valuationScoreCardRepository, nameof(valuationScoreCardRepository));

            this.valuationScoreCardRepository = valuationScoreCardRepository;
            this.baseScoreCardRepository      = baseScoreCardRepository;
        }
        public DuplicateScoreCardsCleanup(
            IBaseScoreCardRepository baseScoreCardRepository,
            IValuationScoreCardRepository valuationScoreCardRepository)
        {
            Requires.NotNull(baseScoreCardRepository, nameof(baseScoreCardRepository));
            Requires.NotNull(valuationScoreCardRepository, nameof(valuationScoreCardRepository));

            this.valuationScoreCardRepository = valuationScoreCardRepository;
            this.baseScoreCardRepository = baseScoreCardRepository;
        }
Esempio n. 10
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;
        }
Esempio n. 11
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;
        }
Esempio n. 12
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;
        }
        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;
        }
Esempio n. 14
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;
        }
Esempio n. 15
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;
        }
Esempio n. 16
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;
        }
Esempio n. 17
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>()));
 }
Esempio n. 18
0
        public void ConstructorWithNullValuationScoreCardRepositoryThrowsArgumentNullException()
        {
            // Arrange
            IValuationScoreCardRepository nullValuationScoreCardRepository = null;

            // Act

            // Assert
            Assert.Throws <ArgumentNullException>(() => new InstitutionsController(
                                                      Mock.Of <IInstitutionRepository>(),
                                                      Mock.Of <IBaseScoreCardRepository>(),
                                                      nullValuationScoreCardRepository,
                                                      Mock.Of <IUserProfileRepository>(),
                                                      Mock.Of <IAuthentication>()));
        }
Esempio n. 19
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;
        }
Esempio n. 20
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;
        }
Esempio n. 21
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;
        }
Esempio n. 22
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;
        }
Esempio n. 23
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>()));
 }
Esempio n. 24
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()
     });
 }
Esempio n. 25
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;
        }
Esempio n. 26
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;
        }
Esempio n. 27
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;
        }
Esempio n. 28
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;
        }
Esempio n. 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;
        }
Esempio n. 30
0
 public MyQoamController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IUserJournalRepository userJournalRepository)
     : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication)
 {
     _userJournalRepository = userJournalRepository;
 }
Esempio n. 31
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;
        }
Esempio n. 32
0
 public MyQoamController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IUserProfileRepository userProfileRepository, IAuthentication authentication, IUserJournalRepository userJournalRepository, ISubjectRepository subjectRepository) : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication)
 {
     _userJournalRepository = userJournalRepository;
     _subjectRepository     = subjectRepository;
 }
Esempio n. 33
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>());
 }
Esempio n. 34
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>());
 }
Esempio n. 35
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;
        }
Esempio n. 36
0
 public ScoreCardApiController(IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository)
 {
     _baseScoreCardRepository      = baseScoreCardRepository;
     _valuationScoreCardRepository = valuationScoreCardRepository;
 }
Esempio n. 37
0
        public ProfilesController(IInstitutionRepository institutionRepository, IBaseScoreCardRepository baseScoreCardRepository, IValuationScoreCardRepository valuationScoreCardRepository, IRoles roles, IUserProfileRepository userProfileRepository, IAuthentication authentication)
            : base(baseScoreCardRepository, valuationScoreCardRepository, userProfileRepository, authentication)
        {
            Requires.NotNull(institutionRepository, nameof(institutionRepository));
            Requires.NotNull(roles, nameof(roles));

            this.institutionRepository = institutionRepository;
            this.roles = roles;
        }