Beispiel #1
0
        public AccountsController(
            AuthenticationService authenticationService,
            IPackageService packageService,
            IMessageService messageService,
            IUserService userService,
            ITelemetryService telemetryService,
            ISecurityPolicyService securityPolicyService,
            ICertificateService certificateService,
            IContentObjectService contentObjectService,
            IMessageServiceConfiguration messageServiceConfiguration,
            IDeleteAccountService deleteAccountService,
            IIconUrlProvider iconUrlProvider,
            IGravatarProxyService gravatarProxy)
        {
            AuthenticationService       = authenticationService ?? throw new ArgumentNullException(nameof(authenticationService));
            PackageService              = packageService ?? throw new ArgumentNullException(nameof(packageService));
            MessageService              = messageService ?? throw new ArgumentNullException(nameof(messageService));
            UserService                 = userService ?? throw new ArgumentNullException(nameof(userService));
            TelemetryService            = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService));
            SecurityPolicyService       = securityPolicyService ?? throw new ArgumentNullException(nameof(securityPolicyService));
            CertificateService          = certificateService ?? throw new ArgumentNullException(nameof(certificateService));
            ContentObjectService        = contentObjectService ?? throw new ArgumentNullException(nameof(contentObjectService));
            MessageServiceConfiguration = messageServiceConfiguration ?? throw new ArgumentNullException(nameof(messageServiceConfiguration));
            DeleteAccountService        = deleteAccountService ?? throw new ArgumentNullException(nameof(deleteAccountService));
            IconUrlProvider             = iconUrlProvider ?? throw new ArgumentNullException(nameof(iconUrlProvider));
            GravatarProxy               = gravatarProxy ?? throw new ArgumentNullException(nameof(gravatarProxy));

            _deleteAccountListPackageItemViewModelFactory = new DeleteAccountListPackageItemViewModelFactory(PackageService, IconUrlProvider);
        }
Beispiel #2
0
 public OrganizationsController(
     AuthenticationService authService,
     IMessageService messageService,
     IUserService userService,
     ITelemetryService telemetryService,
     ISecurityPolicyService securityPolicyService,
     ICertificateService certificateService,
     IPackageService packageService,
     IDeleteAccountService deleteAccountService,
     IContentObjectService contentObjectService,
     IMessageServiceConfiguration messageServiceConfiguration,
     IIconUrlProvider iconUrlProvider)
     : base(
         authService,
         packageService,
         messageService,
         userService,
         telemetryService,
         securityPolicyService,
         certificateService,
         contentObjectService,
         messageServiceConfiguration,
         deleteAccountService,
         iconUrlProvider)
 {
 }
Beispiel #3
0
 public OrganizationsController(
     AuthenticationService authService,
     IMessageService messageService,
     IUserService userService,
     ITelemetryService telemetryService,
     ISecurityPolicyService securityPolicyService,
     ICertificateService certificateService,
     IPackageService packageService,
     IDeleteAccountService deleteAccountService,
     IContentObjectService contentObjectService,
     IMessageServiceConfiguration messageServiceConfiguration,
     IIconUrlProvider iconUrlProvider,
     IFeatureFlagService features,
     IGravatarProxyService gravatarProxy)
     : base(
         authService,
         packageService,
         messageService,
         userService,
         telemetryService,
         securityPolicyService,
         certificateService,
         contentObjectService,
         messageServiceConfiguration,
         deleteAccountService,
         iconUrlProvider,
         gravatarProxy)
 {
     _features = features ?? throw new ArgumentNullException(nameof(features));
 }
 public ListPackageItemRequiredSignerViewModelFactory(
     ISecurityPolicyService securityPolicyService,
     IIconUrlProvider iconUrlProvider,
     IPackageVulnerabilitiesService packageVulnerabilitiesService)
 {
     _listPackageItemViewModelFactory = new ListPackageItemViewModelFactory(iconUrlProvider);
     _securityPolicyService           = securityPolicyService ?? throw new ArgumentNullException(nameof(securityPolicyService));
     _packageVulnerabilitiesService   = packageVulnerabilitiesService ?? throw new ArgumentNullException(nameof(packageVulnerabilitiesService));
 }
