コード例 #1
0
 public CheckSpoolFolderCondition(ISpoolFolderAccess spoolFolderAccess, IRepairSpoolFolderAssistant repairSpoolFolderAssistant, ApplicationTranslation translation, ISpoolerProvider spoolerProvider)
 {
     _spoolFolderAccess          = spoolFolderAccess;
     _repairSpoolFolderAssistant = repairSpoolFolderAssistant;
     _translation     = translation;
     _spoolerProvider = spoolerProvider;
 }
コード例 #2
0
 public CheckSpoolFolderCondition(ISpoolFolderAccess spoolFolderAccess, IRepairSpoolFolderAssistant repairSpoolFolderAssistant, ITranslationFactory translationFactory, ISpoolerProvider spoolerProvider)
 {
     _spoolFolderAccess          = spoolFolderAccess;
     _repairSpoolFolderAssistant = repairSpoolFolderAssistant;
     _translation     = translationFactory.CreateTranslation <ApplicationTranslation>();
     _spoolerProvider = spoolerProvider;
 }
コード例 #3
0
 public RepairPrinterAssistant(IInteractionInvoker interactionInvoker, IPrinterHelper printerHelper, IShellExecuteHelper shellExecuteHelper, IFile file, IAssemblyHelper assemblyHelper, IPDFCreatorNameProvider nameProvider, ITranslationFactory iTranslationFactory)
 {
     _interactionInvoker = interactionInvoker;
     _printerHelper      = printerHelper;
     _translation        = iTranslationFactory.CreateTranslation <ApplicationTranslation>();;
     _shellExecuteHelper = shellExecuteHelper;
     _file           = file;
     _assemblyHelper = assemblyHelper;
     _nameProvider   = nameProvider;
 }
コード例 #4
0
        private LicenseCondition BuildCheckLicenseConditions()
        {
            var translation     = new ApplicationTranslation();
            var versionHelper   = Substitute.For <IVersionHelper>();
            var settingsManager = Substitute.For <ISettingsManager>();

            settingsManager.GetSettingsProvider().GpoSettings.Returns(x => _gpoSettings);

            return(new LicenseCondition(settingsManager, new ProgramTranslation(), _licenseChecker, _interactionInvoker, versionHelper, new ApplicationNameProvider("PDFCreator")));
        }
コード例 #5
0
        public RepairSpoolFolderAssistant(IInteractionInvoker interactionInvoker, ApplicationTranslation translation,
                                          ISpoolerProvider spoolerProvider, IShellExecuteHelper shellExecuteHelper, IPath path, IFile file,
                                          IEnvironment environment, IAssemblyHelper assemblyHelper)
        {
            _interactionInvoker = interactionInvoker;
            _translation        = translation;
            _shellExecuteHelper = shellExecuteHelper;
            _path           = path;
            _file           = file;
            _environment    = environment;
            _assemblyHelper = assemblyHelper;

            _tempFolder = _path.GetFullPath(_path.Combine(spoolerProvider.SpoolFolder, ".."));
        }
コード例 #6
0
 public PrinterInstalledCondition(IRepairPrinterAssistant repairPrinterAssistant, ISettingsLoader settingsLoader, ApplicationTranslation translation)
 {
     _repairPrinterAssistant = repairPrinterAssistant;
     _settingsLoader         = settingsLoader;
     _translation            = translation;
 }
コード例 #7
0
 public PrinterInstalledCondition(IRepairPrinterAssistant repairPrinterAssistant, ISettingsLoader settingsLoader, ITranslationFactory translationFactory)
 {
     _repairPrinterAssistant = repairPrinterAssistant;
     _settingsLoader         = settingsLoader;
     _translation            = translationFactory.CreateTranslation <ApplicationTranslation>();
 }