diff options
author | crupest <crupest@outlook.com> | 2020-11-15 01:44:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-15 01:44:48 +0800 |
commit | f5ccd0d9855f82e14c6b765eee6a04b22c50dc8a (patch) | |
tree | 5dc8da01f7a01e86bcacf85ac449b24ce4fac3a5 /BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs | |
parent | c6ff19254382ff68f63cb06f39c65e7c8aaa89d7 (diff) | |
download | timeline-f5ccd0d9855f82e14c6b765eee6a04b22c50dc8a.tar.gz timeline-f5ccd0d9855f82e14c6b765eee6a04b22c50dc8a.tar.bz2 timeline-f5ccd0d9855f82e14c6b765eee6a04b22c50dc8a.zip |
...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/HttpResponseExtensions.cs | 14 |
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);
- }
- }
-}
|