public PackagesController(
     IPackageService packageService,
     IUploadFileService uploadFileService,
     IMessageService messageService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
     IPackageFileService packageFileService,
     IEntitiesContext entitiesContext,
     IAppConfiguration config,
     IIndexingService indexingService,
     ICacheService cacheService,
     EditPackageService editPackageService,
     IPackageDeleteService packageDeleteService,
     ISupportRequestService supportRequestService,
     AuditingService auditingService)
 {
     _packageService = packageService;
     _uploadFileService = uploadFileService;
     _messageService = messageService;
     _searchService = searchService;
     _autoCuratedPackageCmd = autoCuratedPackageCmd;
     _packageFileService = packageFileService;
     _entitiesContext = entitiesContext;
     _config = config;
     _indexingService = indexingService;
     _cacheService = cacheService;
     _editPackageService = editPackageService;
     _packageDeleteService = packageDeleteService;
     _supportRequestService = supportRequestService;
     _auditingService = auditingService;
 }
 public EditPackageService(
     IEntitiesContext entitiesContext,
     IPackageNamingConflictValidator packageNamingConflictValidator)
 {
     EntitiesContext = entitiesContext;
     PackageNamingConflictValidator = packageNamingConflictValidator;
 }
 public CuratedPackagesController(
     ICuratedFeedService curatedFeedService,
     IEntitiesContext entitiesContext)
 {
     this.CuratedFeedService = curatedFeedService;
     this.EntitiesContext = entitiesContext;
 }
 public ApiController(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IPackageFileService packageFileService,
     IUserService userService,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IContentService contentService,
     IIndexingService indexingService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratePackage,
     IStatusService statusService,
     IAppConfiguration config)
 {
     EntitiesContext = entitiesContext;
     PackageService = packageService;
     PackageFileService = packageFileService;
     UserService = userService;
     NugetExeDownloaderService = nugetExeDownloaderService;
     ContentService = contentService;
     StatisticsService = null;
     IndexingService = indexingService;
     SearchService = searchService;
     AutoCuratePackage = autoCuratePackage;
     StatusService = statusService;
     _config = config;
 }
 public PackagesController(
     IPackageService packageService,
     IUploadFileService uploadFileService,
     IUserService userService,
     IMessageService messageService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IPackageFileService packageFileService,
     IEntitiesContext entitiesContext,
     IAppConfiguration config,
     IIndexingService indexingService,
     ICacheService cacheService)
 {
     _packageService = packageService;
     _uploadFileService = uploadFileService;
     _userService = userService;
     _messageService = messageService;
     _searchService = searchService;
     _autoCuratedPackageCmd = autoCuratedPackageCmd;
     _nugetExeDownloaderService = nugetExeDownloaderService;
     _packageFileService = packageFileService;
     _entitiesContext = entitiesContext;
     _config = config;
     _indexingService = indexingService;
     _cacheService = cacheService;
 }
예제 #6
0
 public StatusService(
     IEntitiesContext entities,
     IFileStorageService fileStorageService)
 {
     _entities = entities;
     _fileStorageService = fileStorageService;
 }
예제 #7
0
 public UnitOfWork(
         IEntitiesContext context
     )
 {
     if (context == null)
         throw new ArgumentNullException("context");
     _context = context;
 }
예제 #8
0
 public StatusService(
     IEntitiesContext entities,
     IFileStorageService fileStorageService,
     IAppConfiguration config)
 {
     _entities = entities;
     _fileStorageService = fileStorageService;
     _config = config;
 }
 public CuratedPackagesController(
     ICuratedFeedService curatedFeedService,
     IEntitiesContext entitiesContext,
     IAutomaticallyCuratePackageCommand autoCuratedPackageCmd)
 {
     this.CuratedFeedService = curatedFeedService;
     this.EntitiesContext = entitiesContext;
     this.AutoCuratedPackageCmd = autoCuratedPackageCmd;
 }
 public ReflowPackageService(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IPackageFileService packageFileService)
 {
     _entitiesContext = entitiesContext;
     _packageService = packageService;
     _packageFileService = packageFileService;
 }
