-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): added basic tests for request class
More tests will be included soon
- Loading branch information
Showing
9 changed files
with
529 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Web.Test.Models | ||
{ | ||
public class HttpBinDeleteResponse | ||
{ | ||
[JsonPropertyName("args")] | ||
public Dictionary<string, string> Args { get; set; } | ||
|
||
[JsonPropertyName("data")] | ||
public string Data { get; set; } | ||
|
||
[JsonPropertyName("files")] | ||
public Dictionary<string, string> Files { get; set; } | ||
|
||
[JsonPropertyName("form")] | ||
public Dictionary<string, string> Form { get; set; } | ||
|
||
[JsonPropertyName("headers")] | ||
public HttpBinDeleteResponseHeaders Headers { get; set; } | ||
|
||
[JsonPropertyName("json")] | ||
public object Json { get; set; } | ||
|
||
[JsonPropertyName("origin")] | ||
public string Origin { get; set; } | ||
|
||
[JsonPropertyName("url")] | ||
public string Url { get; set; } | ||
} | ||
|
||
public class HttpBinDeleteResponseHeaders | ||
{ | ||
[JsonPropertyName("Accept")] | ||
public string Accept { get; set; } | ||
|
||
[JsonPropertyName("Accept-Encoding")] | ||
public string AcceptEncoding { get; set; } | ||
|
||
[JsonPropertyName("Accept-Language")] | ||
public string AcceptLanguage { get; set; } | ||
|
||
[JsonPropertyName("Host")] | ||
public string Host { get; set; } | ||
|
||
[JsonPropertyName("Origin")] | ||
public string Origin { get; set; } | ||
|
||
[JsonPropertyName("Priority")] | ||
public string Priority { get; set; } | ||
|
||
[JsonPropertyName("Referer")] | ||
public string Referer { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Dest")] | ||
public string SecFetchDest { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Mode")] | ||
public string SecFetchMode { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Site")] | ||
public string SecFetchSite { get; set; } | ||
|
||
[JsonPropertyName("User-Agent")] | ||
public string UserAgent { get; set; } | ||
|
||
[JsonPropertyName("X-Amzn-Trace-Id")] | ||
public string AmazonTraceId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Web.Test.Models | ||
{ | ||
public class HttpBinGetResponse | ||
{ | ||
[JsonPropertyName("args")] | ||
public Dictionary<string, string> Args { get; set; } | ||
|
||
[JsonPropertyName("headers")] | ||
public HttpBinGetResponseHeaders Headers { get; set; } | ||
|
||
[JsonPropertyName("origin")] | ||
public string Origin { get; set; } | ||
|
||
[JsonPropertyName("url")] | ||
public string Url { get; set; } | ||
} | ||
|
||
public class HttpBinGetResponseHeaders | ||
{ | ||
[JsonPropertyName("Accept")] | ||
public string Accept { get; set; } | ||
|
||
[JsonPropertyName("Accept-Encoding")] | ||
public string AcceptEncoding { get; set; } | ||
|
||
[JsonPropertyName("Accept-Language")] | ||
public string AcceptLanguage { get; set; } | ||
|
||
[JsonPropertyName("Host")] | ||
public string Host { get; set; } | ||
|
||
[JsonPropertyName("Priority")] | ||
public string Priority { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Dest")] | ||
public string SecFetchDest { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Mode")] | ||
public string SecFecthMode { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Site")] | ||
public string SecFetchSite { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-User")] | ||
public string SecFetchUser { get; set; } | ||
|
||
[JsonPropertyName("Upgrade-Insecure-Requests")] | ||
public string UpgradeInsecureRequests { get; set; } | ||
|
||
[JsonPropertyName("User-Agent")] | ||
public string UserAgent { get; set; } | ||
|
||
[JsonPropertyName("X-Amzn-Trace-Id")] | ||
public string AmazonTraceId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Web.Test.Models | ||
{ | ||
public class HttpBinPatchResponse | ||
{ | ||
[JsonPropertyName("args")] | ||
public Dictionary<string, string> Args { get; set; } | ||
|
||
[JsonPropertyName("data")] | ||
public string Data { get; set; } | ||
|
||
[JsonPropertyName("files")] | ||
public Dictionary<string, string> Files { get; set; } | ||
|
||
[JsonPropertyName("form")] | ||
public Dictionary<string, string> Form { get; set; } | ||
|
||
[JsonPropertyName("headers")] | ||
public HttpBinPatchResponseHeaders Headers { get; set; } | ||
|
||
[JsonPropertyName("json")] | ||
public object Json { get; set; } | ||
|
||
[JsonPropertyName("origin")] | ||
public string Origin { get; set; } | ||
|
||
[JsonPropertyName("url")] | ||
public string Url { get; set; } | ||
} | ||
|
||
public class HttpBinPatchResponseHeaders | ||
{ | ||
[JsonPropertyName("Accept")] | ||
public string Accept { get; set; } | ||
|
||
[JsonPropertyName("Accept-Encoding")] | ||
public string AcceptEncoding { get; set; } | ||
|
||
[JsonPropertyName("Accept-Language")] | ||
public string AcceptLanguage { get; set; } | ||
|
||
[JsonPropertyName("Host")] | ||
public string Host { get; set; } | ||
|
||
[JsonPropertyName("Origin")] | ||
public string Origin { get; set; } | ||
|
||
[JsonPropertyName("Priority")] | ||
public string Priority { get; set; } | ||
|
||
[JsonPropertyName("Referer")] | ||
public string Referer { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Dest")] | ||
public string SecFetchDest { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Mode")] | ||
public string SecFetchMode { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Site")] | ||
public string SecFetchSite { get; set; } | ||
|
||
[JsonPropertyName("User-Agent")] | ||
public string UserAgent { get; set; } | ||
|
||
[JsonPropertyName("X-Amzn-Trace-Id")] | ||
public string AmazonTraceId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Web.Test.Models | ||
{ | ||
public class HttpBinPostFileResponse | ||
{ | ||
[JsonPropertyName("args")] | ||
public Dictionary<string, string> Args { get; set; } | ||
|
||
[JsonPropertyName("data")] | ||
public string Data { get; set; } | ||
|
||
[JsonPropertyName("files")] | ||
public Dictionary<string, string> Files { get; set; } | ||
|
||
[JsonPropertyName("form")] | ||
public Dictionary<string, string> Form { get; set; } | ||
|
||
[JsonPropertyName("headers")] | ||
public HttpBinPostFileResponseHeaders Headers { get; set; } | ||
|
||
[JsonPropertyName("json")] | ||
public object Json { get; set; } | ||
|
||
[JsonPropertyName("origin")] | ||
public string Origin { get; set; } | ||
|
||
[JsonPropertyName("url")] | ||
public string Url { get; set; } | ||
} | ||
|
||
public class HttpBinPostFileResponseHeaders | ||
{ | ||
[JsonPropertyName("Accept")] | ||
public string Accept { get; set; } | ||
|
||
[JsonPropertyName("Accept-Encoding")] | ||
public string AcceptEncoding { get; set; } | ||
|
||
[JsonPropertyName("Cache-Control")] | ||
public string CacheControl { get; set; } | ||
|
||
[JsonPropertyName("Content-Length")] | ||
public string ContentLength { get; set; } | ||
|
||
[JsonPropertyName("Content-Type")] | ||
public string ContentType { get; set; } | ||
|
||
[JsonPropertyName("Host")] | ||
public string Host { get; set; } | ||
|
||
[JsonPropertyName("Postman-Token")] | ||
public string PostmanToken { get; set; } | ||
|
||
[JsonPropertyName("User-Agent")] | ||
public string UserAgent { get; set; } | ||
|
||
[JsonPropertyName("X-Amzn-Trace-Id")] | ||
public string AmazonTraceId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Web.Test.Models | ||
{ | ||
public class HttpBinPostResponse | ||
{ | ||
[JsonPropertyName("args")] | ||
public Dictionary<string, string> Args { get; set; } | ||
|
||
[JsonPropertyName("data")] | ||
public string Data { get; set; } | ||
|
||
[JsonPropertyName("files")] | ||
public Dictionary<string, string> Files { get; set; } | ||
|
||
[JsonPropertyName("form")] | ||
public Dictionary<string, string> Form { get; set; } | ||
|
||
[JsonPropertyName("headers")] | ||
public HttpBinPostResponseHeaders Headers { get; set; } | ||
|
||
[JsonPropertyName("json")] | ||
public object Json { get; set; } | ||
|
||
[JsonPropertyName("origin")] | ||
public string Origin { get; set; } | ||
|
||
[JsonPropertyName("url")] | ||
public string Url { get; set; } | ||
} | ||
|
||
public class HttpBinPostResponseHeaders | ||
{ | ||
[JsonPropertyName("Accept")] | ||
public string Accept { get; set; } | ||
|
||
[JsonPropertyName("Accept-Encoding")] | ||
public string AcceptEncoding { get; set; } | ||
|
||
[JsonPropertyName("Accept-Language")] | ||
public string AcceptLanguage { get; set; } | ||
|
||
[JsonPropertyName("Content-Length")] | ||
public string ContentLength { get; set; } | ||
|
||
[JsonPropertyName("Host")] | ||
public string Host { get; set; } | ||
|
||
[JsonPropertyName("Origin")] | ||
public string Origin { get; set; } | ||
|
||
[JsonPropertyName("Priority")] | ||
public string Priority { get; set; } | ||
|
||
[JsonPropertyName("Referer")] | ||
public string Referer { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Dest")] | ||
public string SecFetchDest { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Mode")] | ||
public string SecFetchMode { get; set; } | ||
|
||
[JsonPropertyName("Sec-Fetch-Site")] | ||
public string SecFetchSite { get; set; } | ||
|
||
[JsonPropertyName("User-Agent")] | ||
public string UserAgent { get; set; } | ||
|
||
[JsonPropertyName("X-Amzn-Trace-Id")] | ||
public string AmazonTraceId { get; set; } | ||
} | ||
} |
Oops, something went wrong.