public void Verify_that_dialog_viewmodel_is_constructed() { var vm = new LogItemDialogViewModel(this.logEventInfo); Assert.AreEqual("log message", vm.Message); Assert.AreEqual(LogLevel.Fatal, vm.LogLevel); Assert.AreEqual("logger-name", vm.Logger); }
/// <summary> /// Executes the <see cref="ShowDetailsDialogCommand"/> and pops the logitem details /// </summary> private void ExecuteShowDetailsDialogCommand() { if (this.SelectedItem == null) { return; } var dialogViewModel = new LogItemDialogViewModel(this.SelectedItem.LogEventInfo); this.dialogNavigationService.NavigateModal(dialogViewModel); }