public AdvisoryIngestor( IPackageVulnerabilitiesManagementService packageVulnerabilityService, IGitHubVersionRangeParser gitHubVersionRangeParser) { _packageVulnerabilityService = packageVulnerabilityService ?? throw new ArgumentNullException(nameof(packageVulnerabilityService)); _gitHubVersionRangeParser = gitHubVersionRangeParser ?? throw new ArgumentNullException(nameof(gitHubVersionRangeParser)); }
public PackageUploadService( IPackageService packageService, IPackageFileService packageFileService, IEntitiesContext entitiesContext, IReservedNamespaceService reservedNamespaceService, IValidationService validationService, ICoreLicenseFileService coreLicenseFileService, ICoreReadmeFileService coreReadmeFileService, IDiagnosticsService diagnosticsService, IPackageVulnerabilitiesManagementService vulnerabilityService, IPackageMetadataValidationService metadataValidationService) { _packageService = packageService ?? throw new ArgumentNullException(nameof(packageService)); _packageFileService = packageFileService ?? throw new ArgumentNullException(nameof(packageFileService)); _entitiesContext = entitiesContext ?? throw new ArgumentNullException(nameof(entitiesContext)); _reservedNamespaceService = reservedNamespaceService ?? throw new ArgumentNullException(nameof(reservedNamespaceService)); _validationService = validationService ?? throw new ArgumentNullException(nameof(validationService)); _coreLicenseFileService = coreLicenseFileService ?? throw new ArgumentNullException(nameof(coreLicenseFileService)); _coreReadmeFileService = coreReadmeFileService ?? throw new ArgumentNullException(nameof(coreReadmeFileService)); if (diagnosticsService == null) { throw new ArgumentNullException(nameof(diagnosticsService)); } _vulnerabilityService = vulnerabilityService ?? throw new ArgumentNullException(nameof(vulnerabilityService)); _metadataValidationService = metadataValidationService ?? throw new ArgumentNullException(nameof(metadataValidationService)); }