Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/content/docs/22-integration-unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ sealed class MyRequest
}
```

Route and query parameter values are URL-encoded by these helpers, so reserved characters in the request DTO values are preserved when the request is sent.

Helper methods such as **{POST/PUT/PATCH}Async()** methods even has an optional argument which allows you to automatically convert the supplied request DTO instance in to multipart form-data for submitting to form accepting endpoints.

### State Fixture
Expand Down Expand Up @@ -663,4 +665,4 @@ public async Task FakeEventHandlerIsExecuted()

### Unit Test Examples

More unit testing examples can be found [here](https://github.com/FastEndpoints/FastEndpoints/blob/main/Tests/UnitTests/FastEndpoints/WebTests.cs).
More unit testing examples can be found [here](https://github.com/FastEndpoints/FastEndpoints/blob/main/Tests/UnitTests/FastEndpoints/WebTests.cs).