You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ module Tests =
76
76
77
77
if you prefer to use C# for testing, some extension methods are provided to use with C# as well:
78
78
79
-
`GETJ, PUTJ, POSTJ, DELETEJ`
79
+
`GETJ, PUTJ, POSTJ, DELETEJ, PATCHJ`
80
80
81
81
Remember to add this snippet at the end of your `Program.cs` file for the `TestClient` to be able to pick up your configuration:
82
82
@@ -130,7 +130,7 @@ Available HTTP methods in the test dsl to "mock" HTTP client responses are the f
130
130
131
131
### Basic
132
132
133
-
*`GET`, `PUT`, `POST`, `DELETE` - for accessing request, route parameters and sending back HttpResponseMessage (e.g. using R_JSON or other constructors)
133
+
*`GET`, `PUT`, `POST`, `DELETE`, `PATCH` - for accessing request, route parameters and sending back HttpResponseMessage (e.g. using R_JSON or other constructors)
134
134
135
135
```fsharp
136
136
// example of control on request and route value dictionary
@@ -143,15 +143,15 @@ Available HTTP methods in the test dsl to "mock" HTTP client responses are the f
143
143
144
144
### JSON 📒
145
145
146
-
*`GETJ`, `PUTJ`, `POSTJ`, `DELETEJ` - for objects converted to JSON content
146
+
*`GETJ`, `PUTJ`, `POSTJ`, `DELETEJ`, `PATCHJ` - for objects converted to JSON content
147
147
148
148
```fsharp
149
149
GETJ "/yetAnotherOne" {| Success = true |}
150
150
```
151
151
152
152
### ASYNC Overloads (task) ⚡️
153
153
154
-
*`GET_ASYNC`, `PUT_ASYNC`, `POST_ASYNC`, `DELETE_ASYNC` - for handling asynchronous requests inside a task computation expression (async/await) and mock dynamically
154
+
*`GET_ASYNC`, `PUT_ASYNC`, `POST_ASYNC`, `DELETE_ASYNC`, `PATCH_ASYNC` - for handling asynchronous requests inside a task computation expression (async/await) and mock dynamically
155
155
156
156
```fsharp
157
157
// example of control on request and route value dictionary
0 commit comments