Skip to content

Commit

Permalink
Some tidyups only.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivegamestudio committed Aug 28, 2024
1 parent a9460c9 commit 21eb19a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
15 changes: 8 additions & 7 deletions Utility.Toolkit.Tests/Utility.Toolkit.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
<PackageReference Include="NUnit" Version="3.14.*" />
<PackageReference Include="NUnit.Analyzers" Version="3.9.*" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="*" />
<PackageReference Include="NUnit" Version="3.14.*" />
<PackageReference Include="Moq" Version="*" />
<PackageReference Include="NUnit.Analyzers" Version="3.9.*" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.*" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Utility.Toolkit\Utility.Toolkit.csproj" />
Expand Down
16 changes: 8 additions & 8 deletions Utility.Toolkit/ICommandAsync_T.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
namespace Utility.Toolkit;

/// <summary>
/// Defines a command with a single generic parameter.
/// Defines an asynchronous command with a parameter of type <typeparamref name="T"/>.
/// </summary>
/// <typeparam name="T">The type of parameter used by the command.</typeparam>
/// <typeparam name="T">The type of the parameter passed to the command.</typeparam>
public interface ICommandAsync<in T>
{
/// <summary>
/// Occurs when changes occur that affect whether the command should execute.
/// Occurs when changes occur that affect whether or not the command should execute.
/// </summary>
event AsyncEventHandler CanExecuteChanged;

/// <summary>
/// Determines whether the command can execute in its current state with the given parameter.
/// Determines whether the command can execute in its current state.
/// </summary>
/// <param name="parameter">Data used by the command.</param>
/// <returns>true if this command can be executed; otherwise, false.</returns>
/// <param name="parameter">The parameter to be passed to the command.</param>
/// <returns><c>true</c> if the command can execute; otherwise, <c>false</c>.</returns>
bool CanExecute(T parameter);

/// <summary>
/// Executes the command with the given parameter.
/// Executes the command.
/// </summary>
/// <param name="parameter">Data used by the command.</param>
/// <param name="parameter">The parameter to be passed to the command.</param>
void Execute(T parameter);
}

0 comments on commit 21eb19a

Please sign in to comment.