Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Provide Intent Oriented Syntax #1

@dupdob

Description

@dupdob

I would like to have a syntax that focuses on intent to improve further on readability. So instead of

                    Responses
                        .WithStatusCode(200)
                        .WithBody(@"{ msg: ""Hello world!""}")

I would prefer

                    Responses
                        .Success
                        .WithBody(@"{ msg: ""Hello world!""}")

other example

                    Responses
                        .RedirectTo("/bar");

I think it may also be helpful when you want to simulate ill behaving servers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions