コード例 #1
0
        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);
        }
コード例 #2
0
        /// <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);
        }