예제 #11
0
        public AuthenticationService(
            IEntitiesContext entities, IAppConfiguration config, IDiagnosticsService diagnostics,
            AuditingService auditing, IEnumerable<Authenticator> providers, ICredentialBuilder credentialBuilder,
            ICredentialValidator credentialValidator, IDateTimeProvider dateTimeProvider)
        {
            if (entities == null)
            {
                throw new ArgumentNullException(nameof(entities));
            }

            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            if (diagnostics == null)
            {
                throw new ArgumentNullException(nameof(diagnostics));
            }

            if (auditing == null)
            {
                throw new ArgumentNullException(nameof(auditing));
            }

            if (providers == null)
            {
                throw new ArgumentNullException(nameof(providers));
            }

            if (credentialBuilder == null)
            {
                throw new ArgumentNullException(nameof(credentialBuilder));
            }

            if (credentialValidator == null)
            {
                throw new ArgumentNullException(nameof(credentialValidator));
            }

            if (dateTimeProvider == null)
            {
                throw new ArgumentNullException(nameof(dateTimeProvider));
            }

            InitCredentialFormatters();

            Entities = entities;
            _config = config;
            Auditing = auditing;
            _trace = diagnostics.SafeGetSource("AuthenticationService");
            Authenticators = providers.ToDictionary(p => p.Name, StringComparer.OrdinalIgnoreCase);
            _credentialBuilder = credentialBuilder;
            _credentialValidator = credentialValidator;
            _dateTimeProvider = dateTimeProvider;
        }
 public ODataV2CuratedFeedController(
     IEntitiesContext entities,
     IGalleryConfigurationService configurationService,
     ISearchService searchService,
     ICuratedFeedService curatedFeedService)
     : base(configurationService)
 {
     _entities = entities;
     _configurationService = configurationService;
     _searchService = searchService;
     _curatedFeedService = curatedFeedService;
 }
예제 #13
0
 public ApiController(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IPackageFileService packageFileService,
     IUserService userService,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IContentService contentService,
     IIndexingService indexingService,
     IStatisticsService statisticsService)
     : this(entitiesContext, packageService, packageFileService, userService, nugetExeDownloaderService, contentService, indexingService)
 {
     StatisticsService = statisticsService;
 }
예제 #14
0
        public HMUnitOfWork(IEntitiesContext dbContext)
        {
            _dbContext = dbContext;

            _employeeRepository = new EntityRepository<Employee>(dbContext);
            _holidayInformationRepository = new EntityRepository<HolidayInformation>(dbContext);
            _holidayPeriodRepository = new EntityRepository<HolidayPeriod>(dbContext);
            _legalHolidayRepository = new EntityRepository<LegalHoliday>(dbContext);
            _purposeRepository = new EntityRepository<Purpose>(dbContext);
            _requestRepository = new EntityRepository<Request>(dbContext);
            _roleRepository = new EntityRepository<Role>(dbContext);
            _teamRepository = new EntityRepository<Team>(dbContext);
        }
예제 #15
0
 public ProjectsController(
     IProjectService projectService,
     IMessageService messageService,
     IEntitiesContext entitiesContext,
     IAppConfiguration config,
     ICacheService cacheService) 
 {
     _projectService = projectService;
     _messageService = messageService;
     _entitiesContext = entitiesContext;
     _config = config;
     _cacheService = cacheService;
 }
        public AuthenticationService(IEntitiesContext entities, IAppConfiguration config, IDiagnosticsService diagnostics, AuditingService auditing, IEnumerable<Authenticator> providers)
        {
            _credentialFormatters = new Dictionary<string, Func<string, string>>(StringComparer.OrdinalIgnoreCase) {
                { "password", _ => Strings.CredentialType_Password },
                { "apikey", _ => Strings.CredentialType_ApiKey },
                { "external", FormatExternalCredentialType }
            };

            Entities = entities;
            Config = config;
            Auditing = auditing;
            Trace = diagnostics.SafeGetSource("AuthenticationService");
            Authenticators = providers.ToDictionary(p => p.Name, StringComparer.OrdinalIgnoreCase);
        }
예제 #17
0
 public ApiController(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IPackageFileService packageFileService,
     IUserService userService,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IContentService contentService,
     IIndexingService indexingService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratePackage,
     IStatisticsService statisticsService)
     : this(entitiesContext, packageService, packageFileService, userService, nugetExeDownloaderService, contentService, indexingService, searchService, autoCuratePackage)
 {
     StatisticsService = statisticsService;
 }
 public PackageDeleteService(
     IEntityRepository<Package> packageRepository,
     IEntityRepository<PackageDelete> packageDeletesRepository,
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IIndexingService indexingService,
     IPackageFileService packageFileService,
     AuditingService auditingService)
 {
     _packageRepository = packageRepository;
     _packageDeletesRepository = packageDeletesRepository;
     _entitiesContext = entitiesContext;
     _packageService = packageService;
     _indexingService = indexingService;
     _packageFileService = packageFileService;
     _auditingService = auditingService;
 }
