public StoreLicenseForAllUsersStart(ICheckAllStartupConditions checkAllStartupConditions, IRegistry registry, IInstallationPathProvider installationPathProvider)
     : base(checkAllStartupConditions)
 {
     _registry                 = registry;
     _registryPath             = installationPathProvider.ApplicationRegistryPath;
     SkipStartupConditionCheck = true;
 }
 public InitializeDefaultSettingsStart(ICheckAllStartupConditions checkAllStartupConditions, IIniSettingsLoader iniSettingsLoader, ISettingsProvider settingsProvider, IInstallationPathProvider pathProvider, IDataStorageFactory storageFactory)
     : base(checkAllStartupConditions)
 {
     _iniSettingsLoader = iniSettingsLoader;
     _settingsProvider  = settingsProvider;
     _pathProvider      = pathProvider;
     _storageFactory    = storageFactory;
 }
Exemple #3
0
 public RestorePrinterAppStart(ICheckAllStartupConditions checkAllStartupConditions, IPrinterProvider printerProvider,
                               IUacAssistant uacAssistant, IInstallationPathProvider installationPathProvider,
                               ISharedSettingsLoader sharedSettingsLoader) : base(checkAllStartupConditions)
 {
     _uacAssistant             = uacAssistant;
     _printerProvider          = printerProvider;
     _installationPathProvider = installationPathProvider;
     _sharedSettingsLoader     = sharedSettingsLoader;
     SkipStartupConditionCheck = true;
 }
Exemple #4
0
 public PrintFileStart(ICheckAllStartupConditions startupConditions,
                       IPrintFileHelper printFileHelper,
                       ISettingsManager settingsManager,
                       IStoredParametersManager storedParametersManager)
     : base(startupConditions)
 {
     _printFileHelper         = printFileHelper;
     _settingsManager         = settingsManager;
     _storedParametersManager = storedParametersManager;
 }
Exemple #5
0
        public void SetUp()
        {
            _checkAllStartupConditions = Substitute.For <ICheckAllStartupConditions>();
            _activation       = new Activation();
            _activationHelper = Substitute.For <IActivationHelper>();
            _activationHelper.Activation.Returns(_activation);
            _licenseServerHelper = Substitute.For <ILicenseServerHelper>();
            _licenseChecker      = Substitute.For <ILicenseChecker>();
            _licenseServerHelper.BuildLicenseChecker(RegistryHive.LocalMachine)
            .Returns(_licenseChecker);

            _storeLicenseForAllUsersStart = new StoreLicenseForAllUsersStart(_checkAllStartupConditions, _activationHelper, _licenseServerHelper);
        }
        public MaybePipedApplicationStarter(ISettingsManager settingsManager, IUpdateAssistant updateAssistant,
                                            ICheckAllStartupConditions startupConditions, IThreadManager threadManager,
                                            IPipeServerManager pipeServerManager, IJobInfoQueueManager jobInfoQueueManager, IJobInfoQueue jobInfoQueue,
                                            IStaticPropertiesHack staticPropertiesHack, IPdfCreatorCleanUp cleanUp, ISpooledJobFinder spooledJobFinder)
        {
            StartupConditions    = startupConditions;
            _jobInfoQueue        = jobInfoQueue;
            _cleanUp             = cleanUp;
            _spooledJobFinder    = spooledJobFinder;
            _settingsManager     = settingsManager;
            _updateAssistant     = updateAssistant;
            _threadManager       = threadManager;
            _pipeServerManager   = pipeServerManager;
            _jobInfoQueueManager = jobInfoQueueManager;

            staticPropertiesHack.SetStaticProperties();
        }
        public void SetUp()
        {
            _checkAllStartupConditions = Substitute.For <ICheckAllStartupConditions>();

            _licenseServerString = "LSA";
            _licenseKey          = "MY-LICENSE-KEY";

            _registry = Substitute.For <IRegistry>();

            var pathProvider = Substitute.For <IInstallationPathProvider>();

            pathProvider.ApplicationRegistryPath.Returns(RegistryPath);

            _storeLicenseForAllUsersStart = new StoreLicenseForAllUsersStart(_checkAllStartupConditions, _registry, pathProvider);
            _storeLicenseForAllUsersStart.LicenseServerCode = _licenseServerString;
            _storeLicenseForAllUsersStart.LicenseKey        = _licenseKey;
        }
Exemple #8
0
        public MaybePipedApplicationStarter(ISettingsManager settingsManager, IUpdateHelper updateHelper,
                                            ICheckAllStartupConditions startupConditions, IThreadManager threadManager,
                                            IPipeServerManager pipeServerManager, IJobInfoQueueManager jobInfoQueueManager, IJobInfoQueue jobInfoQueue,
                                            IStaticPropertiesHack staticPropertiesHack, IPdfCreatorFolderCleanUp folderCleanUp, ISpooledJobFinder spooledJobFinder,
                                            IJobHistoryActiveRecord jobHistoryActiveRecord)
        {
            StartupConditions       = startupConditions;
            _jobInfoQueue           = jobInfoQueue;
            _folderCleanUp          = folderCleanUp;
            _spooledJobFinder       = spooledJobFinder;
            _jobHistoryActiveRecord = jobHistoryActiveRecord;
            _settingsManager        = settingsManager;
            _updateHelper           = updateHelper;
            _threadManager          = threadManager;
            _pipeServerManager      = pipeServerManager;
            _jobInfoQueueManager    = jobInfoQueueManager;

            staticPropertiesHack.SetStaticProperties();
        }
Exemple #9
0
 protected AppStartBase(ICheckAllStartupConditions checkAllStartupConditions)
 {
     _checkAllStartupConditions = checkAllStartupConditions;
 }
 public InitializeSettingsStart(ICheckAllStartupConditions checkAllStartupConditions, ISettingsManager settingsManager)
     : base(checkAllStartupConditions)
 {
     _settingsManager = settingsManager;
 }
 public StoreLicenseForAllUsersStart(ICheckAllStartupConditions checkAllStartupConditions, IActivationHelper activationHelper, ILicenseServerHelper licenseServerHelper)
     : base(checkAllStartupConditions)
 {
     _activationHelper    = activationHelper;
     _licenseServerHelper = licenseServerHelper;
 }
Exemple #12
0
 public RestorePrinterAppStart(ICheckAllStartupConditions checkAllStartupConditions, IPrinterProvider printerProvider, IUacAssistant uacAssistant, IInstallationPathProvider installationPathProvider) : base(checkAllStartupConditions)
 {
     _uacAssistant             = uacAssistant;
     _printerProvider          = printerProvider;
     _installationPathProvider = installationPathProvider;
 }