| 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.Queries Assembly >> Cat.UnitTesting.Queries Namespace >> FakeQueryProcessor Class
| Overloads | |
|---|---|
| Respond<TQuery,TQueryResult>(ICatResponse<TQueryResult>) | Sets the response for a query type. |
| Respond<TQuery,TQueryResult>(Func<TQuery,ICatResponse<TQueryResult>>) | Sets the response for a query type, built from the query. |
Sets the response for a query type.
public Cat.UnitTesting.Queries.FakeQueryProcessor Respond<TQuery,TQueryResult>(Cat.Responses.Abstractions.ICatResponse<TQueryResult> response)
where TQuery : Cat.Queries.Abstractions.ICatQuery<TQueryResult>;TQuery
The query type.
TQueryResult
The type of the data the query returns.
response Cat.Responses.Abstractions.ICatResponse<TQueryResult>
The response every query of this type gets.
FakeQueryProcessor
The fake, so calls can be chained.
Sets the response for a query type, built from the query.
public Cat.UnitTesting.Queries.FakeQueryProcessor Respond<TQuery,TQueryResult>(System.Func<TQuery,Cat.Responses.Abstractions.ICatResponse<TQueryResult>> respond)
where TQuery : Cat.Queries.Abstractions.ICatQuery<TQueryResult>;TQuery
The query type.
TQueryResult
The type of the data the query returns.
respond System.Func<TQuery,Cat.Responses.Abstractions.ICatResponse<TQueryResult>>
Builds the response from the query.
FakeQueryProcessor
The fake, so calls can be chained.