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

            var wasSilent = true;

            _testPageHelper
            .When(x => _testPageHelper.CreateTestPage())
            .Do(x => wasSilent = false);

            viewModel.PrintPdfCreatorTestpageCommand.Execute(null);

            Assert.IsTrue(wasSilent);
        }
예제 #2
0
 protected virtual async Task PdfCreatorTestPageExecute(object o)
 {
     await Task.Run(() => {
         LoggingHelper.ChangeLogLevel(_applicationSettingsProvider.Settings.LoggingLevel);
         _testPageHelper.CreateTestPage();
     });
 }
예제 #3
0
 public override async Task ExecuteAsync(object parameter)
 {
     await Task.Run(() => {
         LoggingHelper.ChangeLogLevel(_appSettings.Settings.LoggingLevel);
         _testPageHelper.CreateTestPage(_selectedProfileProvider.SelectedProfile.Name);
     });
 }
        private void ExecutePdfCreatorTestpage(object o)
        {
            if (!QuerySaveModifiedSettings())
            {
                return;
            }

            _testPageHelper.CreateTestPage();
        }
예제 #5
0
        public void RequestTestPage_CreatesPage()
        {
            var viewModel = SetupPdfCreatorTestPagePreperations();

            var wasCalled = false;

            _testPageHelper
            .When(x => _testPageHelper.CreateTestPage())
            .Do(x => wasCalled = true);

            viewModel.PrintPdfCreatorTestpageCommand.Execute(null);

            Assert.IsTrue(wasCalled);
        }
 private void PdfCreatorTestpageExecute(object o)
 {
     LoggingHelper.ChangeLogLevel(_applicationSettingsProvider.Settings.LoggingLevel);
     _testPageHelper.CreateTestPage();
 }
예제 #7
0
 private void PdfCreatorTestpageExecute(object o)
 {
     _testPageHelper.CreateTestPage();
 }