Пример #1
0
 public SettingsLoader(ITranslationHelper translationHelper, ISettingsMover settingsMover, IInstallationPathProvider installationPathProvider, IPrinterHelper printerHelper)
 {
     _settingsMover            = settingsMover;
     _installationPathProvider = installationPathProvider;
     _printerHelper            = printerHelper;
     _translationHelper        = translationHelper;
 }
Пример #2
0
 public SettingsLoader(ILanguageProvider languageProvider, ISettingsMover settingsMover, IInstallationPathProvider installationPathProvider, IPrinterHelper printerHelper)
 {
     _languageProvider         = languageProvider;
     _settingsMover            = settingsMover;
     _installationPathProvider = installationPathProvider;
     _printerHelper            = printerHelper;
 }
 public InitializeDefaultSettingsStart(ICheckAllStartupConditions checkAllStartupConditions, IIniSettingsLoader iniSettingsLoader, ISettingsProvider settingsProvider, IInstallationPathProvider pathProvider, IDataStorageFactory storageFactory)
     : base(checkAllStartupConditions)
 {
     _iniSettingsLoader = iniSettingsLoader;
     _settingsProvider  = settingsProvider;
     _pathProvider      = pathProvider;
     _storageFactory    = storageFactory;
 }
Пример #4
0
 public SettingsManager(SettingsProvider settingsProvider, ISettingsLoader loader, IInstallationPathProvider installationPathProvider,
                        IVersionHelper versionHelper)
 {
     _settingsProvider         = settingsProvider;
     _loader                   = loader;
     _installationPathProvider = installationPathProvider;
     _versionHelper            = versionHelper;
 }
Пример #5
0
 public SettingsLoader(ILanguageProvider languageProvider, ISettingsMover settingsMover, IInstallationPathProvider installationPathProvider, ILanguageDetector languageDetector, IPrinterHelper printerHelper, ITranslator translator)
 {
     _languageProvider         = languageProvider;
     _settingsMover            = settingsMover;
     _installationPathProvider = installationPathProvider;
     _languageDetector         = languageDetector;
     _printerHelper            = printerHelper;
     _translator = translator;
 }
Пример #6
0
 public SettingsManager(SettingsProvider settingsProvider, ISettingsLoader loader, IInstallationPathProvider installationPathProvider,
                        IVersionHelper versionHelper, IEnumerable <IFirstTimeCommand> firstTimeCommands)
 {
     _settingsProvider         = settingsProvider;
     _loader                   = loader;
     _installationPathProvider = installationPathProvider;
     _versionHelper            = versionHelper;
     _firstTimeCommands        = firstTimeCommands;
 }
Пример #7
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;
 }
Пример #8
0
 public SettingsLoaderBase(ITranslationHelper translationHelper, ISettingsMover settingsMover, IInstallationPathProvider installationPathProvider, IPrinterHelper printerHelper, EditionHelper editionHelper, IDefaultSettingsBuilder defaultSettingsBuilder, IMigrationStorageFactory migrationStorageFactory)
 {
     _settingsMover           = settingsMover;
     InstallationPathProvider = installationPathProvider;
     _printerHelper           = printerHelper;
     _editionHelper           = editionHelper;
     DefaultSettingsBuilder   = defaultSettingsBuilder;
     _migrationStorageFactory = migrationStorageFactory;
     _translationHelper       = translationHelper;
 }
Пример #9
0
 public UpdateHelper(ICurrentSettings <ApplicationSettings> applicationSettingsProvider,
                     IVersionHelper versionHelper, IInstallationPathProvider installationPathProvider, IGpoSettings gpoSettings,
                     IEventAggregator eventAggregator, IOnlineVersionHelper onlineVersionHelper)
 {
     _settingsProvider        = applicationSettingsProvider;
     _versionHelper           = versionHelper;
     _gpoSettings             = gpoSettings;
     _eventAggregator         = eventAggregator;
     _onlineVersionHelper     = onlineVersionHelper;
     _skipVersionRegistryPath = installationPathProvider.RegistryHive + "\\" + installationPathProvider.ApplicationRegistryPath;
 }
Пример #10
0
 public SettingsLoader(
     ITranslationHelper translationHelper,
     ISettingsMover settingsMover,
     IInstallationPathProvider installationPathProvider,
     IPrinterHelper printerHelper,
     EditionHelper editionHelper,
     IDefaultSettingsBuilder defaultSettingsBuilder,
     IMigrationStorageFactory migrationStorageFactory) :
     base(translationHelper, settingsMover, installationPathProvider, printerHelper, editionHelper, defaultSettingsBuilder, migrationStorageFactory)
 {
 }
        public void Setup()
        {
            var checkAllStartupConditions = Substitute.For <ICheckAllStartupConditions>();

            _iniSettingsLoader = Substitute.For <IIniSettingsLoader>();
            _settings          = new PdfCreatorSettings(Substitute.For <IStorage>());
            _iniSettingsLoader.LoadIniSettings(Arg.Any <string>()).Returns(_settings);
            _settingsProvider = Substitute.For <ISettingsProvider>();
            _settingsProvider.CheckValidSettings(_settings).Returns(true);
            _pathProvider   = Substitute.For <IInstallationPathProvider>();
            _storageFactory = Substitute.For <IDataStorageFactory>();

            _initializeDefaultSettingsStart = new InitializeDefaultSettingsStart(checkAllStartupConditions,
                                                                                 _iniSettingsLoader, _settingsProvider, _pathProvider, _storageFactory);
        }
 public SettingsLoaderWithSharedSettings(
     ITranslationHelper translationHelper,
     ISettingsMover settingsMover,
     IInstallationPathProvider installationPathProvider,
     IPrinterHelper printerHelper,
     EditionHelper editionHelper,
     IDefaultSettingsBuilder defaultSettingsBuilder,
     IMigrationStorageFactory migrationStorageFactory,
     ISharedSettingsLoader sharedSettingsLoader,
     IActionOrderChecker actionOrderHelper,
     ISettingsBackup settingsBackup
     ) :
     base(translationHelper, settingsMover, installationPathProvider, printerHelper, editionHelper, defaultSettingsBuilder, migrationStorageFactory, actionOrderHelper, settingsBackup)
 {
     _sharedSettingsLoader = sharedSettingsLoader;
 }
