aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-19 20:12:00 +0800
committerGitHub <noreply@github.com>2020-12-19 20:12:00 +0800
commit4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305 (patch)
tree8dba18b84d996f1396423788525390fdde301210 /BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs
parentebc2892d1546b8b59bd1c9adabe8a96a2e2a0754 (diff)
parent682b5a076c967f9f38dd32c0cffd4010548bd400 (diff)
downloadtimeline-4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305.tar.gz
timeline-4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305.tar.bz2
timeline-4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305.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.cs5
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);