Beispiel #5
0
        public SearchSideBySideService(
            ISearchService oldSearchService,
            ISearchService newSearchService,
            ITelemetryService telemetryService,
            IMessageService messageService,
            IMessageServiceConfiguration messageServiceConfiguration,
            IIconUrlProvider iconUrlProvider)
        {
            _oldSearchService            = oldSearchService ?? throw new ArgumentNullException(nameof(oldSearchService));
            _newSearchService            = newSearchService ?? throw new ArgumentNullException(nameof(newSearchService));
            _telemetryService            = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService));
            _messageService              = messageService ?? throw new ArgumentNullException(nameof(messageService));
            _messageServiceConfiguration = messageServiceConfiguration ?? throw new ArgumentNullException(nameof(messageServiceConfiguration));
            _iconUrlProvider             = iconUrlProvider ?? throw new ArgumentNullException(nameof(iconUrlProvider));

            _listPackageItemViewModelFactory = new ListPackageItemViewModelFactory(_iconUrlProvider);
        }
        public UsersController(
            IUserService userService,
            IPackageService packageService,
            IPackageOwnerRequestService packageOwnerRequestService,
            IMessageService messageService,
            IAppConfiguration config,
            AuthenticationService authService,
            ICredentialBuilder credentialBuilder,
            IDeleteAccountService deleteAccountService,
            ISupportRequestService supportRequestService,
            ITelemetryService telemetryService,
            ISecurityPolicyService securityPolicyService,
            ICertificateService certificateService,
            IContentObjectService contentObjectService,
            IFeatureFlagService featureFlagService,
            IMessageServiceConfiguration messageServiceConfiguration,
            IIconUrlProvider iconUrlProvider)
            : base(
                authService,
                packageService,
                messageService,
                userService,
                telemetryService,
                securityPolicyService,
                certificateService,
                contentObjectService,
                messageServiceConfiguration,
                deleteAccountService,
                iconUrlProvider)
        {
            _packageOwnerRequestService = packageOwnerRequestService ?? throw new ArgumentNullException(nameof(packageOwnerRequestService));
            _config                = config ?? throw new ArgumentNullException(nameof(config));
            _credentialBuilder     = credentialBuilder ?? throw new ArgumentNullException(nameof(credentialBuilder));
            _supportRequestService = supportRequestService ?? throw new ArgumentNullException(nameof(supportRequestService));
            _featureFlagService    = featureFlagService ?? throw new ArgumentNullException(nameof(featureFlagService));

            _listPackageItemRequiredSignerViewModelFactory = new ListPackageItemRequiredSignerViewModelFactory(securityPolicyService, iconUrlProvider);
            _listPackageItemViewModelFactory = new ListPackageItemViewModelFactory(iconUrlProvider);
        }
Beispiel #7
0
 public DeletePackageViewModelFactory(IIconUrlProvider iconUrlProvider)
 {
     _displayPackageViewModelFactory = new DisplayPackageViewModelFactory(iconUrlProvider);
 }
 public DisplayPackageViewModelFactory(IIconUrlProvider iconUrlProvider)
 {
     _listPackageItemViewModelFactory = new ListPackageItemViewModelFactory(iconUrlProvider);
 }
Beispiel #9
0
 public ListPackageItemViewModelFactory(IIconUrlProvider iconUrlProvider)
 {
     _packageViewModelFactory = new PackageViewModelFactory(iconUrlProvider);
 }
Beispiel #10
0
 public PackageViewModelFactory(IIconUrlProvider iconUrlProvider)
 {
     _iconUrlProvider = iconUrlProvider ?? throw new ArgumentNullException(nameof(iconUrlProvider));
 }
Beispiel #11
0
 public DisplayLicenseViewModelFactory(IIconUrlProvider iconUrlProvider)
 {
     _packageViewModelFactory = new PackageViewModelFactory(iconUrlProvider);
 }
 public DeleteAccountListPackageItemViewModelFactory(IPackageService packageService, IIconUrlProvider iconUrlProvider)
 {
     _listPackageItemViewModelFactory = new ListPackageItemViewModelFactory(iconUrlProvider);
     _packageService = packageService ?? throw new ArgumentNullException(nameof(packageService));
 }
Beispiel #13
0
 public LuceneDocumentFactory(IIconUrlProvider iconUrlProvider)
 {
     _iconUrlProvider = iconUrlProvider ?? throw new ArgumentNullException(nameof(iconUrlProvider));
 }
 private static PackageViewModel CreatePackageViewModel(Package package, IIconUrlProvider iconUrlProvider = null)
 {
     return(new PackageViewModelFactory(iconUrlProvider ?? Mock.Of <IIconUrlProvider>()).Create(package));
 }
 public DisplayLicenseViewModelFactory(IIconUrlProvider iconUrlProvider, IMarkdownService markdownService, IFeatureFlagService featureFlagService)
 {
     _packageViewModelFactory = new PackageViewModelFactory(iconUrlProvider);
     _markdownService         = markdownService;
     _featureFlagService      = featureFlagService;
 }