aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-19 20:08:49 +0800
committercrupest <crupest@outlook.com>2020-12-19 20:08:49 +0800
commit6ac5ba10f9c417f63a4713612a0abf5b20deb099 (patch)
treec938e87c82d2df87ed6ec102dc5eacae6b7e6390 /BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs
parentb102ed3edf1330e77240708afb59ec8f91d67b41 (diff)
downloadtimeline-6ac5ba10f9c417f63a4713612a0abf5b20deb099.tar.gz
timeline-6ac5ba10f9c417f63a4713612a0abf5b20deb099.tar.bz2
timeline-6ac5ba10f9c417f63a4713612a0abf5b20deb099.zip
feat: Bookmark timeline REST api.
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);