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); }
protected virtual async Task PdfCreatorTestPageExecute(object o) { await Task.Run(() => { LoggingHelper.ChangeLogLevel(_applicationSettingsProvider.Settings.LoggingLevel); _testPageHelper.CreateTestPage(); }); }
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(); }
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(); }
private void PdfCreatorTestpageExecute(object o) { _testPageHelper.CreateTestPage(); }