public void Save_ProfileHasTargetDirectory_LastSaveDirectoryDoesNotGetSetAndNotSaved() { _job.Profile.TargetDirectory = "Not empty"; _lastSaveDirectoryHelper.Save(_job); _currentSettingsProvider.DidNotReceive(); _settingsManager.DidNotReceive().SaveCurrentSettings(); }
protected override void DoWorkflowWork(Job job) { job.OutputFileTemplate = _targetFilePathComposer.ComposeTargetFilePath(job); if (job.Profile.SkipPrintDialog) { if (_interactiveProfileChecker.CheckWithErrorResultInWindow(job)) { _commandLocator.GetCommand <SkipPrintDialogCommand>().Execute(job); } else { //Enable PrintJobView for invalid profiles job.Profile.SkipPrintDialog = false; } } _logger.Debug("Starting PrintJobWindow"); try { _shellManager.ShowPrintJobShell(job); _settingsProvider.Settings.CreatorAppSettings.LastUsedProfileGuid = job.Profile.Guid; if (job.IsSuccessful) { _lastSaveDirectoryHelper.Save(job); } } finally { _directoryHelper.DeleteCreatedDirectories(); } }