public void SetUp()
        {
            _file = Substitute.For <IFile>();
            _file.Exists(Arg.Any <string>()).Returns(true);

            _unitTestInteractionRequest = new UnitTestInteractionRequest();
            var translationUpdater = new DesignTimeTranslationUpdater();

            _deleteHistoricFilesCommand = new DeleteHistoricFilesCommand(_file, _unitTestInteractionRequest, translationUpdater);

            _translation = new DeleteFilesTranslation();

            _historicFiles = new List <HistoricFile> {
                new HistoricFile(File1, "", "", ""), new HistoricFile(File2, "", "", "")
            };
        }
        public void Setup()
        {
            _interactionRequest = new UnitTestInteractionRequest();

            _settings = new PdfCreatorSettings(null);
            _currentSettingsProvider = Substitute.For <ICurrentSettingsProvider>();
            _currentSettingsProvider.Settings.Returns(_settings);
            _currentSettingsProvider.Profiles.Returns(_settings.ConversionProfiles);
            _currentSettingsProvider.SelectedProfile.Returns(_settings.ConversionProfiles.FirstOrDefault());

            var translationUpdater = new DesignTimeTranslationUpdater();

            _regionHelper = Substitute.For <IRegionHelper>();

            _profileChecker = Substitute.For <IProfileChecker>();
            _profileChecker.CheckProfileList(_settings.ConversionProfiles, _settings.ApplicationSettings.Accounts)
            .Returns(new ActionResultDict());

            _appSettingsChecker = Substitute.For <IAppSettingsChecker>();
            _appSettingsChecker.CheckDefaultViewers(Arg.Any <ApplicationSettings>())
            .Returns(new ActionResult());

            _settingsChanged = Substitute.For <ISettingsChanged>();

            _command = new EvaluateSettingsAndNotifyUserCommand(_interactionRequest, _currentSettingsProvider,
                                                                translationUpdater, _regionHelper, _profileChecker,
                                                                _appSettingsChecker, _settingsChanged);

            _commandTester = new WaitableCommandTester <EvaluateSettingsAndNotifyUserCommand>(_command);

            _translation = new EvaluateSettingsAndNotifyUserTranslation();

            _actionResultWithError = new ActionResult((ErrorCode)123456789);
            _errorsInProfile       = new ActionResultDict();
            _errorsInProfile.Add("Some Profile", _actionResultWithError);
        }