Example #1
0
 public TopicService(
     IConfiguration configuration,
     ContentDbContext contentContext,
     StatisticsDbContext statisticsContext,
     IPersistenceHelper <ContentDbContext> persistenceHelper,
     IMapper mapper,
     IUserService userService,
     IReleaseSubjectRepository releaseSubjectRepository,
     IReleaseDataFileService releaseDataFileService,
     IReleaseFileService releaseFileService,
     IPublishingService publishingService,
     IMethodologyService methodologyService,
     IBlobCacheService cacheService)
 {
     _contentContext           = contentContext;
     _statisticsContext        = statisticsContext;
     _persistenceHelper        = persistenceHelper;
     _mapper                   = mapper;
     _userService              = userService;
     _releaseSubjectRepository = releaseSubjectRepository;
     _releaseDataFileService   = releaseDataFileService;
     _releaseFileService       = releaseFileService;
     _publishingService        = publishingService;
     _methodologyService       = methodologyService;
     _cacheService             = cacheService;
     _topicDeletionAllowed     = configuration.GetValue <bool>("enableThemeDeletion");
 }
Example #2
0
 public ReleaseService(
     ContentDbContext context,
     IMapper mapper,
     IPersistenceHelper <ContentDbContext> persistenceHelper,
     IUserService userService,
     IReleaseRepository repository,
     IReleaseFileRepository releaseFileRepository,
     ISubjectRepository subjectRepository,
     IReleaseDataFileService releaseDataFileService,
     IReleaseFileService releaseFileService,
     IDataImportService dataImportService,
     IFootnoteService footnoteService,
     StatisticsDbContext statisticsDbContext,
     IDataBlockService dataBlockService,
     IReleaseSubjectRepository releaseSubjectRepository,
     IGuidGenerator guidGenerator,
     IBlobCacheService cacheService)
 {
     _context                  = context;
     _mapper                   = mapper;
     _persistenceHelper        = persistenceHelper;
     _userService              = userService;
     _repository               = repository;
     _releaseFileRepository    = releaseFileRepository;
     _subjectRepository        = subjectRepository;
     _releaseDataFileService   = releaseDataFileService;
     _releaseFileService       = releaseFileService;
     _dataImportService        = dataImportService;
     _footnoteService          = footnoteService;
     _statisticsDbContext      = statisticsDbContext;
     _dataBlockService         = dataBlockService;
     _releaseSubjectRepository = releaseSubjectRepository;
     _guidGenerator            = guidGenerator;
     _cacheService             = cacheService;
 }
Example #3
0
 public BooksService(
     IApiService apiService,
     IBlobCacheService blobCacheService)
 {
     _apiService       = apiService;
     _blobCacheService = blobCacheService;
 }
Example #4
0
 public ContentService(IBlobStorageService publicBlobStorageService,
                       IBlobCacheService blobCacheService,
                       IFastTrackService fastTrackService,
                       IReleaseService releaseService,
                       IPublicationService publicationService)
 {
     _publicBlobStorageService = publicBlobStorageService;
     _blobCacheService         = blobCacheService;
     _fastTrackService         = fastTrackService;
     _releaseService           = releaseService;
     _publicationService       = publicationService;
 }
 public LegacyReleaseService(
     ContentDbContext context,
     IMapper mapper,
     IUserService userService,
     IPersistenceHelper <ContentDbContext> persistenceHelper,
     IBlobCacheService publicBlobCacheService)
 {
     _context                = context;
     _mapper                 = mapper;
     _userService            = userService;
     _persistenceHelper      = persistenceHelper;
     _publicBlobCacheService = publicBlobCacheService;
 }
Example #6
0
 private LegacyReleaseService BuildLegacyReleaseService(
     ContentDbContext context,
     IMapper mapper           = null,
     IUserService userService = null,
     IBlobCacheService publicBlobCacheService = null)
 {
     return(new LegacyReleaseService(
                context,
                mapper ?? AdminMapper(),
                userService ?? AlwaysTrueUserService().Object,
                new PersistenceHelper <ContentDbContext>(context),
                publicBlobCacheService ?? Mock.Of <IBlobCacheService>()
                ));
 }
