public CreateOrUpdateResponsibleTypeWork(CatalogValueRepository catalogValueRepository, int?responsibleTypeId, ResponsibleTypeContract data, IMapper mapper) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_responsibleTypeId      = responsibleTypeId;
     m_data   = data;
     m_mapper = mapper;
 }
 public CreateFavoriteQueryWork(FavoritesRepository favoritesRepository, CatalogValueRepository catalogValueRepository, CreateFavoriteQueryContract data, int userId, IMapper mapper) : base(favoritesRepository)
 {
     m_favoritesRepository    = favoritesRepository;
     m_catalogValueRepository = catalogValueRepository;
     m_data   = data;
     m_userId = userId;
     m_mapper = mapper;
 }
Exemple #3
0
        //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethoNd().DeclaringType);

        public FavoriteManager(AuthenticationManager authenticationManager, CatalogValueRepository catalogValueRepository,
                               ResourceRepository resourceRepository, FavoritesRepository favoritesRepository, IMapper mapper)
        {
            m_authenticationManager  = authenticationManager;
            m_catalogValueRepository = catalogValueRepository;
            m_favoritesRepository    = favoritesRepository;
            m_mapper             = mapper;
            m_resourceRepository = resourceRepository;
        }
Exemple #4
0
 public RelationalDbStoreProcessor(ProjectRepository projectRepository, MetadataRepository metadataRepository,
                                   ResourceRepository resourceRepository, FulltextStoreProcessorProvider fulltextStoreProcessorProvider, CatalogValueRepository catalogValueRepository, PersonRepository personRepository,
                                   PermissionRepository permissionRepository)
 {
     m_projectRepository              = projectRepository;
     m_metadataRepository             = metadataRepository;
     m_resourceRepository             = resourceRepository;
     m_fulltextStoreProcessorProvider = fulltextStoreProcessorProvider;
     m_catalogValueRepository         = catalogValueRepository;
     m_personRepository     = personRepository;
     m_permissionRepository = permissionRepository;
 }
Exemple #5
0
 public ImportedProjectManager(ProjectRepository projectRepository, CatalogValueRepository catalogValueRepository,
                               PersonRepository personRepository, MetadataRepository metadataRepository, PermissionRepository permissionRepository,
                               ImportedRecordMetadataManager importedRecordMetadataManager, ILogger <ImportedProjectManager> logger)
 {
     m_projectRepository             = projectRepository;
     m_catalogValueRepository        = catalogValueRepository;
     m_personRepository              = personRepository;
     m_metadataRepository            = metadataRepository;
     m_permissionRepository          = permissionRepository;
     m_importedRecordMetadataManager = importedRecordMetadataManager;
     m_logger = logger;
 }
 public SaveNewBookDataWork(ProjectRepository projectRepository, MetadataRepository metadataRepository,
                            ResourceRepository resourceRepository, CatalogValueRepository catalogValueRepository,
                            PersonRepository personRepository, ResourceSessionDirector resourceDirector) : base(projectRepository)
 {
     m_projectRepository      = projectRepository;
     m_metadataRepository     = metadataRepository;
     m_resourceRepository     = resourceRepository;
     m_catalogValueRepository = catalogValueRepository;
     m_personRepository       = personRepository;
     m_nullableProjectId      = resourceDirector.GetSessionInfoValue <long?>(SessionInfo.ProjectId);
     m_bookData = resourceDirector.GetSessionInfoValue <BookData>(SessionInfo.BookData);
     m_message  = resourceDirector.GetSessionInfoValue <string>(SessionInfo.Message);
     m_userId   = resourceDirector.GetSessionInfoValue <int>(SessionInfo.UserId);
 }
