Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a sequence of response #16

Merged
merged 1 commit into from
Jun 9, 2021
Merged

Conversation

sandermvanvliet
Copy link
Owner

@sandermvanvliet sandermvanvliet commented Jun 8, 2021

This adds WithSequence so you can do:

handler
    .RespondTo(HttpMethod.Get, "/api/status")
    .WithSequence(builder => builder.With(HttpStatusCode.OK).AndContent("text/plain", "PENDING"))
    .WithSequence(builder => builder.With(HttpStatusCode.OK).AndContent("text/plain", "PENDING"))
    .WithSequence(builder => builder.With(HttpStatusCode.OK).AndContent("text/plain", "PENDING"))
    .WithSequence(builder => builder.With(HttpStatusCode.OK).AndContent("text/plain", "OK"));

@sandermvanvliet sandermvanvliet merged commit f29aff6 into master Jun 9, 2021
@sandermvanvliet sandermvanvliet deleted the feature/sequence branch June 9, 2021 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant