aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-15 01:44:48 +0800
committercrupest <crupest@outlook.com>2020-11-15 01:44:48 +0800
commitb45b65f43bc8f32ab598ef1862f7f079cd283daf (patch)
tree815a7adaaa5fd33287ec993639771924104e80b6 /BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs
parent13333865d52c5a90ba801fc1333521afb121787a (diff)
downloadtimeline-b45b65f43bc8f32ab598ef1862f7f079cd283daf.tar.gz
timeline-b45b65f43bc8f32ab598ef1862f7f079cd283daf.tar.bz2
timeline-b45b65f43bc8f32ab598ef1862f7f079cd283daf.zip
...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs14
1 files changed, 0 insertions, 14 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs b/BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs
deleted file mode 100644
index 097fefd1..00000000
--- a/BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System.Net.Http;
-using System.Net.Http.Json;
-using System.Threading.Tasks;
-
-namespace Timeline.Tests.IntegratedTests
-{
- public static class HttpResponseExtensions
- {
- public static async Task<T?> ReadBodyAsJsonAsync<T>(this HttpResponseMessage response)
- {
- return await response.Content.ReadFromJsonAsync<T>(CommonJsonSerializeOptions.Options);
- }
- }
-}