Пример #13
0
 public UpdateAssistant(ISettingsProvider settingsProvider,
                        ITranslationUpdater translationUpdater, IThreadManager threadManager, IVersionHelper versionHelper,
                        IInstallationPathProvider installationPathProvider, IUpdateLauncher updateLauncher, UpdateInformationProvider updateInformationProvider,
                        IGpoSettings gpoSettings, IEventAggregator eventAggregator)
 {
     _settingsProvider = settingsProvider;
     translationUpdater.RegisterAndSetTranslation(tf => _translation = tf.UpdateOrCreateTranslation(_translation));
     _threadManager             = threadManager;
     _versionHelper             = versionHelper;
     _updateLauncher            = updateLauncher;
     _updateInformationProvider = updateInformationProvider;
     _gpoSettings             = gpoSettings;
     _eventAggregator         = eventAggregator;
     _skipVersionRegistryPath = @"HKEY_CURRENT_USER\" + installationPathProvider.ApplicationRegistryPath;
     OnlineVersion            = new ApplicationVersion(new Version(), "", "");
 }
Пример #14
0
 public ParametersManager(IInstallationPathProvider installationPathProvider, IDataStorageFactory dataStorageFactory)
 {
     _installationPathProvider = installationPathProvider;
     _dataStorageFactory       = dataStorageFactory;
 }
Пример #15
0
 public LanguageDetector(IRegistry registry, IInstallationPathProvider installationPathProvider)
 {
     _registry           = registry;
     _appGuid            = installationPathProvider.ApplicationGuid;
     _appSettingsRegPath = installationPathProvider.SettingsRegistryPath;
 }
Пример #16
0
 public void SetUp()
 {
     _dataStorageFactory       = Substitute.For <IDataStorageFactory>();
     _installationPathProvider = Substitute.For <IInstallationPathProvider>();
     _parametersManager        = new ParametersManager(_installationPathProvider, _dataStorageFactory);
 }
 public StoreLicenseForAllUsersStart(ICheckAllStartupConditions checkAllStartupConditions, IRegistry registry, IInstallationPathProvider installationPathProvider)
     : base(checkAllStartupConditions)
 {
     _registry                 = registry;
     _registryPath             = installationPathProvider.ApplicationRegistryPath;
     SkipStartupConditionCheck = true;
 }
Пример #18
0
 public PlusHintHelper(IPrinterPortReader portReader, IRegistry registry, IInstallationPathProvider installationPathProvider)
 {
     _portReader = portReader;
     _registry   = registry;
     _registryKeyForHintSettings = @"HKEY_CURRENT_USER\" + installationPathProvider.ApplicationRegistryPath;
 }
Пример #19
0
 public UpdateAssistant(ISettingsProvider settingsProvider, IInteractionInvoker interactionInvoker, UpdateManagerTranslation translation, IThreadManager threadManager, IVersionHelper versionHelper, IInstallationPathProvider installationPathProvider, IUpdateLauncher updateLauncher, UpdateInformationProvider updateInformationProvider)
 {
     _settingsProvider          = settingsProvider;
     _interactionInvoker        = interactionInvoker;
     _translation               = translation;
     _threadManager             = threadManager;
     _versionHelper             = versionHelper;
     _updateLauncher            = updateLauncher;
     _updateInformationProvider = updateInformationProvider;
     _skipVersionRegistryPath   = @"HKEY_CURRENT_USER\" + installationPathProvider.ApplicationRegistryPath;
 }
Пример #20
0
 public SettingsLoader(ITranslationHelper translationHelper, ISettingsMover settingsMover, IInstallationPathProvider installationPathProvider, IPrinterHelper printerHelper) : base(translationHelper, settingsMover, installationPathProvider, printerHelper)
 {
 }
Пример #21
0
 public RestorePrinterAppStart(ICheckAllStartupConditions checkAllStartupConditions, IPrinterProvider printerProvider, IUacAssistant uacAssistant, IInstallationPathProvider installationPathProvider) : base(checkAllStartupConditions)
 {
     _uacAssistant             = uacAssistant;
     _printerProvider          = printerProvider;
     _installationPathProvider = installationPathProvider;
 }