コード例 #1
0
 public SettingsLoader(ITranslationHelper translationHelper, ISettingsMover settingsMover, IInstallationPathProvider installationPathProvider, IPrinterHelper printerHelper)
 {
     _settingsMover            = settingsMover;
     _installationPathProvider = installationPathProvider;
     _printerHelper            = printerHelper;
     _translationHelper        = translationHelper;
 }
コード例 #2
0
ファイル: SettingsLoader.cs プロジェクト: lorddev/PDFCreator
 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
ファイル: UpdateHelper.cs プロジェクト: ravisayal/PDFCreator
 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)
 {
 }
コード例 #11
0
        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);
        }
コード例 #12
0
 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
ファイル: ParametersManager.cs プロジェクト: sm2x/PDFCreator
 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);
 }
コード例 #17
0
 public StoreLicenseForAllUsersStart(ICheckAllStartupConditions checkAllStartupConditions, IRegistry registry, IInstallationPathProvider installationPathProvider)
     : base(checkAllStartupConditions)
 {
     _registry                 = registry;
     _registryPath             = installationPathProvider.ApplicationRegistryPath;
     SkipStartupConditionCheck = true;
 }
コード例 #18
0
ファイル: PlusHintHelper.cs プロジェクト: lorddev/PDFCreator
 public PlusHintHelper(IPrinterPortReader portReader, IRegistry registry, IInstallationPathProvider installationPathProvider)
 {
     _portReader = portReader;
     _registry   = registry;
     _registryKeyForHintSettings = @"HKEY_CURRENT_USER\" + installationPathProvider.ApplicationRegistryPath;
 }
コード例 #19
0
ファイル: UpdateAssistant.cs プロジェクト: lorddev/PDFCreator
 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;
 }