Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…l-Tool into dev
  • Loading branch information
J0seph0 committed Mar 16, 2024
2 parents e67a560 + f801bb7 commit 3085d34
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion ActiveDirectoryQuerier.Tests/RelayCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace ActiveDirectoryQuerier.Tests;
using ActiveDirectoryQuerier.ViewModels;

namespace ActiveDirectoryQuerier.Tests;

public class RelayCommandTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static async Task<ObservableCollection<Command>> GetADCommands()
if (psOutput.HadErrors)
{
string errorMessage = "Internal Error: An error occurred while retrieving the Active Directory commands: " +
$"({string.Join(" ", psOutput.StdErr)})";
$"{string.Join(" ", psOutput.StdErr)}";
MessageBox.Show(errorMessage, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
throw new InvalidPowerShellStateException(errorMessage);
}
Expand Down
6 changes: 3 additions & 3 deletions ActiveDirectoryQuerier/ActiveDirectoryQuerier.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<!-- Project Info. -->
<Title>Active Directory Querier</Title>
<Version>0.5.0</Version>
<Version>0.7.0</Version>
<Authors>Hunter T., Pieter, Joseph</Authors>
<RepositoryUrl>https://github.com/StrangeRanger/FAFB-PowerShell-Tool</RepositoryUrl>
<RepositoryUrl>https://github.com/StrangeRanger/Active-Directory-Querier</RepositoryUrl>

<!-- Project Compile Time Settings. -->
<PublishSingleFile>false</PublishSingleFile>
Expand All @@ -22,7 +22,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Management.Infrastructure" Version="3.0.0" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.2.18" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.3.11" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using System.Windows.Input;

namespace ActiveDirectoryQuerier;
namespace ActiveDirectoryQuerier.ViewModels;

/// <summary>
/// A command whose sole purpose is to relay its functionality to other objects by invoking delegates.
/// </summary>
/// <note>
/// This is a very basic setup of the RelayCommand class. I imagine that this class can be expanded and improved upon.
/// </note>
/// TODO: Place class into ViewModel folder.
public class RelayCommand : ICommand
{
private readonly Action<object> _execute;
Expand Down

0 comments on commit 3085d34

Please sign in to comment.