Skip to content

[csharp] update Petsore sample #2550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
Expand All @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing AnotherFakeApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
Expand Down Expand Up @@ -65,14 +65,14 @@ public void InstanceTest()


/// <summary>
/// Test TestSpecialTags
/// Test Call123TestSpecialTags
/// </summary>
[Test]
public void TestSpecialTagsTest()
public void Call123TestSpecialTagsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//ModelClient modelClient = null;
//var response = instance.TestSpecialTags(modelClient);
//ModelClient body = null;
//var response = instance.Call123TestSpecialTags(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
Expand All @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing FakeApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
Expand Down Expand Up @@ -64,6 +64,18 @@ public void InstanceTest()
}


/// <summary>
/// Test CreateXmlItem
/// </summary>
[Test]
public void CreateXmlItemTest()
{
// TODO uncomment below to test the method and replace null with proper value
//XmlItem xmlItem = null;
//instance.CreateXmlItem(xmlItem);

}

/// <summary>
/// Test FakeOuterBooleanSerialize
/// </summary>
Expand All @@ -83,8 +95,8 @@ public void FakeOuterBooleanSerializeTest()
public void FakeOuterCompositeSerializeTest()
{
// TODO uncomment below to test the method and replace null with proper value
//OuterComposite outerComposite = null;
//var response = instance.FakeOuterCompositeSerialize(outerComposite);
//OuterComposite body = null;
//var response = instance.FakeOuterCompositeSerialize(body);
//Assert.IsInstanceOf<OuterComposite> (response, "response is OuterComposite");
}

Expand Down Expand Up @@ -112,6 +124,18 @@ public void FakeOuterStringSerializeTest()
//Assert.IsInstanceOf<string> (response, "response is string");
}

/// <summary>
/// Test TestBodyWithFileSchema
/// </summary>
[Test]
public void TestBodyWithFileSchemaTest()
{
// TODO uncomment below to test the method and replace null with proper value
//FileSchemaTestClass body = null;
//instance.TestBodyWithFileSchema(body);

}

/// <summary>
/// Test TestBodyWithQueryParams
/// </summary>
Expand All @@ -120,8 +144,8 @@ public void TestBodyWithQueryParamsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string query = null;
//User user = null;
//instance.TestBodyWithQueryParams(query, user);
//User body = null;
//instance.TestBodyWithQueryParams(query, body);

}

Expand All @@ -132,8 +156,8 @@ public void TestBodyWithQueryParamsTest()
public void TestClientModelTest()
{
// TODO uncomment below to test the method and replace null with proper value
//ModelClient modelClient = null;
//var response = instance.TestClientModel(modelClient);
//ModelClient body = null;
//var response = instance.TestClientModel(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}

Expand Down Expand Up @@ -181,15 +205,32 @@ public void TestEnumParametersTest()

}

/// <summary>
/// Test TestGroupParameters
/// </summary>
[Test]
public void TestGroupParametersTest()
{
// TODO uncomment below to test the method and replace null with proper value
//int? requiredStringGroup = null;
//bool? requiredBooleanGroup = null;
//long? requiredInt64Group = null;
//int? stringGroup = null;
//bool? booleanGroup = null;
//long? int64Group = null;
//instance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);

}

/// <summary>
/// Test TestInlineAdditionalProperties
/// </summary>
[Test]
public void TestInlineAdditionalPropertiesTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string requestBody = null;
//instance.TestInlineAdditionalProperties(requestBody);
//Dictionary<string, string> param = null;
//instance.TestInlineAdditionalProperties(param);

}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
Expand All @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing FakeClassnameTags123Api
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
Expand Down Expand Up @@ -71,8 +71,8 @@ public void InstanceTest()
public void TestClassnameTest()
{
// TODO uncomment below to test the method and replace null with proper value
//ModelClient modelClient = null;
//var response = instance.TestClassname(modelClient);
//ModelClient body = null;
//var response = instance.TestClassname(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
Expand All @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing StoreApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
Expand Down Expand Up @@ -106,8 +106,8 @@ public void GetOrderByIdTest()
public void PlaceOrderTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Order order = null;
//var response = instance.PlaceOrder(order);
//Order body = null;
//var response = instance.PlaceOrder(body);
//Assert.IsInstanceOf<Order> (response, "response is Order");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
Expand All @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing UserApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
Expand Down Expand Up @@ -71,8 +71,8 @@ public void InstanceTest()
public void CreateUserTest()
{
// TODO uncomment below to test the method and replace null with proper value
//User user = null;
//instance.CreateUser(user);
//User body = null;
//instance.CreateUser(body);

}

Expand All @@ -83,8 +83,8 @@ public void CreateUserTest()
public void CreateUsersWithArrayInputTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<User> user = null;
//instance.CreateUsersWithArrayInput(user);
//List<User> body = null;
//instance.CreateUsersWithArrayInput(body);

}

Expand All @@ -95,8 +95,8 @@ public void CreateUsersWithArrayInputTest()
public void CreateUsersWithListInputTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<User> user = null;
//instance.CreateUsersWithListInput(user);
//List<User> body = null;
//instance.CreateUsersWithListInput(body);

}

Expand Down Expand Up @@ -156,8 +156,8 @@ public void UpdateUserTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string username = null;
//User user = null;
//instance.UpdateUser(username, user);
//User body = null;
//instance.UpdateUser(username, body);

}

Expand Down
Loading