diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
commit | ed85aa28b49789aa413a7e10637368c812411640 (patch) | |
tree | da11e395a3fd1340187fb785fc17e570171b942b /Timeline.Tests/Helpers/ResponseExtensions.cs | |
parent | 57151c879376374425adb04fb68dad2cf7930df8 (diff) | |
parent | 29bd71cd93b03248254f341aff9252374abc74ec (diff) | |
download | timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.gz timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.bz2 timeline-ed85aa28b49789aa413a7e10637368c812411640.zip |
Merge branch 'master' into null-request-field
Diffstat (limited to 'Timeline.Tests/Helpers/ResponseExtensions.cs')
-rw-r--r-- | Timeline.Tests/Helpers/ResponseExtensions.cs | 26 |
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());
+ }
+ }
+}
|