aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Helpers/ResponseExtensions.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-08 16:54:03 +0800
committer杨宇千 <crupest@outlook.com>2019-08-08 16:54:03 +0800
commitd018e1c318646c6d7fecc8d3824129e9f1d5cf6c (patch)
treeda11e395a3fd1340187fb785fc17e570171b942b /Timeline.Tests/Helpers/ResponseExtensions.cs
parentdc1ab11cea249f4ca967f86b115147a63f7c93a5 (diff)
parente283a3e745bad05a55c572646d7b20fbaaeb522d (diff)
downloadtimeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.tar.gz
timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.tar.bz2
timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.zip
Merge branch 'master' into null-request-field
Diffstat (limited to 'Timeline.Tests/Helpers/ResponseExtensions.cs')
-rw-r--r--Timeline.Tests/Helpers/ResponseExtensions.cs26
1 files changed, 13 insertions, 13 deletions
diff --git a/Timeline.Tests/Helpers/ResponseExtensions.cs b/Timeline.Tests/Helpers/ResponseExtensions.cs
index 9ca583fc..155836fb 100644
--- a/Timeline.Tests/Helpers/ResponseExtensions.cs
+++ b/Timeline.Tests/Helpers/ResponseExtensions.cs
@@ -1,14 +1,14 @@
-using Newtonsoft.Json;
-using System.Net.Http;
-using System.Threading.Tasks;
+using Newtonsoft.Json;
+using System.Net.Http;
+using System.Threading.Tasks;
-namespace Timeline.Tests.Helpers
-{
- public static class ResponseExtensions
- {
- public static async Task<T> ReadBodyAsJson<T>(this HttpResponseMessage response)
- {
- return JsonConvert.DeserializeObject<T>(await response.Content.ReadAsStringAsync());
- }
- }
-}
+namespace Timeline.Tests.Helpers
+{
+ public static class ResponseExtensions
+ {
+ public static async Task<T> ReadBodyAsJson<T>(this HttpResponseMessage response)
+ {
+ return JsonConvert.DeserializeObject<T>(await response.Content.ReadAsStringAsync());
+ }
+ }
+}