diff options
author | crupest <crupest@outlook.com> | 2020-12-19 20:08:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-19 20:08:49 +0800 |
commit | cf8a869de33cfa5db1967698059abccaaeaba4c9 (patch) | |
tree | 5e4a504e02b9d8592be7ec5b1aba28d2dd876ddf /BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs | |
parent | ab3aedad37fe4634efb0d6939d7a40642bfff032 (diff) | |
download | timeline-cf8a869de33cfa5db1967698059abccaaeaba4c9.tar.gz timeline-cf8a869de33cfa5db1967698059abccaaeaba4c9.tar.bz2 timeline-cf8a869de33cfa5db1967698059abccaaeaba4c9.zip |
feat: Bookmark timeline REST api.
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);
|