From 539cf0b32c8cfdab30ca815b369772a3825bf220 Mon Sep 17 00:00:00 2001 From: Hunter T Date: Wed, 27 Mar 2024 15:50:25 -0700 Subject: [PATCH] Format with clang-format --- ActiveDirectoryQuerier.Tests/MainWindowViewModelTests.cs | 7 ++----- ActiveDirectoryQuerier/AssemblyInfo.cs | 2 +- ActiveDirectoryQuerier/MainWindowViewModel.cs | 8 ++++---- .../MessageBoxService/IMessageBoxService.cs | 2 +- .../MessageBoxService/MessageBoxService.cs | 2 +- 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/ActiveDirectoryQuerier.Tests/MainWindowViewModelTests.cs b/ActiveDirectoryQuerier.Tests/MainWindowViewModelTests.cs index f2a66de..b78e596 100644 --- a/ActiveDirectoryQuerier.Tests/MainWindowViewModelTests.cs +++ b/ActiveDirectoryQuerier.Tests/MainWindowViewModelTests.cs @@ -11,10 +11,7 @@ public void EditQueryFromQueryStackPanel_NullParameter_ShowsMessageBox() { // Arrange var mockMessageBoxService = new Mock(); - var viewModel = new MainWindowViewModel - { - MessageBoxService = mockMessageBoxService.Object - }; + var viewModel = new MainWindowViewModel { MessageBoxService = mockMessageBoxService.Object }; // Act viewModel.EditQueryFromQueryStackPanel(null); @@ -24,4 +21,4 @@ public void EditQueryFromQueryStackPanel_NullParameter_ShowsMessageBox() x => x.Show(It.IsAny(), "Error", MessageBoxButton.OK, MessageBoxImage.Error), Times.Once); } -} \ No newline at end of file +} diff --git a/ActiveDirectoryQuerier/AssemblyInfo.cs b/ActiveDirectoryQuerier/AssemblyInfo.cs index afede2c..a1e25af 100644 --- a/ActiveDirectoryQuerier/AssemblyInfo.cs +++ b/ActiveDirectoryQuerier/AssemblyInfo.cs @@ -8,4 +8,4 @@ // (used if a resource is not found in the page, // app, or any theme specific resource dictionaries) )] -[assembly: InternalsVisibleTo("ActiveDirectoryQuerier.Tests")] +[assembly:InternalsVisibleTo("ActiveDirectoryQuerier.Tests")] diff --git a/ActiveDirectoryQuerier/MainWindowViewModel.cs b/ActiveDirectoryQuerier/MainWindowViewModel.cs index f7e39ff..0075379 100644 --- a/ActiveDirectoryQuerier/MainWindowViewModel.cs +++ b/ActiveDirectoryQuerier/MainWindowViewModel.cs @@ -283,12 +283,12 @@ internal void EditQueryFromQueryStackPanel(object? queryButton) { Trace.WriteLine("No button selected."); MessageBoxService.Show($"An internal error occurred while trying to edit the query: {queryButton}", - "Error", - MessageBoxButton.OK, - MessageBoxImage.Error); + "Error", + MessageBoxButton.OK, + MessageBoxImage.Error); return; } - + var currentQuery = (Query)button.Tag; Command chosenCommand = ADCommands.FirstOrDefault(item => item.CommandText == currentQuery.PSCommandName)!; ADCommandParameters adCommandParameters = new(); diff --git a/ActiveDirectoryQuerier/MessageBoxService/IMessageBoxService.cs b/ActiveDirectoryQuerier/MessageBoxService/IMessageBoxService.cs index 154b1ad..4579957 100644 --- a/ActiveDirectoryQuerier/MessageBoxService/IMessageBoxService.cs +++ b/ActiveDirectoryQuerier/MessageBoxService/IMessageBoxService.cs @@ -5,4 +5,4 @@ namespace ActiveDirectoryQuerier.MessageBoxService; public interface IMessageBoxService { void Show(string message, string caption, MessageBoxButton button, MessageBoxImage icon); -} \ No newline at end of file +} diff --git a/ActiveDirectoryQuerier/MessageBoxService/MessageBoxService.cs b/ActiveDirectoryQuerier/MessageBoxService/MessageBoxService.cs index 3a92853..d0ce3a7 100644 --- a/ActiveDirectoryQuerier/MessageBoxService/MessageBoxService.cs +++ b/ActiveDirectoryQuerier/MessageBoxService/MessageBoxService.cs @@ -8,4 +8,4 @@ public void Show(string message, string caption, MessageBoxButton button, Messag { MessageBox.Show(message, caption, button, icon); } -} \ No newline at end of file +}