예제 #1
0
 public ExcelDocumentProcessor()
 {
     _normalizeData                 = new NormalizeData();
     _dbContext                     = new SketchpackDbContext();
     _categoryRepository            = new CategoryRepository(_dbContext);
     _categoryTranslationRepository = new CategoryTranslationRepository(_dbContext);
     _imageDescriptionRepository    = new ImageDescriptionRepository(_dbContext);
     _imageDictionaryRepository     = new ImageDictionaryRepository(_dbContext);
     _langDictionaryRepository      = new LangDictionaryRepository(_dbContext);
 }
예제 #2
0
 public CategoryService(ICategoryRepository categoryRepository, ICategoriesNewsRepository categoriesNewsRepository, ICategoryTranslationRepository categoryTranslationRepository,
                        IResourceService <SharedResource> sharedResourceService, IResourceService <GhmWebsiteResource> resourceService,
                        IMenuItemRepository menuItemRepository)
 {
     _categoryRepository            = categoryRepository;
     _categoriesNewsRepository      = categoriesNewsRepository;
     _categoryTranslationRepository = categoryTranslationRepository;
     _sharedResourceService         = sharedResourceService;
     _resourceService    = resourceService;
     _menuItemRepository = menuItemRepository;
 }
예제 #3
0
 public NewsService(INewsRepository newsRepository,
                    INewsTranslationRepository newsTranslationRepository,
                    ICategoriesNewsRepository categoriesNewsRepository,
                    IMenuItemRepository menuItemRepository,
                    ICategoryRepository categoryRepository,
                    ICategoryTranslationRepository categoryTranslationRepository,
                    IResourceService <SharedResource> sharedResourceService,
                    IResourceService <GhmWebsiteResource> websiteResourceService,
                    IConfiguration configuration
                    )
 {
     _newsRepository                = newsRepository;
     _newsTranslationRepository     = newsTranslationRepository;
     _categoriesNewsRepository      = categoriesNewsRepository;
     _menuItemRepository            = menuItemRepository;
     _categoryRepository            = categoryRepository;
     _sharedResourceService         = sharedResourceService;
     _websiteResourceService        = websiteResourceService;
     _configuration                 = configuration;
     _categoryTranslationRepository = categoryTranslationRepository;
 }
예제 #4
0
 public CategoryManager(ICategoryTranslationRepository categoryTranslationRepository, ICategoryRepository categoryRepository, IMapper mapper)
 {
     _categoryTranslationRepository = categoryTranslationRepository;
     _categoryRepository            = categoryRepository;
     _mapper = mapper;
 }