Exemple #1
0
        public void SetUp()
        {
            _selectedProfileProvider = Substitute.For <ISelectedProfileProvider>();
            _translationUpdater      = Substitute.For <ITranslationUpdater>();

            _profilesViewModel = new ProfilesViewModel(_selectedProfileProvider, _translationUpdater, new DesignTimeCommandLocator(), null, null);

            _translation = new ProfileMangementTranslation();
            _profilesViewModel.Translation = _translation;
        }
        public void SetUp()
        {
            _selectedProfileProvider = Substitute.For <ISelectedProfileProvider>();
            _selectedProfile         = new ConversionProfile();
            _selectedProfileProvider.SelectedProfile.Returns(_selectedProfile);
            _translationUpdater = Substitute.For <ITranslationUpdater>();
            _gpoSettings        = Substitute.For <IGpoSettings>();

            BuildProfilesViewModel();

            _translation = new ProfileMangementTranslation();
            _profilesViewModel.Translation = _translation;
        }
Exemple #3
0
        public void SetUp()
        {
            _interactionRequest      = new UnitTestInteractionRequest();
            _currentSettingsProvider = Substitute.For <ICurrentSettingsProvider>();
            _currentName             = "current profile name";
            var currentProfile = new ConversionProfile();

            currentProfile.Name = _currentName;
            _currentSettingsProvider.SelectedProfile = currentProfile;

            _translation = new ProfileMangementTranslation();

            _profileRenameCommand = new ProfileRenameCommand(_interactionRequest, _currentSettingsProvider, new DesignTimeTranslationUpdater(), new InvokeImmediatelyDispatcher());
        }
Exemple #4
0
        public void SetUp()
        {
            _interactionRequest                      = new UnitTestInteractionRequest();
            _currentSettingsProvider                 = Substitute.For <ICurrentSettingsProvider>();
            _presentProfile                          = new ConversionProfile();
            _presentProfile.AuthorTemplate           = "Example settings to check copied profile later";
            _currentSettingsProvider.SelectedProfile = _presentProfile;
            _settings = new PdfCreatorSettings(null);
            _settings.ConversionProfiles.Add(_presentProfile);
            _currentSettingsProvider.Settings.Returns(_settings);
            _currentSettingsProvider.Profiles.Returns(_settings.ConversionProfiles);

            _translation = new ProfileMangementTranslation();

            _profileAddCommand = new ProfileAddCommand(_interactionRequest, _currentSettingsProvider, new DesignTimeTranslationUpdater());
        }
        public void SetUp()
        {
            _interactionRequest      = new UnitTestInteractionRequest();
            _currentSettingsProvider = Substitute.For <ICurrentSettingsProvider>();
            _currentProfile          = new ConversionProfile();
            _currentProfile.Name     = "CurrentProfileName";
            _currentSettingsProvider.SelectedProfile = _currentProfile;
            _settings = new PdfCreatorSettings(null);
            _settings.ConversionProfiles.Add(_currentProfile);
            _settings.ConversionProfiles.Add(new ConversionProfile());
            _currentSettingsProvider.Settings.Returns(_settings);
            _currentSettingsProvider.Profiles.Returns(_settings.ConversionProfiles);

            _translation = new ProfileMangementTranslation();

            _profileRemoveCommand = new ProfileRemoveCommand(_interactionRequest, _currentSettingsProvider, new DesignTimeTranslationUpdater(), new InvokeImmediatelyDispatcher());
        }