| 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.ServiceRequests Assembly >> Cat.UnitTesting.ServiceRequests Namespace >> FakeServiceRequestProcessor Class
| Overloads | |
|---|---|
| Respond<TRequest,TResponse>(ICatResponse<TResponse>) | Sets the response for a service request with a result. |
| Respond<TRequest,TResponse>(Func<TRequest,ICatResponse<TResponse>>) | Sets the response for a service request with a result, built from the request. |
| Respond<TRequest>(ICatResponse) | Sets the response for a service request without a result. |
| Respond<TRequest>(Func<TRequest,ICatResponse>) | Sets the response for a service request without a result, built from the request. |
Sets the response for a service request with a result.
public Cat.UnitTesting.ServiceRequests.FakeServiceRequestProcessor Respond<TRequest,TResponse>(Cat.Responses.Abstractions.ICatResponse<TResponse> response)
where TRequest : Cat.ServiceRequests.Abstractions.ICatServiceRequest<TResponse>;TRequest
The service request type.
TResponse
The type of the result.
response Cat.Responses.Abstractions.ICatResponse<TResponse>
The response every request of this type gets.
FakeServiceRequestProcessor
The fake, so calls can be chained.
FakeServiceRequestProcessor.Respond<TRequest,TResponse>(Func<TRequest,ICatResponse<TResponse>>) Method
Sets the response for a service request with a result, built from the request.
public Cat.UnitTesting.ServiceRequests.FakeServiceRequestProcessor Respond<TRequest,TResponse>(System.Func<TRequest,Cat.Responses.Abstractions.ICatResponse<TResponse>> respond)
where TRequest : Cat.ServiceRequests.Abstractions.ICatServiceRequest<TResponse>;TRequest
The service request type.
TResponse
The type of the result.
respond System.Func<TRequest,Cat.Responses.Abstractions.ICatResponse<TResponse>>
Builds the response from the request.
FakeServiceRequestProcessor
The fake, so calls can be chained.
Sets the response for a service request without a result.
public Cat.UnitTesting.ServiceRequests.FakeServiceRequestProcessor Respond<TRequest>(Cat.Responses.Abstractions.ICatResponse response)
where TRequest : Cat.ServiceRequests.Abstractions.ICatServiceRequest;TRequest
The service request type.
response ICatResponse
The response every request of this type gets.
FakeServiceRequestProcessor
The fake, so calls can be chained.
Sets the response for a service request without a result, built from the request.
public Cat.UnitTesting.ServiceRequests.FakeServiceRequestProcessor Respond<TRequest>(System.Func<TRequest,Cat.Responses.Abstractions.ICatResponse> respond)
where TRequest : Cat.ServiceRequests.Abstractions.ICatServiceRequest;TRequest
The service request type.
respond System.Func<TRequest,ICatResponse>
Builds the response from the request.
FakeServiceRequestProcessor
The fake, so calls can be chained.