예제 #19
0
 public ApiController(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IPackageFileService packageFileService,
     IUserService userService,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IContentService contentService,
     IIndexingService indexingService)
 {
     EntitiesContext = entitiesContext;
     PackageService = packageService;
     PackageFileService = packageFileService;
     UserService = userService;
     NugetExeDownloaderService = nugetExeDownloaderService;
     ContentService = contentService;
     StatisticsService = null;
     IndexingService = indexingService;
 }
 public AutomaticallyCuratePackageCommand(IEntitiesContext entities)
     : base(entities)
 {
 }
 public CuratedFeedByKeyQuery(IEntitiesContext entities)
 {
     _entities = entities;
 }
예제 #22
0
 public ProductRepository(IEntitiesContext context)
     : base(context)
 {
 }
 public void Constructor_ThrowsArgumentNullIfArgumentMissing(
     IEntitiesContext entities, IAuditingService auditing, IDiagnosticsService diagnostics, IAppConfiguration configuration)
 {
     Assert.Throws <ArgumentNullException>(() => new SecurityPolicyService(entities, auditing, diagnostics, configuration));
 }
 public AutomaticallyCuratePackageCommand(IEntitiesContext entities)
     : base(entities)
 {
 }
 public PackageVersionsQuery(IEntitiesContext entities)
 {
     _entities = entities;
 }
 public PackageRegistrationByKeyQuery(IEntitiesContext entities)
 {
     _entities = entities;
 }
예제 #27
0
 public AutoCompleteDatabasePackageVersionsQuery(IEntitiesContext entities)
     : base(entities)
 {
 }
예제 #28
0
 public UnitOfWork(IEntitiesContext context)
 {
     _repositories = new Dictionary <Type, object>();
     _disposed     = false;
     _context      = context;
 }
 public DeleteCuratedPackageCommand(IEntitiesContext entities)
     : base(entities)
 {
 }
예제 #30
0
 public LuceneIndexingService(IEntitiesContext entitiesContext)
 {
     _entitiesContext = (DbContext)entitiesContext;
 }
        public static void VerifyCommitChanges(this IEntitiesContext self)
        {
            FakeEntitiesContext context = Assert.IsAssignableFrom <FakeEntitiesContext>(self);

            context.VerifyCommitChanges();
        }
 public AutomaticallyCuratePackageCommand(IEnumerable<IAutomaticPackageCurator> curators, IEntitiesContext entities)
     : base(entities)
 {
     _curators = curators.ToList();
 }
예제 #33
0
 public iTemoUnitOfWork(IEntitiesContext context)
 {
     _context = context;
 }
 public UserByUsernameQuery(IEntitiesContext entities)
 {
     _entities = entities;
 }
 public CuratedFeedByNameQuery(IEntitiesContext entities)
 {
     _entities = entities;
 }
예제 #36
0
 public PackageRegistrationByIdQuery(IEntitiesContext entities)
 {
     _entities = entities;
 }
예제 #37
0
 public LuceneIndexingService(IEntitiesContext entitiesContext)
 {
     _entitiesContext = (DbContext)entitiesContext;
 }
 public TestPackageDeleteService(IEntityRepository<Package> packageRepository, IEntityRepository<PackageDelete> packageDeletesRepository, IEntitiesContext entitiesContext, IPackageService packageService, IIndexingService indexingService, IPackageFileService packageFileService, AuditingService auditingService)
     : base(packageRepository, packageDeletesRepository, entitiesContext, packageService, indexingService, packageFileService, auditingService)
 {
 }
예제 #39
0
 public V2CuratedFeed(IEntitiesContext entities, IEntityRepository<Package> repo, IConfiguration configuration, ISearchService searchSvc)
     : base(entities, repo, configuration, searchSvc)
 {
 }
예제 #40
0
 public PackageVersionsQuery(IEntitiesContext entities)
 {
     _entities = entities;
 }
 public ModifyCuratedPackageCommand(IEntitiesContext entities)
     : base(entities)
 {
 }
 public EntityRepository(IEntitiesContext context)
 {
     _context     = context;
     _dbEntitySet = _context.Set <TEntity>();
 }