| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | REPO OVERVIEW | DEMO | CAT.UNITTESTING | |
|||||
>> Cat.UnitTesting.Commands Assembly >> Cat.UnitTesting.Commands Namespace >> FakeCommandProcessor Class
| Overloads | |
|---|---|
| ProcessAsync(ICatCommand, CancellationToken) | Runs a command. |
| ProcessAsync<TResult>(ICatCommand<TResult>, CancellationToken) | Runs a command that returns a result. |
Runs a command.
public System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse> ProcessAsync(Cat.Commands.Abstractions.ICatCommand catCommand, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));catCommand ICatCommand
The command to run.
cancellationToken System.Threading.CancellationToken
Token to cancel the work.
Implements ProcessAsync(ICatCommand, CancellationToken)
System.Threading.Tasks.Task<ICatResponse>
The response of the handler.
Runs a command that returns a result.
public System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TResult>> ProcessAsync<TResult>(Cat.Commands.Abstractions.ICatCommand<TResult> catCommand, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));TResult
The type of the data the command returns.
catCommand Cat.Commands.Abstractions.ICatCommand<TResult>
The command to run.
cancellationToken System.Threading.CancellationToken
Token to cancel the work.
Implements ProcessAsync<TResult>(ICatCommand<TResult>, CancellationToken)
System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TResult>>
The response of the handler, with the result when it succeeded.