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; }
//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; }
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; }
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); }
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; }
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" }; }
public CreateOrUpdateKeywordWork(CatalogValueRepository catalogValueRepository, int?keywordId, string name) : base(catalogValueRepository) { m_catalogValueRepository = catalogValueRepository; m_keywordId = keywordId; m_name = name; }
public DeleteTermWork(CatalogValueRepository catalogValueRepository, int termId) : base(catalogValueRepository) { m_catalogValueRepository = catalogValueRepository; m_termId = termId; }
public UpdateKeywordsSubtask(ProjectRepository projectRepository, CatalogValueRepository catalogValueRepository) { m_catalogValueRepository = catalogValueRepository; m_projectRepository = projectRepository; }
public CatalogValueManager(CatalogValueRepository catalogValueRepository, IMapper mapper) { m_catalogValueRepository = catalogValueRepository; m_mapper = mapper; }
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; }
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; }
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; }