Example #7
0
 public PublishReleaseContentFunction(
     ContentDbContext contentDbContext,
     IBlobCacheService blobCacheService,
     IContentService contentService,
     INotificationsService notificationsService,
     IReleaseService releaseService,
     IReleasePublishingStatusService releasePublishingStatusService)
 {
     _contentDbContext               = contentDbContext;
     _blobCacheService               = blobCacheService;
     _contentService                 = contentService;
     _notificationsService           = notificationsService;
     _releaseService                 = releaseService;
     _releasePublishingStatusService = releasePublishingStatusService;
 }
Example #8
0
 public PublicationService(
     ContentDbContext context,
     IMapper mapper,
     IPersistenceHelper <ContentDbContext> persistenceHelper,
     IUserService userService,
     IPublicationRepository publicationRepository,
     IMethodologyVersionRepository methodologyVersionRepository,
     IBlobCacheService publicBlobCacheService)
 {
     _context                      = context;
     _mapper                       = mapper;
     _persistenceHelper            = persistenceHelper;
     _userService                  = userService;
     _publicationRepository        = publicationRepository;
     _methodologyVersionRepository = methodologyVersionRepository;
     _publicBlobCacheService       = publicBlobCacheService;
 }
Example #9
0
 public DataBlockService(ContentDbContext context,
                         IPersistenceHelper <ContentDbContext> persistenceHelper,
                         IReleaseFileService releaseFileService,
                         IReleaseContentBlockRepository releaseContentBlockRepository,
                         IUserService userService,
                         IMapper mapper,
                         IBlobCacheService cacheService,
                         ICacheKeyService cacheKeyService)
 {
     _context                       = context;
     _persistenceHelper             = persistenceHelper;
     _releaseFileService            = releaseFileService;
     _releaseContentBlockRepository = releaseContentBlockRepository;
     _userService                   = userService;
     _mapper          = mapper;
     _cacheService    = cacheService;
     _cacheKeyService = cacheKeyService;
 }
Example #10
0
 public PublishingService(
     string publicStorageConnectionString,
     IBlobStorageService privateBlobStorageService,
     IBlobStorageService publicBlobStorageService,
     IBlobCacheService publicBlobCacheService,
     IMethodologyService methodologyService,
     IPublicationService publicationService,
     IReleaseService releaseService,
     ILogger <PublishingService> logger)
 {
     _publicStorageConnectionString = publicStorageConnectionString;
     _privateBlobStorageService     = privateBlobStorageService;
     _publicBlobStorageService      = publicBlobStorageService;
     _publicBlobCacheService        = publicBlobCacheService;
     _methodologyService            = methodologyService;
     _publicationService            = publicationService;
     _releaseService = releaseService;
     _logger         = logger;
 }
Example #11
0
 public MethodologyApprovalService(
     IPersistenceHelper <ContentDbContext> persistenceHelper,
     ContentDbContext context,
     IBlobCacheService publicBlobCacheService,
     IMethodologyContentService methodologyContentService,
     IMethodologyFileRepository methodologyFileRepository,
     IMethodologyVersionRepository methodologyVersionRepository,
     IMethodologyImageService methodologyImageService,
     IPublishingService publishingService,
     IUserService userService)
 {
     _persistenceHelper            = persistenceHelper;
     _context                      = context;
     _publicBlobCacheService       = publicBlobCacheService;
     _methodologyContentService    = methodologyContentService;
     _methodologyFileRepository    = methodologyFileRepository;
     _methodologyVersionRepository = methodologyVersionRepository;
     _methodologyImageService      = methodologyImageService;
     _publishingService            = publishingService;
     _userService                  = userService;
 }