public ThemeController(
     IThemeService themeService,
     IMethodologyService methodologyService)
 {
     _themeService       = themeService;
     _methodologyService = methodologyService;
 }
 public MethodologyController(
     IMethodologyService methodologyService,
     IMethodologyAmendmentService methodologyAmendmentService)
 {
     _methodologyService          = methodologyService;
     _methodologyAmendmentService = methodologyAmendmentService;
 }
Exemple #3
0
 private TopicService SetupTopicService(
     ContentDbContext contentContext       = null,
     StatisticsDbContext statisticsContext = null,
     PersistenceHelper <ContentDbContext> persistenceHelper = null,
     IMapper mapper           = null,
     IUserService userService = null,
     IReleaseSubjectRepository releaseSubjectRepository = null,
     IReleaseDataFileService releaseDataFileService     = null,
     IReleaseFileService releaseFileService             = null,
     IPublishingService publishingService   = null,
     IMethodologyService methodologyService = null)
 {
     return(new TopicService(
                Mock.Of <IConfiguration>(),
                contentContext ?? Mock.Of <ContentDbContext>(),
                statisticsContext ?? Mock.Of <StatisticsDbContext>(),
                persistenceHelper ?? MockUtils.MockPersistenceHelper <ContentDbContext, Topic>(_topic.Id, _topic).Object,
                mapper ?? AdminMapper(),
                userService ?? MockUtils.AlwaysTrueUserService().Object,
                releaseSubjectRepository ?? Mock.Of <IReleaseSubjectRepository>(),
                releaseDataFileService ?? Mock.Of <IReleaseDataFileService>(),
                releaseFileService ?? Mock.Of <IReleaseFileService>(),
                publishingService ?? Mock.Of <IPublishingService>(),
                methodologyService ?? Mock.Of <IMethodologyService>(),
                Mock.Of <IBlobCacheService>()
                ));
 }
Exemple #4
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");
 }
Exemple #5
0
 public MethodologyAmendmentService(
     IPersistenceHelper <ContentDbContext> persistenceHelper,
     IUserService userService,
     IMethodologyService methodologyService,
     ContentDbContext context)
 {
     _persistenceHelper  = persistenceHelper;
     _userService        = userService;
     _methodologyService = methodologyService;
     _context            = context;
 }
 private MethodologyAmendmentService SetupMethodologyAmendmentService(
     IPersistenceHelper <ContentDbContext> contentPersistenceHelper = null,
     IUserService userService = null,
     IMethodologyService methodologyService = null)
 {
     return(new MethodologyAmendmentService(
                contentPersistenceHelper ?? DefaultPersistenceHelperMock().Object,
                userService ?? new Mock <IUserService>().Object,
                methodologyService ?? new Mock <IMethodologyService>().Object,
                InMemoryApplicationDbContext()
                ));
 }
Exemple #7
0
 public ContentService(IFastTrackService fastTrackService,
                       IDownloadService downloadService,
                       IFileStorageService fileStorageService,
                       IMethodologyService methodologyService,
                       IReleaseService releaseService,
                       IPublicationService publicationService)
 {
     _fastTrackService   = fastTrackService;
     _fileStorageService = fileStorageService;
     _releaseService     = releaseService;
     _publicationService = publicationService;
     _downloadService    = downloadService;
     _methodologyService = methodologyService;
 }
        public ReleaseService(
            IPersistenceHelper <ContentDbContext> persistenceHelper,
            IFileStorageService fileStorageService,
            IMethodologyService methodologyService,
            IUserService userService,
            IPublicationService publicationService,
            IMapper mapper)

        {
            _persistenceHelper  = persistenceHelper;
            _fileStorageService = fileStorageService;
            _methodologyService = methodologyService;
            _userService        = userService;
            _publicationService = publicationService;
            _mapper             = mapper;
        }
Exemple #9
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;
 }
Exemple #10
0
 public MethodologyController(IMethodologyService methodologyService)
 {
     _methodologyService = methodologyService;
 }