Exemple #7
0
 public SaveImportedDataWork(ProjectRepository projectRepository, MetadataRepository metadataRepository,
                             CatalogValueRepository catalogValueRepository, PersonRepository personRepository, PermissionRepository permissionRepository,
                             ImportedRecord importedRecord, int userId, int externalRepositoryId, int bookTypeId, IList <int> roleIds) : base(projectRepository)
 {
     m_projectRepository      = projectRepository;
     m_metadataRepository     = metadataRepository;
     m_catalogValueRepository = catalogValueRepository;
     m_personRepository       = personRepository;
     m_permissionRepository   = permissionRepository;
     m_importedRecord         = importedRecord;
     m_userId = userId;
     m_externalRepositoryId = externalRepositoryId;
     m_bookTypeId           = bookTypeId;
     m_roleIds = roleIds;
 }
Exemple #8
0
        public void Init()
        {
            var mockIoc         = new MockIocContainer(true);
            var serviceProvider = mockIoc.CreateServiceProvider();

            m_mockDataManager                = serviceProvider.GetRequiredService <MockDataManager>();
            m_projectRepository              = serviceProvider.GetRequiredService <ProjectRepository>();
            m_metadataRepository             = serviceProvider.GetRequiredService <MetadataRepository>();
            m_personRepository               = serviceProvider.GetRequiredService <PersonRepository>();
            m_permissionRepository           = serviceProvider.GetRequiredService <PermissionRepository>();
            m_catalogValueRepository         = serviceProvider.GetRequiredService <CatalogValueRepository>();
            m_externalRepositoryRepository   = serviceProvider.GetRequiredService <ExternalRepositoryRepository>();
            m_importedProjectMetadataManager = serviceProvider.GetRequiredService <ImportedProjectMetadataManager>();

            m_importedRecord = new ImportedRecord
            {
                IsNew           = true,
                IsFailed        = false,
                IsDeleted       = false,
                ImportedProject = new ImportedProject
                {
                    Id = "1",
                    ProjectMetadata = new ProjectMetadata
                    {
                        Title         = "Title",
                        PublisherText = "PublisherText",
                        PublishDate   = "PublishDate",
                        PublishPlace  = "PublishPlace",
                    },
                    Authors = new HashSet <Author> {
                        new Author("Jan", "Hus")
                    },
                    Keywords = new List <string> {
                        "Keyword"
                    },
                    LiteraryGenres = new List <string> {
                        "LiteraryGenre"
                    }
                },
                ExternalId = "Ext1"
            };
        }
Exemple #9
0
 public CreateOrUpdateKeywordWork(CatalogValueRepository catalogValueRepository, int?keywordId, string name) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_keywordId = keywordId;
     m_name      = name;
 }
Exemple #10
0
 public DeleteTermWork(CatalogValueRepository catalogValueRepository, int termId) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_termId = termId;
 }
Exemple #11
0
 public UpdateKeywordsSubtask(ProjectRepository projectRepository, CatalogValueRepository catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_projectRepository      = projectRepository;
 }
Exemple #12
0
 public CatalogValueManager(CatalogValueRepository catalogValueRepository, IMapper mapper)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_mapper = mapper;
 }
Exemple #13
0
 public CreateOrUpdateLiteraryGenreWork(CatalogValueRepository catalogValueRepository, int?genreId, string name) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_genreId = genreId;
     m_name    = name;
 }
 public CreateOrUpdateTermWork(CatalogValueRepository catalogValueRepository, int?termId, TermContract data) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_termId = termId;
     m_data   = data;
 }
Exemple #15
0
 public UpdateLiteraryKindsSubtask(CatalogValueRepository catalogValueRepository, MetadataRepository metadataRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_metadataRepository     = metadataRepository;
 }
 public DeleteCatalogValueWork(CatalogValueRepository catalogValueRepository, int itemId) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_itemId = itemId;
 }
Exemple #17
0
 public CreateOrUpdateLiteraryOriginalWork(CatalogValueRepository catalogValueRepository, int?originalId, string name) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_originalId             = originalId;
     m_name = name;
 }
 public CreateOrUpdateLiteraryKindWork(CatalogValueRepository catalogValueRepository, int?kindId, string name) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_kindId = kindId;
     m_name   = name;
 }