public QuickActionPrintWithPdfArchitectCommand(ITranslationUpdater translationUpdater, IPdfArchitectCheck architectCheck, IRecommendArchitect recommendArchitect, IRecommendArchitectUpgrade recommendArchitectUpgrade, IProcessStarter processStarter) : base(translationUpdater) { _architectCheck = architectCheck; _recommendArchitect = recommendArchitect; _recommendArchitectUpgrade = recommendArchitectUpgrade; _processStarter = processStarter; }
/// <summary> /// Creates a new default viewer action. /// </summary> public DefaultViewerAction(IFileAssoc fileAssoc, IRecommendArchitect recommendArchitect, IPdfArchitectCheck pdfArchitectCheck, ISettingsProvider settingsProvider, OutputFormatHelper outputFormatHelper, IProcessStarter processStarter, IDefaultViewerCheck defaultViewerCheck) { _fileAssoc = fileAssoc; _recommendArchitect = recommendArchitect; _pdfArchitectCheck = pdfArchitectCheck; _settingsProvider = settingsProvider; _outputFormatHelper = outputFormatHelper; _processStarter = processStarter; _defaultViewerCheck = defaultViewerCheck; }
public void SetUp() { _settings = new PdfCreatorSettings(); _fileAssoc = Substitute.For <IFileAssoc>(); _recommendArchitect = Substitute.For <IRecommendArchitect>(); _pdfArchitectCheck = Substitute.For <IPdfArchitectCheck>(); _pdfArchitectCheck.GetInstallationPath().Returns(ArchitectPath); _settingsProvider = Substitute.For <ISettingsProvider>(); _settingsProvider.Settings.Returns(_settings); _outputFormatHelper = new OutputFormatHelper(); _processStarter = Substitute.For <IProcessStarter>(); _defaultViewerCheck = Substitute.For <IDefaultViewerCheck>(); _defaultViewer = new DefaultViewer(); _defaultViewer.OutputFormat = OutputFormat.Pdf; _defaultViewer.Path = DefaultViewerPath; _settings.DefaultViewers.Add(_defaultViewer); _job = new Job(new JobInfo(), new ConversionProfile(), new Accounts()); _profile = new ConversionProfile(); _defaultViewerAction = new DefaultViewerAction(_fileAssoc, _recommendArchitect, _pdfArchitectCheck, _settingsProvider, _outputFormatHelper, _processStarter, _defaultViewerCheck); }
public QuickActionOpenWithPdfArchitectCommand(ITranslationUpdater translationUpdater, IDefaultViewerAction action, IPdfArchitectCheck architectCheck, IRecommendArchitect recommendArchitect) : base(translationUpdater) { _action = action; _architectCheck = architectCheck; _recommendArchitect = recommendArchitect; }
/// <summary> /// Creates a new default viewer action. /// </summary> public DefaultViewerAction(IFileAssoc fileAssoc, IRecommendArchitect recommendArchitect, IPdfArchitectCheck architectCheck) { _fileAssoc = fileAssoc; _recommendArchitect = recommendArchitect; _architectCheck = architectCheck; }