public void ModifiedSettingsUserCanceledInteraction_RequestWindowsTestPage_DoesntCreateWindowsPage()
        {
            var viewModel = SetupPdfCreatorTestPagePreperations(true);

            var wasSilent = true;

            _printHelper
            .When(x => _printHelper.PrintWindowsTestPage(Arg.Any <string>()))
            .Do(x => wasSilent = false);

            viewModel.PrintWindowsTestpageCommand.Execute(null);

            Assert.IsTrue(wasSilent);
        }
Example #2
0
 private async Task WindowsTestPageExecute(object o)
 {
     await Task.Run(() =>
     {
         LoggingHelper.ChangeLogLevel(_applicationSettingsProvider.Settings.LoggingLevel);
         _printerHelper.PrintWindowsTestPage(_settingsProvider.Settings.PrimaryPrinter);
     });
 }
        private void ExecuteWindowsTestpage(object o)
        {
            if (!QuerySaveModifiedSettings())
            {
                return;
            }

            _printerHelper.PrintWindowsTestPage(ApplicationSettings.PrimaryPrinter);
        }
 private void WindowsTestpageExecute(object o)
 {
     LoggingHelper.ChangeLogLevel(_applicationSettingsProvider.Settings.LoggingLevel);
     _printerHelper.PrintWindowsTestPage(_settingsProvider.Settings.PrimaryPrinter);
 }
Example #5
0
 private void WindowsTestpageExecute(object o)
 {
     _printerHelper.PrintWindowsTestPage(SettingsProvider.Settings.ApplicationSettings.PrimaryPrinter);
 }