Fix casing on enum (#94)

* Fix casing on enum
* Update tests
This commit is contained in:
Rick Winter 2020-05-08 10:49:30 -07:00 committed by GitHub
parent 23121835f2
commit 6b7b428e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -58,12 +58,12 @@ public:
enum class HttpMethod
{
GET,
HEAD,
POST,
PUT,
DELETE,
PATCH,
Get,
Head,
Post,
Put,
Delete,
Patch,
};
class Request

View File

@ -13,7 +13,7 @@ using namespace azure::core;
TEST(Http_Request, getters)
{
http::HttpMethod httpMethod = http::HttpMethod::GET;
http::HttpMethod httpMethod = http::HttpMethod::Get;
std::string url = "http://test.url.com";
http::Request req(httpMethod, url);
@ -90,7 +90,7 @@ TEST(Http_Request, getters)
TEST(Http_Request, query_parameter)
{
http::HttpMethod httpMethod = http::HttpMethod::PUT;
http::HttpMethod httpMethod = http::HttpMethod::Put;
std::string url = "http://test.com";
http::Request req(httpMethod, url);
@ -123,7 +123,7 @@ TEST(Http_Request, query_parameter)
TEST(Http_Request, add_path)
{
http::HttpMethod httpMethod = http::HttpMethod::POST;
http::HttpMethod httpMethod = http::HttpMethod::Post;
std::string url = "http://test.com";
http::Request req(httpMethod, url);

View File

@ -18,7 +18,7 @@ int main()
string host("https://httpbin.org/get");
cout << "testing curl from transport" << endl << "Host: " << host << endl;
auto request = http::Request(http::HttpMethod::GET, host);
auto request = http::Request(http::HttpMethod::Get, host);
try
{