-
Couldn't load subscription status.
- Fork 18
Open
Description
Wouldn't it be a good idea if we can pass a Func while creating the Responses, this way when the response is being creating, the func will be invoked which then will decide the response
For example
server
.Given(
Requests.WithUrl("/api").UsingGet()
)
.RespondWith(
Responses
.WithStatusCode(200)
.WithResponseFunc((request) => new Response())
);
In the lambda, we can decide what response to send.
Thoughts?
Kay
Metadata
Metadata
Assignees
Labels
No labels