From e9ef5b955fdd883eec4f73bfb65519b9a64e6d7b Mon Sep 17 00:00:00 2001 From: Vincent Devos Date: Sat, 30 Mar 2019 07:43:55 +0100 Subject: [PATCH 1/3] [csharp] update sample after #2528 --- .../csharp/OpenAPIClient/docs/AnimalFarm.md | 8 - .../OpenAPIClient/docs/StringBooleanMap.md | 8 - .../Api/AnotherFakeApiTests.cs | 16 +- .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 65 ++++-- .../Api/FakeClassnameTags123ApiTests.cs | 12 +- .../Api/StoreApiTests.cs | 12 +- .../Org.OpenAPITools.Test/Api/UserApiTests.cs | 24 +-- .../Model/AdditionalPropertiesClassTests.cs | 92 ++++++++- .../Model/AnimalFarmTests.cs | 72 ------- .../Model/AnimalTests.cs | 8 +- .../Model/ApiResponseTests.cs | 8 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 8 +- .../Model/ArrayOfNumberOnlyTests.cs | 8 +- .../Model/ArrayTestTests.cs | 8 +- .../Model/CapitalizationTests.cs | 8 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 8 +- .../Model/CategoryTests.cs | 8 +- .../Model/ClassModelTests.cs | 8 +- .../Org.OpenAPITools.Test/Model/DogTests.cs | 8 +- .../Model/EnumArraysTests.cs | 8 +- .../Model/EnumClassTests.cs | 8 +- .../Model/EnumTestTests.cs | 8 +- .../Model/FormatTestTests.cs | 8 +- .../Model/HasOnlyReadOnlyTests.cs | 8 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 8 +- .../Model/MapTestTests.cs | 24 ++- ...ertiesAndAdditionalPropertiesClassTests.cs | 8 +- .../Model/Model200ResponseTests.cs | 8 +- .../Model/ModelClientTests.cs | 8 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 8 +- .../Model/NumberOnlyTests.cs | 8 +- .../Org.OpenAPITools.Test/Model/OrderTests.cs | 8 +- .../Model/OuterCompositeTests.cs | 8 +- .../Model/OuterEnumTests.cs | 8 +- .../Org.OpenAPITools.Test/Model/PetTests.cs | 190 ++++++++++-------- .../Model/ReadOnlyFirstTests.cs | 8 +- .../Model/ReturnTests.cs | 8 +- .../Model/SpecialModelNameTests.cs | 8 +- .../Model/StringBooleanMapTests.cs | 72 ------- .../Org.OpenAPITools.Test/Model/TagTests.cs | 8 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 8 +- .../Model/XmlItemTests.cs | 36 ++-- .../src/Org.OpenAPITools/Model/Animal.cs | 1 + .../src/Org.OpenAPITools/Model/AnimalFarm.cs | 110 ---------- .../src/Org.OpenAPITools/Model/Category.cs | 1 + .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 4 + .../src/Org.OpenAPITools/Model/Name.cs | 1 + .../src/Org.OpenAPITools/Model/Pet.cs | 2 + .../Model/StringBooleanMap.cs | 110 ---------- .../Model/TypeHolderDefault.cs | 5 + .../Model/TypeHolderExample.cs | 5 + 52 files changed, 443 insertions(+), 660 deletions(-) delete mode 100644 samples/client/petstore/csharp/OpenAPIClient/docs/AnimalFarm.md delete mode 100644 samples/client/petstore/csharp/OpenAPIClient/docs/StringBooleanMap.md delete mode 100644 samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalFarmTests.cs delete mode 100644 samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/StringBooleanMapTests.cs delete mode 100644 samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/AnimalFarm.cs delete mode 100644 samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/StringBooleanMap.cs diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/AnimalFarm.md b/samples/client/petstore/csharp/OpenAPIClient/docs/AnimalFarm.md deleted file mode 100644 index 69c517258058..000000000000 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/AnimalFarm.md +++ /dev/null @@ -1,8 +0,0 @@ -# Org.OpenAPITools.Model.AnimalFarm -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/StringBooleanMap.md b/samples/client/petstore/csharp/OpenAPIClient/docs/StringBooleanMap.md deleted file mode 100644 index 6e7a71368df7..000000000000 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/StringBooleanMap.md +++ /dev/null @@ -1,8 +0,0 @@ -# Org.OpenAPITools.Model.StringBooleanMap -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs index 5518d3e2bda5..3564cba1bbc0 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing AnotherFakeApi /// /// - /// 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. /// [TestFixture] @@ -65,14 +65,14 @@ public void InstanceTest() /// - /// Test TestSpecialTags + /// Test Call123TestSpecialTags /// [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 (response, "response is ModelClient"); } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 92393857aa16..c7274563e0e7 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing FakeApi /// /// - /// 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. /// [TestFixture] @@ -64,6 +64,18 @@ public void InstanceTest() } + /// + /// Test CreateXmlItem + /// + [Test] + public void CreateXmlItemTest() + { + // TODO uncomment below to test the method and replace null with proper value + //XmlItem xmlItem = null; + //instance.CreateXmlItem(xmlItem); + + } + /// /// Test FakeOuterBooleanSerialize /// @@ -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 (response, "response is OuterComposite"); } @@ -112,6 +124,18 @@ public void FakeOuterStringSerializeTest() //Assert.IsInstanceOf (response, "response is string"); } + /// + /// Test TestBodyWithFileSchema + /// + [Test] + public void TestBodyWithFileSchemaTest() + { + // TODO uncomment below to test the method and replace null with proper value + //FileSchemaTestClass body = null; + //instance.TestBodyWithFileSchema(body); + + } + /// /// Test TestBodyWithQueryParams /// @@ -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); } @@ -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 (response, "response is ModelClient"); } @@ -181,6 +205,23 @@ public void TestEnumParametersTest() } + /// + /// Test TestGroupParameters + /// + [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); + + } + /// /// Test TestInlineAdditionalProperties /// @@ -188,8 +229,8 @@ public void TestEnumParametersTest() public void TestInlineAdditionalPropertiesTest() { // TODO uncomment below to test the method and replace null with proper value - //string requestBody = null; - //instance.TestInlineAdditionalProperties(requestBody); + //Dictionary param = null; + //instance.TestInlineAdditionalProperties(param); } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs index fdb61123cb2e..941cf0482851 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing FakeClassnameTags123Api /// /// - /// 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. /// [TestFixture] @@ -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 (response, "response is ModelClient"); } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs index 66301a51ebae..89768ca854e2 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing StoreApi /// /// - /// 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. /// [TestFixture] @@ -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 (response, "response is Order"); } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/UserApiTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/UserApiTests.cs index b515fa0721eb..ce7ccbc5e958 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/UserApiTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Api/UserApiTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing UserApi /// /// - /// 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. /// [TestFixture] @@ -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); } @@ -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 = null; - //instance.CreateUsersWithArrayInput(user); + //List body = null; + //instance.CreateUsersWithArrayInput(body); } @@ -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 = null; - //instance.CreateUsersWithListInput(user); + //List body = null; + //instance.CreateUsersWithListInput(body); } @@ -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); } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 28662ab2cb66..9d6a6426c9b1 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing AdditionalPropertiesClass /// /// - /// 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 model. /// [TestFixture] @@ -67,20 +67,92 @@ public void AdditionalPropertiesClassInstanceTest() /// - /// Test the property 'MapProperty' + /// Test the property 'MapString' /// [Test] - public void MapPropertyTest() + public void MapStringTest() { - // TODO unit test for the property 'MapProperty' + // TODO unit test for the property 'MapString' } /// - /// Test the property 'MapOfMapProperty' + /// Test the property 'MapNumber' /// [Test] - public void MapOfMapPropertyTest() + public void MapNumberTest() { - // TODO unit test for the property 'MapOfMapProperty' + // TODO unit test for the property 'MapNumber' + } + /// + /// Test the property 'MapInteger' + /// + [Test] + public void MapIntegerTest() + { + // TODO unit test for the property 'MapInteger' + } + /// + /// Test the property 'MapBoolean' + /// + [Test] + public void MapBooleanTest() + { + // TODO unit test for the property 'MapBoolean' + } + /// + /// Test the property 'MapArrayInteger' + /// + [Test] + public void MapArrayIntegerTest() + { + // TODO unit test for the property 'MapArrayInteger' + } + /// + /// Test the property 'MapArrayAnytype' + /// + [Test] + public void MapArrayAnytypeTest() + { + // TODO unit test for the property 'MapArrayAnytype' + } + /// + /// Test the property 'MapMapString' + /// + [Test] + public void MapMapStringTest() + { + // TODO unit test for the property 'MapMapString' + } + /// + /// Test the property 'MapMapAnytype' + /// + [Test] + public void MapMapAnytypeTest() + { + // TODO unit test for the property 'MapMapAnytype' + } + /// + /// Test the property 'Anytype1' + /// + [Test] + public void Anytype1Test() + { + // TODO unit test for the property 'Anytype1' + } + /// + /// Test the property 'Anytype2' + /// + [Test] + public void Anytype2Test() + { + // TODO unit test for the property 'Anytype2' + } + /// + /// Test the property 'Anytype3' + /// + [Test] + public void Anytype3Test() + { + // TODO unit test for the property 'Anytype3' } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalFarmTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalFarmTests.cs deleted file mode 100644 index be50c5e5860c..000000000000 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalFarmTests.cs +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Swagger 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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using NUnit.Framework; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; -using Org.OpenAPITools.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Test -{ - /// - /// Class for testing AnimalFarm - /// - /// - /// This file is automatically generated by Swagger Codegen. - /// Please update the test case below to test the model. - /// - [TestFixture] - public class AnimalFarmTests - { - // TODO uncomment below to declare an instance variable for AnimalFarm - //private AnimalFarm instance; - - /// - /// Setup before each test - /// - [SetUp] - public void Init() - { - // TODO uncomment below to create an instance of AnimalFarm - //instance = new AnimalFarm(); - } - - /// - /// Clean up after each test - /// - [TearDown] - public void Cleanup() - { - - } - - /// - /// Test an instance of AnimalFarm - /// - [Test] - public void AnimalFarmInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AnimalFarm - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AnimalFarm"); - } - - - - } - -} diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index cd7ebe850075..2849d780c8d9 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Animal /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 26a41042f66a..70c075751452 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing ApiResponse /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index e9e582698d3f..5eb86a385735 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing ArrayOfArrayOfNumberOnly /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index fb4323fb502c..cd7074afaa10 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing ArrayOfNumberOnly /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index 61027c65eec0..f1f286ce448e 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing ArrayTest /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 7fcbe7e3bb62..cb003b2abee0 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Capitalization /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatTests.cs index 8a3d987f53f3..6cd18d546ed3 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Cat /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 48eeef533565..f964723517e3 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Category /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index 25465af5a7f4..0a6de083da59 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing ClassModel /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogTests.cs index f21e67d17a76..fbae571470b0 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Dog /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index cdd094bbfbce..1760e0d4ef3c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing EnumArrays /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index d564f96f0afc..f1c67fe19145 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing EnumClass /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index eaf00cea4340..6ba0c31db416 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing EnumTest /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 776f1b2c9fd7..cca85ec5b2af 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing FormatTest /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 1d3bf4cbf737..1fef4b1371ee 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing HasOnlyReadOnly /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ListTests.cs index adfab8bed1d5..983fd757c32a 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing List /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 94b3c80a8db1..9bb76bde2392 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing MapTest /// /// - /// 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 model. /// [TestFixture] @@ -82,6 +82,22 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } + /// + /// Test the property 'DirectMap' + /// + [Test] + public void DirectMapTest() + { + // TODO unit test for the property 'DirectMap' + } + /// + /// Test the property 'IndirectMap' + /// + [Test] + public void IndirectMapTest() + { + // TODO unit test for the property 'IndirectMap' + } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index 27c30ec609f3..72e5a9130b9e 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing MixedPropertiesAndAdditionalPropertiesClass /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index fdb6f64bef52..f85a9a6a5817 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Model200Response /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 37e3723c2cc7..db4530153a85 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing ModelClient /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NameTests.cs index 42139ee78318..5575f11af517 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Name /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 6c8deb417266..d9b5c4ea4994 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing NumberOnly /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OrderTests.cs index aaf0d175ade0..36853bd0d17f 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Order /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 37cf359dcec0..7069f4e9554f 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing OuterComposite /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index 5a822def4bbc..f482ff479ec5 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing OuterEnum /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs index 055f5cb1f96f..ff0dec50c35e 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -1,3 +1,14 @@ +/* + * 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 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + using NUnit.Framework; using System; @@ -12,95 +23,98 @@ namespace Org.OpenAPITools.Test { - /// - /// Class for testing Pet - /// - /// - /// This file is automatically generated by Swagger Codegen. - /// Please update the test case below to test the model. - /// - [TestFixture] - public class PetTests - { - private Pet instance; - - private long petId = 11088; - - /// - /// Setup before each test - /// - [SetUp] - public void Init() - { + /// + /// Class for testing Pet + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + [TestFixture] + public class PetTests + { + private Pet instance; + + private long petId = 11088; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of Pet + //instance = new Pet(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { instance = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); - } - - /// - /// Clean up after each test - /// - [TearDown] - public void Cleanup() - { - } - - /// - /// Test an instance of Pet - /// - [Test] - public void PetInstanceTest() - { - Assert.IsInstanceOfType(typeof(Pet), instance); - } - - /// - /// Test the property 'Id' - /// - [Test] - public void IdTest() - { - // TODO: unit test for the property 'Id' - } - /// - /// Test the property 'Category' - /// - [Test] - public void CategoryTest() - { - // TODO: unit test for the property 'Category' - } - /// - /// Test the property 'Name' - /// - [Test] - public void NameTest() - { - // TODO: unit test for the property 'Name' - } - /// - /// Test the property 'PhotoUrls' - /// - [Test] - public void PhotoUrlsTest() - { - // TODO: unit test for the property 'PhotoUrls' - } - /// - /// Test the property 'Tags' - /// - [Test] - public void TagsTest() - { - // TODO: unit test for the property 'Tags' - } - /// - /// Test the property 'Status' - /// - [Test] - public void StatusTest() - { - // TODO: unit test for the property 'Status' - } + } + + /// + /// Test an instance of Pet + /// + [Test] + public void PetInstanceTest() + { + Assert.IsInstanceOfType (instance, "variable 'instance' is a Pet"); + } + + + /// + /// Test the property 'Id' + /// + [Test] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Category' + /// + [Test] + public void CategoryTest() + { + // TODO unit test for the property 'Category' + } + /// + /// Test the property 'Name' + /// + [Test] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'PhotoUrls' + /// + [Test] + public void PhotoUrlsTest() + { + // TODO unit test for the property 'PhotoUrls' + } + /// + /// Test the property 'Tags' + /// + [Test] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'Status' + /// + [Test] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } /// /// Test serialization @@ -178,4 +192,4 @@ public void TestEqual() } } -} \ No newline at end of file +} diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index 8801336ed4b0..cf1a8f54bb84 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing ReadOnlyFirst /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index 7233f26dfe25..1ac79a9f9100 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Return /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 9627f0c5632d..0a4dcb6a7bcd 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing SpecialModelName /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/StringBooleanMapTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/StringBooleanMapTests.cs deleted file mode 100644 index efc4cd907733..000000000000 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/StringBooleanMapTests.cs +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using NUnit.Framework; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; -using Org.OpenAPITools.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Test -{ - /// - /// Class for testing StringBooleanMap - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - [TestFixture] - public class StringBooleanMapTests - { - // TODO uncomment below to declare an instance variable for StringBooleanMap - //private StringBooleanMap instance; - - /// - /// Setup before each test - /// - [SetUp] - public void Init() - { - // TODO uncomment below to create an instance of StringBooleanMap - //instance = new StringBooleanMap(); - } - - /// - /// Clean up after each test - /// - [TearDown] - public void Cleanup() - { - - } - - /// - /// Test an instance of StringBooleanMap - /// - [Test] - public void StringBooleanMapInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" StringBooleanMap - //Assert.IsInstanceOfType (instance, "variable 'instance' is a StringBooleanMap"); - } - - - - } - -} diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TagTests.cs index e8e3890d948c..52ee4ca988fe 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing Tag /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/UserTests.cs index f1f65ef8aa3c..8e073d2aa0ea 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -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: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * + * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test /// Class for testing User /// /// - /// 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 model. /// [TestFixture] diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs index cbed089eea04..b936ec597e01 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs @@ -251,52 +251,52 @@ public void NamespaceWrappedArrayTest() // TODO unit test for the property 'NamespaceWrappedArray' } /// - /// Test the property 'PrefixNamespaceString' + /// Test the property 'PrefixNsString' /// [Test] - public void PrefixNamespaceStringTest() + public void PrefixNsStringTest() { - // TODO unit test for the property 'PrefixNamespaceString' + // TODO unit test for the property 'PrefixNsString' } /// - /// Test the property 'PrefixNamespaceNumber' + /// Test the property 'PrefixNsNumber' /// [Test] - public void PrefixNamespaceNumberTest() + public void PrefixNsNumberTest() { - // TODO unit test for the property 'PrefixNamespaceNumber' + // TODO unit test for the property 'PrefixNsNumber' } /// - /// Test the property 'PrefixNamespaceInteger' + /// Test the property 'PrefixNsInteger' /// [Test] - public void PrefixNamespaceIntegerTest() + public void PrefixNsIntegerTest() { - // TODO unit test for the property 'PrefixNamespaceInteger' + // TODO unit test for the property 'PrefixNsInteger' } /// - /// Test the property 'PrefixNamespaceBoolean' + /// Test the property 'PrefixNsBoolean' /// [Test] - public void PrefixNamespaceBooleanTest() + public void PrefixNsBooleanTest() { - // TODO unit test for the property 'PrefixNamespaceBoolean' + // TODO unit test for the property 'PrefixNsBoolean' } /// - /// Test the property 'PrefixNamespaceArray' + /// Test the property 'PrefixNsArray' /// [Test] - public void PrefixNamespaceArrayTest() + public void PrefixNsArrayTest() { - // TODO unit test for the property 'PrefixNamespaceArray' + // TODO unit test for the property 'PrefixNsArray' } /// - /// Test the property 'PrefixNamespaceWrappedArray' + /// Test the property 'PrefixNsWrappedArray' /// [Test] - public void PrefixNamespaceWrappedArrayTest() + public void PrefixNsWrappedArrayTest() { - // TODO unit test for the property 'PrefixNamespaceWrappedArray' + // TODO unit test for the property 'PrefixNsWrappedArray' } } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Animal.cs index 16c89207e31d..9d88ed15608b 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Animal.cs @@ -55,6 +55,7 @@ protected Animal() { } { this.ClassName = className; } + // use default value if no "color" provided if (color == null) { diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/AnimalFarm.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/AnimalFarm.cs deleted file mode 100644 index e33d6073c8b1..000000000000 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/AnimalFarm.cs +++ /dev/null @@ -1,110 +0,0 @@ -/* - * 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 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; - -namespace Org.OpenAPITools.Model -{ - /// - /// AnimalFarm - /// - [DataContract] - public partial class AnimalFarm : List, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - public AnimalFarm() : base() - { - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AnimalFarm {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AnimalFarm); - } - - /// - /// Returns true if AnimalFarm instances are equal - /// - /// Instance of AnimalFarm to be compared - /// Boolean - public bool Equals(AnimalFarm input) - { - if (input == null) - return false; - - return base.Equals(input); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Category.cs index a795fc58c582..c62528428540 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Category.cs @@ -51,6 +51,7 @@ protected Category() { } { this.Name = name; } + this.Id = id; } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs index 707ab1fb39e8..512f0e87ca53 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs @@ -163,6 +163,7 @@ protected EnumTest() { } { this.EnumStringRequired = enumStringRequired; } + this.EnumString = enumString; this.EnumInteger = enumInteger; this.EnumNumber = enumNumber; diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs index 1b847c16934e..14a74c99d9f9 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FormatTest.cs @@ -62,6 +62,7 @@ protected FormatTest() { } { this.Number = number; } + // to ensure "_byte" is required (not null) if (_byte == null) { @@ -71,6 +72,7 @@ protected FormatTest() { } { this.Byte = _byte; } + // to ensure "date" is required (not null) if (date == null) { @@ -80,6 +82,7 @@ protected FormatTest() { } { this.Date = date; } + // to ensure "password" is required (not null) if (password == null) { @@ -89,6 +92,7 @@ protected FormatTest() { } { this.Password = password; } + this.Integer = integer; this.Int32 = int32; this.Int64 = int64; diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs index 68f848ca0915..6d2bee0b25af 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Name.cs @@ -51,6 +51,7 @@ protected Name() { } { this._Name = name; } + this.Property = property; } diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Pet.cs index 1e213e5006ad..619d1a7a58b5 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/Pet.cs @@ -88,6 +88,7 @@ protected Pet() { } { this.Name = name; } + // to ensure "photoUrls" is required (not null) if (photoUrls == null) { @@ -97,6 +98,7 @@ protected Pet() { } { this.PhotoUrls = photoUrls; } + this.Id = id; this.Category = category; this.Tags = tags; diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/StringBooleanMap.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/StringBooleanMap.cs deleted file mode 100644 index df4dc6e486dc..000000000000 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/StringBooleanMap.cs +++ /dev/null @@ -1,110 +0,0 @@ -/* - * 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 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; - -namespace Org.OpenAPITools.Model -{ - /// - /// StringBooleanMap - /// - [DataContract] - public partial class StringBooleanMap : Dictionary, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - public StringBooleanMap() : base() - { - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StringBooleanMap {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StringBooleanMap); - } - - /// - /// Returns true if StringBooleanMap instances are equal - /// - /// Instance of StringBooleanMap to be compared - /// Boolean - public bool Equals(StringBooleanMap input) - { - if (input == null) - return false; - - return base.Equals(input); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderDefault.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderDefault.cs index 1409cbbf1361..0e0c1ee4fae9 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderDefault.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderDefault.cs @@ -54,6 +54,7 @@ protected TypeHolderDefault() { } { this.StringItem = stringItem; } + // to ensure "numberItem" is required (not null) if (numberItem == null) { @@ -63,6 +64,7 @@ protected TypeHolderDefault() { } { this.NumberItem = numberItem; } + // to ensure "integerItem" is required (not null) if (integerItem == null) { @@ -72,6 +74,7 @@ protected TypeHolderDefault() { } { this.IntegerItem = integerItem; } + // to ensure "boolItem" is required (not null) if (boolItem == null) { @@ -81,6 +84,7 @@ protected TypeHolderDefault() { } { this.BoolItem = boolItem; } + // to ensure "arrayItem" is required (not null) if (arrayItem == null) { @@ -90,6 +94,7 @@ protected TypeHolderDefault() { } { this.ArrayItem = arrayItem; } + } /// diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs index cb590435f017..4cf24af64939 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs @@ -54,6 +54,7 @@ protected TypeHolderExample() { } { this.StringItem = stringItem; } + // to ensure "numberItem" is required (not null) if (numberItem == null) { @@ -63,6 +64,7 @@ protected TypeHolderExample() { } { this.NumberItem = numberItem; } + // to ensure "integerItem" is required (not null) if (integerItem == null) { @@ -72,6 +74,7 @@ protected TypeHolderExample() { } { this.IntegerItem = integerItem; } + // to ensure "boolItem" is required (not null) if (boolItem == null) { @@ -81,6 +84,7 @@ protected TypeHolderExample() { } { this.BoolItem = boolItem; } + // to ensure "arrayItem" is required (not null) if (arrayItem == null) { @@ -90,6 +94,7 @@ protected TypeHolderExample() { } { this.ArrayItem = arrayItem; } + } /// From 6448810333281e702378a8b423161f0e77a88a5e Mon Sep 17 00:00:00 2001 From: Vincent Devos Date: Sat, 30 Mar 2019 07:53:47 +0100 Subject: [PATCH 2/3] [csharp] update sample after #2528 --- .../OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs index ff0dec50c35e..74c54526d4fa 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -43,8 +43,7 @@ public class PetTests [SetUp] public void Init() { - // TODO uncomment below to create an instance of Pet - //instance = new Pet(); + instance = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); } /// @@ -53,7 +52,6 @@ public void Init() [TearDown] public void Cleanup() { - instance = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); } From 54868b1bbbbf9102b34cd8f250d13127ba91ff10 Mon Sep 17 00:00:00 2001 From: Vincent Devos Date: Sat, 30 Mar 2019 08:35:02 +0100 Subject: [PATCH 3/3] [csharp] update sample after #2528 --- .../OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs index 74c54526d4fa..3261b8b18e7c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -61,7 +61,7 @@ public void Cleanup() [Test] public void PetInstanceTest() { - Assert.IsInstanceOfType (instance, "variable 'instance' is a Pet"); + Assert.IsInstanceOfType(typeof(Pet), instance); }