From a866a261a48d4ff85b7b20b75686fc41cb418ef4 Mon Sep 17 00:00:00 2001 From: Hunter T Date: Fri, 15 Mar 2024 12:07:25 -0700 Subject: [PATCH] Refactor RelayCommand location --- ActiveDirectoryQuerier.Tests/RelayCommandTests.cs | 4 +++- ActiveDirectoryQuerier/{ => ViewModels}/RelayCommand.cs | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) rename ActiveDirectoryQuerier/{ => ViewModels}/RelayCommand.cs (94%) diff --git a/ActiveDirectoryQuerier.Tests/RelayCommandTests.cs b/ActiveDirectoryQuerier.Tests/RelayCommandTests.cs index b44ba75..bb4439c 100644 --- a/ActiveDirectoryQuerier.Tests/RelayCommandTests.cs +++ b/ActiveDirectoryQuerier.Tests/RelayCommandTests.cs @@ -1,4 +1,6 @@ -namespace ActiveDirectoryQuerier.Tests; +using ActiveDirectoryQuerier.ViewModels; + +namespace ActiveDirectoryQuerier.Tests; public class RelayCommandTests { diff --git a/ActiveDirectoryQuerier/RelayCommand.cs b/ActiveDirectoryQuerier/ViewModels/RelayCommand.cs similarity index 94% rename from ActiveDirectoryQuerier/RelayCommand.cs rename to ActiveDirectoryQuerier/ViewModels/RelayCommand.cs index d4bdc13..199f9db 100644 --- a/ActiveDirectoryQuerier/RelayCommand.cs +++ b/ActiveDirectoryQuerier/ViewModels/RelayCommand.cs @@ -1,6 +1,6 @@ using System.Windows.Input; -namespace ActiveDirectoryQuerier; +namespace ActiveDirectoryQuerier.ViewModels; /// /// A command whose sole purpose is to relay its functionality to other objects by invoking delegates. @@ -8,7 +8,6 @@ namespace ActiveDirectoryQuerier; /// /// This is a very basic setup of the RelayCommand class. I imagine that this class can be expanded and improved upon. /// -/// TODO: Place class into ViewModel folder. public class RelayCommand : ICommand { private readonly Action _execute;