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

Commit

Permalink
Update formatting and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Mar 28, 2024
1 parent 5463071 commit adca693
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 26 deletions.
12 changes: 6 additions & 6 deletions ActiveDirectoryQuerier.Tests/ActiveDirectoryInfoTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace ActiveDirectoryQuerier.Tests;
public class ActiveDirectoryInfoTests
{
private readonly ActiveDirectoryInfo _adInfo = new();

[Fact]
public async Task GetADUsers_ReturnsExpectedOutput()
{
Expand All @@ -20,7 +20,7 @@ public async Task GetADUsers_ReturnsExpectedOutput()

// Assert
Assert.NotNull(result);

if (result.HadErrors)
{
Assert.True(result.StdErr.Count > 0);
Expand All @@ -39,7 +39,7 @@ public async Task GetADComputers_ReturnsExpectedOutput()

// Assert
Assert.NotNull(result);

if (result.HadErrors)
{
Assert.True(result.StdErr.Count > 0);
Expand All @@ -58,7 +58,7 @@ public async Task GetADIPv4Addresses_ReturnsExpectedOutput()

// Assert
Assert.NotNull(result);

if (result.HadErrors)
{
Assert.True(result.StdErr.Count > 0);
Expand All @@ -77,7 +77,7 @@ public async Task GetADIPv6Addresses_ReturnsExpectedOutput()

// Assert
Assert.NotNull(result);

if (result.HadErrors)
{
Assert.True(result.StdErr.Count > 0);
Expand All @@ -87,4 +87,4 @@ public async Task GetADIPv6Addresses_ReturnsExpectedOutput()
Assert.True(result.StdOut.Count > 0);
}
}
}
}
18 changes: 0 additions & 18 deletions ActiveDirectoryQuerier/Queries/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,19 @@ namespace ActiveDirectoryQuerier.Queries;

public class Query
{
/// <summary>
/// Used for the name of the custom Query
/// </summary>
public string QueryName { get; set; } = string.Empty;

/// <summary>
/// Used for the Custom Queries Description
/// </summary>
public string QueryDescription { get; set; } = string.Empty;

/// <summary>
/// Used for serializing the Command Name
/// </summary>
// ReSharper disable once InconsistentNaming
public string? PSCommandName { get; set; }

/// <summary>
/// Used for Serializing the Commands parameters
/// </summary>
// ReSharper disable once InconsistentNaming
public string[] PSCommandParameters { get; set; } = Array.Empty<string>();

/// <summary>
/// Used for Serializing the Commands parameters
/// </summary>
// ReSharper disable once InconsistentNaming
public string[] PSCommandParameterValues { get; set; } = Array.Empty<string>();

/// <summary>
/// Command that should help with Binding the command to the query for the buttons sake
/// </summary>
[JsonIgnore]
public Command? Command { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions ActiveDirectoryQuerier/Queries/QueryManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using System.Management.Automation.Runspaces;
using System.Text.Json;
using System.Text.Json.Serialization;
Expand All @@ -7,7 +7,7 @@
namespace ActiveDirectoryQuerier.Queries;

/// <summary>
/// This class is for the collection of queries, it is used for serializing and deserializing the queries to a file.
/// Manages queries, including saving and loading queries from a file.
/// </summary>
public class QueryManager
{
Expand Down

0 comments on commit adca693

Please sign in to comment.