diff options
author | crupest <crupest@outlook.com> | 2020-12-19 20:12:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 20:12:00 +0800 |
commit | d25b74fa167944a7701997e34810a2ffc3c39edd (patch) | |
tree | 03e2138077430562db17eab4fb0adfca1e16b80c /BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs | |
parent | 3b3c7c170f0070b0db85834b6c913b9060996d1d (diff) | |
parent | a68670a3d87276ff73aa232d00a391d81407aced (diff) | |
download | timeline-d25b74fa167944a7701997e34810a2ffc3c39edd.tar.gz timeline-d25b74fa167944a7701997e34810a2ffc3c39edd.tar.bz2 timeline-d25b74fa167944a7701997e34810a2ffc3c39edd.zip |
Merge pull request #194 from crupest/bookmark-timeline
Bookmark timeline.
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs b/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs index ec517362..b219f092 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs @@ -192,6 +192,11 @@ namespace Timeline.Tests.IntegratedTests await client.TestJsonSendAssertUnauthorizedAsync(HttpMethod.Patch, url, jsonBody, errorCode, headerSetup);
}
+ public static async Task TestPutAssertUnauthorizedAsync(this HttpClient client, string url, object? jsonBody = null, int? errorCode = null, HeaderSetup? headerSetup = null)
+ {
+ await client.TestJsonSendAssertUnauthorizedAsync(HttpMethod.Put, url, jsonBody, errorCode, headerSetup);
+ }
+
public static async Task TestDeleteAssertUnauthorizedAsync(this HttpClient client, string url, object? jsonBody = null, int? errorCode = null, HeaderSetup? headerSetup = null)
{
await client.TestJsonSendAssertUnauthorizedAsync(HttpMethod.Delete, url, jsonBody, errorCode, headerSetup);
|