aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-17 23:44:40 +0800
committercrupest <crupest@outlook.com>2020-12-17 23:44:40 +0800
commit5cbc306fc82bf14157ced4ff8b935191d20dae5d (patch)
treef5ce5a6ffebab52a4a990faa0d12937244cc3185 /BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs
parentb9e55a05730cf4ede8dd5bd7a6f9befe5bc3580e (diff)
downloadtimeline-5cbc306fc82bf14157ced4ff8b935191d20dae5d.tar.gz
timeline-5cbc306fc82bf14157ced4ff8b935191d20dae5d.tar.bz2
timeline-5cbc306fc82bf14157ced4ff8b935191d20dae5d.zip
...
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 7cff0c39..ec517362 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/HttpClientTestExtensions.cs
@@ -212,6 +212,11 @@ namespace Timeline.Tests.IntegratedTests
await client.TestJsonSendAssertForbiddenAsync(HttpMethod.Post, url, jsonBody, errorCode, headerSetup);
}
+ public static async Task TestPutAssertForbiddenAsync(this HttpClient client, string url, object? jsonBody = null, int? errorCode = null, HeaderSetup? headerSetup = null)
+ {
+ await client.TestJsonSendAssertForbiddenAsync(HttpMethod.Put, url, jsonBody, errorCode, headerSetup);
+ }
+
public static async Task TestPatchAssertForbiddenAsync(this HttpClient client, string url, object? jsonBody = null, int? errorCode = null, HeaderSetup? headerSetup = null)
{
await client.TestJsonSendAssertForbiddenAsync(HttpMethod.Patch, url, jsonBody, errorCode, headerSetup);