From f11cb7f17d751b82ac75e8305c4a06a9b58c17a8 Mon Sep 17 00:00:00 2001 From: devhl-labs Date: Sat, 15 Oct 2022 22:18:48 -0400 Subject: [PATCH] [csharp] Delete and build samples (#13641) * delete and build samples * how did this not get committed? * how did this not get committed? * how did this not get committed? * fixed csharp netcore functions * reverted two files * restored manually created tests * reverted some unintentional changes * restored unintended changes --- bin/configs/csharp-netcore-functions.yaml | 5 +- .../CsharpNetcoreFunctionsServerCodegen.java | 7 +- .../docs/InlineObject.md | 10 - .../docs/InlineObject1.md | 10 - .../docs/InlineObject2.md | 12 - .../docs/MultipartMixedMarker.md | 11 - .../Api/MultipartApiTests.cs | 5 +- .../Model/InlineObject1Tests.cs | 70 -- .../Model/InlineObject2Tests.cs | 78 --- .../Model/InlineObjectTests.cs | 70 -- .../Model/MultipartMixedMarkerTests.cs | 70 -- .../Org.OpenAPITools/Model/InlineObject.cs | 121 ---- .../Org.OpenAPITools/Model/InlineObject1.cs | 121 ---- .../Org.OpenAPITools/Model/InlineObject2.cs | 154 ----- .../Model/MultipartMixedMarker.cs | 120 ---- .../Tests/Tests/Apis/PetApiTests.cs | 156 ----- .../Tests/Tests/Apis/StoreApiTests.cs | 103 --- .../Tests/Tests/Apis/UserApiTests.cs | 148 ----- .../docs/ApiResponse.md | 13 - .../csharp-netcore-functions/docs/Category.md | 12 - .../csharp-netcore-functions/docs/Order.md | 16 - .../csharp-netcore-functions/docs/Pet.md | 16 - .../csharp-netcore-functions/docs/PetApi.md | 616 ------------------ .../csharp-netcore-functions/docs/StoreApi.md | 298 --------- .../csharp-netcore-functions/docs/Tag.md | 12 - .../csharp-netcore-functions/docs/User.md | 18 - .../csharp-netcore-functions/docs/UserApi.md | 603 ----------------- .../Models/ApiResponseTests.cs | 86 --- .../Models/CategoryTests.cs | 78 --- .../Models/OrderTests.cs | 110 ---- .../Org.OpenAPITools.Test/Models/PetTests.cs | 110 ---- .../Org.OpenAPITools.Test/Models/TagTests.cs | 78 --- .../Org.OpenAPITools.Test/Models/UserTests.cs | 126 ---- .../docs/InlineResponseDefault.md | 10 - .../Api/DefaultApiTests.cs | 2 +- .../Model/AnimalTests.cs | 18 +- .../Model/GrandparentAnimalTests.cs | 18 +- .../Model/InlineResponseDefaultTests.cs | 70 -- .../Model/SerializeBasedOnInitialization.cs | 2 +- .../Model/InlineResponseDefault.cs | 154 ----- .../docs/models/InlineResponseDefault.md | 10 - .../Api/DefaultApiTests.cs | 2 +- .../Model/AnimalTests.cs | 18 +- .../Model/GrandparentAnimalTests.cs | 18 +- .../Model/InlineResponseDefaultTests.cs | 70 -- .../Model/InlineResponseDefault.cs | 121 ---- .../docs/models/InlineResponseDefault.md | 10 - .../Api/DefaultApiTests.cs | 2 +- .../Model/AnimalTests.cs | 18 +- .../Model/GrandparentAnimalTests.cs | 18 +- .../Model/InlineResponseDefaultTests.cs | 70 -- .../Model/InlineResponseDefault.cs | 119 ---- .../docs/models/InlineResponseDefault.md | 10 - .../Api/DefaultApiTests.cs | 2 +- .../Model/AnimalTests.cs | 18 +- .../Model/GrandparentAnimalTests.cs | 18 +- .../Model/InlineResponseDefaultTests.cs | 70 -- .../Model/InlineResponseDefault.cs | 119 ---- .../docs/InlineResponseDefault.md | 10 - .../Api/DefaultApiTests.cs | 2 +- .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 2 +- .../Model/AnimalTests.cs | 18 +- .../Model/EnumTestTests.cs | 8 + .../Model/GrandparentAnimalTests.cs | 18 +- .../Model/InlineResponseDefaultTests.cs | 70 -- .../Model/ModelClientTests.cs | 6 +- .../Model/SpecialModelNameTests.cs | 8 + .../Model/InlineResponseDefault.cs | 133 ---- .../OpenAPIClient-net47/docs/InlineObject.md | 10 - .../OpenAPIClient-net47/docs/InlineObject1.md | 10 - .../OpenAPIClient-net47/docs/InlineObject2.md | 10 - .../OpenAPIClient-net47/docs/InlineObject3.md | 22 - .../OpenAPIClient-net47/docs/InlineObject4.md | 10 - .../OpenAPIClient-net47/docs/InlineObject5.md | 10 - .../docs/InlineResponseDefault.md | 10 - .../Api/DefaultApiTests.cs | 2 +- .../Model/AnimalTests.cs | 18 +- .../Model/EnumTestTests.cs | 8 + .../Model/FormatTestTests.cs | 8 + .../Model/GrandparentAnimalTests.cs | 18 +- .../Model/InlineObject1Tests.cs | 78 --- .../Model/InlineObject2Tests.cs | 78 --- .../Model/InlineObject3Tests.cs | 174 ----- .../Model/InlineObject4Tests.cs | 78 --- .../Model/InlineObject5Tests.cs | 78 --- .../Model/InlineObjectTests.cs | 78 --- .../Model/InlineResponseDefaultTests.cs | 70 -- .../Model/ModelClientTests.cs | 6 +- .../Model/SpecialModelNameTests.cs | 8 + .../Org.OpenAPITools/Model/InlineObject.cs | 141 ---- .../Org.OpenAPITools/Model/InlineObject1.cs | 141 ---- .../Org.OpenAPITools/Model/InlineObject2.cs | 185 ------ .../Org.OpenAPITools/Model/InlineObject3.cs | 370 ----------- .../Org.OpenAPITools/Model/InlineObject4.cs | 151 ----- .../Org.OpenAPITools/Model/InlineObject5.cs | 150 ----- .../Model/InlineResponseDefault.cs | 132 ---- .../docs/InlineResponseDefault.md | 10 - .../Api/DefaultApiTests.cs | 2 +- .../Org.OpenAPITools.Test/Api/PetApiTests.cs | 22 +- .../Api/StoreApiTests.cs | 2 +- .../Org.OpenAPITools.Test/Api/UserApiTests.cs | 2 +- .../Model/AnimalTests.cs | 18 +- .../Model/ApiResponseTests.cs | 2 +- .../Model/CategoryTests.cs | 2 +- .../Model/EnumTestTests.cs | 8 + .../Model/GrandparentAnimalTests.cs | 18 +- .../Model/InlineResponseDefaultTests.cs | 70 -- .../Model/ModelClientTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/OrderTests.cs | 2 +- .../Org.OpenAPITools.Test/Model/PetTests.cs | 2 +- .../Model/SpecialModelNameTests.cs | 8 + .../Org.OpenAPITools.Test/Model/TagTests.cs | 2 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 34 +- .../Model/InlineResponseDefault.cs | 132 ---- .../docs/AdditionalPropertiesAnyType.md | 9 - .../docs/AdditionalPropertiesArray.md | 9 - .../docs/AdditionalPropertiesBoolean.md | 9 - .../docs/AdditionalPropertiesInteger.md | 9 - .../docs/AdditionalPropertiesNumber.md | 9 - .../docs/AdditionalPropertiesObject.md | 9 - .../docs/AdditionalPropertiesString.md | 9 - .../OpenAPIClient/docs/AnimalFarm.md | 8 - .../OpenAPIClient/docs/BigCat.md | 10 - .../OpenAPIClient/docs/BigCatAllOf.md | 9 - .../OpenAPIClient/docs/InlineObject.md | 10 - .../OpenAPIClient/docs/InlineObject1.md | 10 - .../OpenAPIClient/docs/InlineObject2.md | 10 - .../OpenAPIClient/docs/InlineObject3.md | 22 - .../OpenAPIClient/docs/InlineObject4.md | 10 - .../OpenAPIClient/docs/InlineObject5.md | 10 - .../docs/InlineResponseDefault.md | 10 - .../OpenAPIClient/docs/StringBooleanMap.md | 8 - .../OpenAPIClient/docs/TypeHolderDefault.md | 13 - .../OpenAPIClient/docs/TypeHolderExample.md | 14 - .../OpenAPIClient/docs/XmlItem.md | 37 -- .../Api/AnotherFakeApiTests.cs | 28 +- .../Api/DefaultApiTests.cs | 17 +- .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 117 +++- .../Api/FakeClassnameTags123ApiTests.cs | 26 +- .../Api/StoreApiTests.cs | 39 +- .../Org.OpenAPITools.Test/Api/UserApiTests.cs | 48 +- .../Org.OpenAPITools.Test/ApiClientTests.cs | 2 +- .../ConfigurationTests.cs | 2 +- .../JSONComposedSchemaTests.cs | 2 +- .../Model/AdditionalPropertiesAnyTypeTests.cs | 71 -- .../Model/AdditionalPropertiesArrayTests.cs | 71 -- .../Model/AdditionalPropertiesBooleanTests.cs | 71 -- .../Model/AdditionalPropertiesClassTests.cs | 72 +- .../Model/AdditionalPropertiesIntegerTests.cs | 71 -- .../Model/AdditionalPropertiesNumberTests.cs | 71 -- .../Model/AdditionalPropertiesObjectTests.cs | 71 -- .../Model/AdditionalPropertiesStringTests.cs | 71 -- .../Model/AnimalFarmTests.cs | 49 -- .../Model/AnimalTests.cs | 45 +- .../Model/ApiResponseTests.cs | 27 +- .../Model/AppleReqTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 6 +- .../Model/ArrayOfNumberOnlyTests.cs | 27 +- .../Model/ArrayTestTests.cs | 27 +- .../Model/BananaReqTests.cs | 6 +- .../Model/BananaTests.cs | 6 +- .../Model/BasquePigTests.cs | 6 +- .../Model/BigCatAllOfTests.cs | 71 -- .../Model/BigCatTests.cs | 71 -- .../Model/CapitalizationTests.cs | 27 +- .../Model/CatAllOfTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 27 +- .../Model/CategoryTests.cs | 27 +- .../Model/ChildCatAllOfTests.cs | 6 +- .../Model/ChildCatTests.cs | 6 +- .../Model/ClassModelTests.cs | 26 +- .../Model/ComplexQuadrilateralTests.cs | 6 +- .../Model/DanishPigTests.cs | 6 +- .../Model/DogAllOfTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/DogTests.cs | 27 +- .../Model/DrawingTests.cs | 6 +- .../Model/EnumArraysTests.cs | 27 +- .../Model/EnumClassTests.cs | 26 +- .../Model/EnumTestTests.cs | 59 +- .../Model/EquilateralTriangleTests.cs | 6 +- .../Model/FileSchemaTestClassTests.cs | 27 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 27 +- .../Org.OpenAPITools.Test/Model/FooTests.cs | 9 +- .../Model/FormatTestTests.cs | 51 +- .../Model/FruitReqTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 6 +- .../Model/GmFruitTests.cs | 6 +- .../Model/GrandparentAnimalTests.cs | 26 +- .../Model/HasOnlyReadOnlyTests.cs | 27 +- .../Model/HealthCheckResultTests.cs | 9 +- .../Model/InlineObject1Tests.cs | 79 --- .../Model/InlineObject2Tests.cs | 79 --- .../Model/InlineObject3Tests.cs | 175 ----- .../Model/InlineObject4Tests.cs | 79 --- .../Model/InlineObject5Tests.cs | 79 --- .../Model/InlineObjectTests.cs | 79 --- .../Model/InlineResponseDefaultTests.cs | 71 -- .../Model/IsoscelesTriangleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 27 +- .../Model/MammalTests.cs | 6 +- .../Model/MapTestTests.cs | 27 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 27 +- .../Model/Model200ResponseTests.cs | 27 +- .../Model/ModelClientTests.cs | 33 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 26 +- .../Model/NullableClassTests.cs | 9 +- .../Model/NullableShapeTests.cs | 6 +- .../Model/NumberOnlyTests.cs | 27 +- .../Org.OpenAPITools.Test/Model/OrderTests.cs | 26 +- .../Model/OuterCompositeTests.cs | 27 +- .../Model/OuterEnumDefaultValueTests.cs | 9 +- .../OuterEnumIntegerDefaultValueTests.cs | 9 +- .../Model/OuterEnumIntegerTests.cs | 9 +- .../Model/OuterEnumTests.cs | 26 +- .../Model/ParentPetTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 6 +- .../Model/QuadrilateralInterfaceTests.cs | 6 +- .../Model/QuadrilateralTests.cs | 6 +- .../Model/ReadOnlyFirstTests.cs | 27 +- .../Model/ReturnTests.cs | 27 +- .../Model/ScaleneTriangleTests.cs | 6 +- .../Model/ShapeInterfaceTests.cs | 6 +- .../Model/ShapeOrNullTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 6 +- .../Model/SimpleQuadrilateralTests.cs | 6 +- .../Model/StringBooleanMapTests.cs | 49 -- .../Org.OpenAPITools.Test/Model/TagTests.cs | 27 +- .../Model/TriangleInterfaceTests.cs | 6 +- .../Model/TriangleTests.cs | 6 +- .../Model/TypeHolderDefaultTests.cs | 89 --- .../Model/TypeHolderExampleTests.cs | 89 --- .../Org.OpenAPITools.Test/Model/UserTests.cs | 59 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Model/XmlItemTests.cs | 281 -------- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 6 +- .../Org.OpenAPITools/Model/InlineObject.cs | 141 ---- .../Org.OpenAPITools/Model/InlineObject1.cs | 141 ---- .../Org.OpenAPITools/Model/InlineObject2.cs | 185 ------ .../Org.OpenAPITools/Model/InlineObject3.cs | 370 ----------- .../Org.OpenAPITools/Model/InlineObject4.cs | 151 ----- .../Org.OpenAPITools/Model/InlineObject5.cs | 150 ----- .../Model/InlineResponseDefault.cs | 132 ---- .../docs/AdditionalPropertiesAnyType.md | 9 - .../docs/AdditionalPropertiesArray.md | 9 - .../docs/AdditionalPropertiesBoolean.md | 9 - .../docs/AdditionalPropertiesInteger.md | 9 - .../docs/AdditionalPropertiesNumber.md | 9 - .../docs/AdditionalPropertiesObject.md | 9 - .../docs/AdditionalPropertiesString.md | 9 - .../OpenAPIClientCore/docs/BigCat.md | 10 - .../OpenAPIClientCore/docs/BigCatAllOf.md | 9 - .../OpenAPIClientCore/docs/InlineObject.md | 10 - .../OpenAPIClientCore/docs/InlineObject1.md | 10 - .../OpenAPIClientCore/docs/InlineObject2.md | 10 - .../OpenAPIClientCore/docs/InlineObject3.md | 22 - .../OpenAPIClientCore/docs/InlineObject4.md | 10 - .../OpenAPIClientCore/docs/InlineObject5.md | 10 - .../docs/InlineResponseDefault.md | 10 - .../docs/TypeHolderDefault.md | 13 - .../docs/TypeHolderExample.md | 14 - .../OpenAPIClientCore/docs/XmlItem.md | 37 -- .../Api/AnotherFakeApiTests.cs | 23 +- .../Api/DefaultApiTests.cs | 17 +- .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 113 ++-- .../Api/FakeClassnameTags123ApiTests.cs | 23 +- .../Org.OpenAPITools.Test/Api/PetApiTests.cs | 55 +- .../Api/StoreApiTests.cs | 34 +- .../Org.OpenAPITools.Test/Api/UserApiTests.cs | 57 +- .../Model/AdditionalPropertiesAnyTypeTests.cs | 71 -- .../Model/AdditionalPropertiesArrayTests.cs | 71 -- .../Model/AdditionalPropertiesBooleanTests.cs | 71 -- .../Model/AdditionalPropertiesClassTests.cs | 59 +- .../Model/AdditionalPropertiesIntegerTests.cs | 71 -- .../Model/AdditionalPropertiesNumberTests.cs | 71 -- .../Model/AdditionalPropertiesObjectTests.cs | 71 -- .../Model/AdditionalPropertiesStringTests.cs | 71 -- .../Model/AnimalTests.cs | 31 +- .../Model/ApiResponseTests.cs | 11 +- .../Model/AppleReqTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 11 +- .../Model/ArrayOfNumberOnlyTests.cs | 11 +- .../Model/ArrayTestTests.cs | 11 +- .../Model/BananaReqTests.cs | 6 +- .../Model/BananaTests.cs | 6 +- .../Model/BasquePigTests.cs | 6 +- .../Model/BigCatAllOfTests.cs | 71 -- .../Model/BigCatTests.cs | 71 -- .../Model/CapitalizationTests.cs | 11 +- .../Model/CatAllOfTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 11 +- .../Model/CategoryTests.cs | 11 +- .../Model/ChildCatAllOfTests.cs | 14 +- .../Model/ChildCatTests.cs | 14 +- .../Model/ClassModelTests.cs | 11 +- .../Model/ComplexQuadrilateralTests.cs | 6 +- .../Model/DanishPigTests.cs | 6 +- .../Model/DogAllOfTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/DogTests.cs | 11 +- .../Model/DrawingTests.cs | 6 +- .../Model/EnumArraysTests.cs | 11 +- .../Model/EnumClassTests.cs | 11 +- .../Model/EnumTestTests.cs | 43 +- .../Model/EquilateralTriangleTests.cs | 6 +- .../Model/FileSchemaTestClassTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/FooTests.cs | 9 +- .../Model/FormatTestTests.cs | 35 +- .../Model/FruitReqTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 6 +- .../Model/GmFruitTests.cs | 6 +- .../Model/GrandparentAnimalTests.cs | 26 +- .../Model/HasOnlyReadOnlyTests.cs | 11 +- .../Model/HealthCheckResultTests.cs | 9 +- .../Model/InlineObject1Tests.cs | 79 --- .../Model/InlineObject2Tests.cs | 79 --- .../Model/InlineObject3Tests.cs | 175 ----- .../Model/InlineObject4Tests.cs | 79 --- .../Model/InlineObject5Tests.cs | 79 --- .../Model/InlineObjectTests.cs | 79 --- .../Model/InlineResponseDefaultTests.cs | 71 -- .../Model/IsoscelesTriangleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 11 +- .../Model/MammalTests.cs | 6 +- .../Model/MapTestTests.cs | 11 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 11 +- .../Model/Model200ResponseTests.cs | 11 +- .../Model/ModelClientTests.cs | 17 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 11 +- .../Model/NullableClassTests.cs | 9 +- .../Model/NullableShapeTests.cs | 6 +- .../Model/NumberOnlyTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/OrderTests.cs | 11 +- .../Model/OuterCompositeTests.cs | 11 +- .../Model/OuterEnumDefaultValueTests.cs | 9 +- .../OuterEnumIntegerDefaultValueTests.cs | 9 +- .../Model/OuterEnumIntegerTests.cs | 9 +- .../Model/OuterEnumTests.cs | 11 +- .../Model/ParentPetTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/PetTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 6 +- .../Model/QuadrilateralInterfaceTests.cs | 6 +- .../Model/QuadrilateralTests.cs | 6 +- .../Model/ReadOnlyFirstTests.cs | 11 +- .../Model/ReturnTests.cs | 11 +- .../Model/ScaleneTriangleTests.cs | 6 +- .../Model/ShapeInterfaceTests.cs | 6 +- .../Model/ShapeOrNullTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 6 +- .../Model/SimpleQuadrilateralTests.cs | 6 +- .../Model/SpecialModelNameTests.cs | 19 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 11 +- .../Model/TriangleInterfaceTests.cs | 6 +- .../Model/TriangleTests.cs | 6 +- .../Model/TypeHolderDefaultTests.cs | 103 --- .../Model/TypeHolderExampleTests.cs | 103 --- .../Org.OpenAPITools.Test/Model/UserTests.cs | 43 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Model/XmlItemTests.cs | 295 --------- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 6 +- .../Model/AdditionalPropertiesAnyType.cs | 119 ---- .../Model/AdditionalPropertiesArray.cs | 119 ---- .../Model/AdditionalPropertiesBoolean.cs | 119 ---- .../Model/AdditionalPropertiesInteger.cs | 119 ---- .../Model/AdditionalPropertiesNumber.cs | 119 ---- .../Model/AdditionalPropertiesObject.cs | 119 ---- .../Model/AdditionalPropertiesString.cs | 119 ---- .../src/Org.OpenAPITools/Model/BigCat.cs | 158 ----- .../src/Org.OpenAPITools/Model/BigCatAllOf.cs | 148 ----- .../Org.OpenAPITools/Model/InlineObject.cs | 131 ---- .../Org.OpenAPITools/Model/InlineObject1.cs | 131 ---- .../Org.OpenAPITools/Model/InlineObject2.cs | 175 ----- .../Org.OpenAPITools/Model/InlineObject3.cs | 357 ---------- .../Org.OpenAPITools/Model/InlineObject4.cs | 138 ---- .../Org.OpenAPITools/Model/InlineObject5.cs | 137 ---- .../Model/InlineResponseDefault.cs | 120 ---- .../Model/TypeHolderDefault.cs | 166 ----- .../Model/TypeHolderExample.cs | 176 ----- .../src/Org.OpenAPITools/Model/XmlItem.cs | 411 ------------ 379 files changed, 1980 insertions(+), 16312 deletions(-) delete mode 100644 samples/client/others/csharp-netcore-complex-files/docs/InlineObject.md delete mode 100644 samples/client/others/csharp-netcore-complex-files/docs/InlineObject1.md delete mode 100644 samples/client/others/csharp-netcore-complex-files/docs/InlineObject2.md delete mode 100644 samples/client/others/csharp-netcore-complex-files/docs/MultipartMixedMarker.md delete mode 100644 samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs delete mode 100644 samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs delete mode 100644 samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs delete mode 100644 samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/MultipartMixedMarkerTests.cs delete mode 100644 samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject.cs delete mode 100644 samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject1.cs delete mode 100644 samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject2.cs delete mode 100644 samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/MultipartMixedMarker.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/PetApiTests.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/StoreApiTests.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/UserApiTests.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/ApiResponse.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/Category.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/Order.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/Pet.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/PetApi.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/StoreApi.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/Tag.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/User.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/docs/UserApi.md delete mode 100644 samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/ApiResponseTests.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/CategoryTests.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/OrderTests.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/PetTests.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/TagTests.cs delete mode 100644 samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/UserTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject1.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject2.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject3.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject4.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject5.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject1.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject2.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject3.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject4.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject5.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesAnyType.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesArray.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesBoolean.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesInteger.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesNumber.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesObject.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesString.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AnimalFarm.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/BigCat.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/BigCatAllOf.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject1.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject2.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject3.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject4.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject5.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/StringBooleanMap.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderExample.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/docs/XmlItem.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesAnyTypeTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesArrayTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesBooleanTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesIntegerTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesNumberTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesObjectTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesStringTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalFarmTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BigCatAllOfTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BigCatTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/StringBooleanMapTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject1.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject2.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject3.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject4.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject5.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesAnyType.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesArray.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesBoolean.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesInteger.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesNumber.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesObject.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesString.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/BigCat.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/BigCatAllOf.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject1.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject2.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject3.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject4.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject5.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineResponseDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderDefault.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderExample.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/XmlItem.md delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesAnyTypeTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesArrayTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesBooleanTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesIntegerTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesNumberTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesObjectTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesStringTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BigCatAllOfTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BigCatTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesAnyType.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesArray.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesBoolean.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesInteger.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesNumber.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesObject.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesString.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/BigCat.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/BigCatAllOf.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject1.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject2.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject3.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject4.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject5.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineResponseDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderDefault.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderExample.cs delete mode 100644 samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/XmlItem.cs diff --git a/bin/configs/csharp-netcore-functions.yaml b/bin/configs/csharp-netcore-functions.yaml index 6d7e9a691b0..3ce5234a94d 100644 --- a/bin/configs/csharp-netcore-functions.yaml +++ b/bin/configs/csharp-netcore-functions.yaml @@ -2,5 +2,6 @@ generatorName: csharp-netcore-functions outputDir: samples/client/petstore/csharp-netcore-functions inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml templateDir: modules/openapi-generator/src/main/resources/csharp-netcore-functions -#additionalProperties: -# packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' +additionalProperties: + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' + userSecretsGuid: "76e9e993-9159-441c-9c5b-fe95e7f4f020" diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CsharpNetcoreFunctionsServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CsharpNetcoreFunctionsServerCodegen.java index 5ddaa484560..60886a15db4 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CsharpNetcoreFunctionsServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CsharpNetcoreFunctionsServerCodegen.java @@ -304,7 +304,12 @@ public class CsharpNetcoreFunctionsServerCodegen extends AbstractCSharpCodegen { setPackageGuid((String) additionalProperties.get(CodegenConstants.OPTIONAL_PROJECT_GUID)); } additionalProperties.put("packageGuid", packageGuid); - additionalProperties.put("userSecretsGuid", userSecretsGuid); + + if (!additionalProperties.containsKey("userSecretsGuid")) { + additionalProperties.put("userSecretsGuid", userSecretsGuid); + } else { + userSecretsGuid = (String) additionalProperties.get("userSecretsGuid"); + } if (!additionalProperties.containsKey(NEWTONSOFT_VERSION)) { additionalProperties.put(NEWTONSOFT_VERSION, newtonsoftVersion); diff --git a/samples/client/others/csharp-netcore-complex-files/docs/InlineObject.md b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject.md deleted file mode 100644 index 6b0d642f078..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/docs/InlineObject.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Files** | **List<System.IO.Stream>** | Many files | [optional] - -[[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/others/csharp-netcore-complex-files/docs/InlineObject1.md b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject1.md deleted file mode 100644 index dd54d6fa6a8..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/docs/InlineObject1.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**File** | **System.IO.Stream** | One file | [optional] - -[[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/others/csharp-netcore-complex-files/docs/InlineObject2.md b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject2.md deleted file mode 100644 index 8344e91b980..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/docs/InlineObject2.md +++ /dev/null @@ -1,12 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | **MultipartMixedStatus** | | -**Marker** | [**MultipartMixedMarker**](MultipartMixedMarker.md) | | [optional] -**File** | **System.IO.Stream** | a file | - -[[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/others/csharp-netcore-complex-files/docs/MultipartMixedMarker.md b/samples/client/others/csharp-netcore-complex-files/docs/MultipartMixedMarker.md deleted file mode 100644 index 025eb119a4a..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/docs/MultipartMixedMarker.md +++ /dev/null @@ -1,11 +0,0 @@ -# Org.OpenAPITools.Model.MultipartMixedMarker -additional object - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Api/MultipartApiTests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Api/MultipartApiTests.cs index f86f020a9c3..49d6b7ec392 100644 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Api/MultipartApiTests.cs +++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Api/MultipartApiTests.cs @@ -72,9 +72,10 @@ namespace Org.OpenAPITools.Test.Api public void MultipartMixedTest() { // TODO uncomment below to test the method and replace null with proper value + //MultipartMixedStatus status = null; //System.IO.Stream file = null; - //MultipartMixedMarker marker = null; - //instance.MultipartMixed(file, marker); + //MultipartMixedRequestMarker marker = null; + //instance.MultipartMixed(status, file, marker); } /// diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs deleted file mode 100644 index 9d935ab6651..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MultipartFile test - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject1 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject1Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject1 - //private InlineObject1 instance; - - public InlineObject1Tests() - { - // TODO uncomment below to create an instance of InlineObject1 - //instance = new InlineObject1(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject1 - /// - [Fact] - public void InlineObject1InstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject1 - //Assert.IsType(instance); - } - - - /// - /// Test the property 'File' - /// - [Fact] - public void FileTest() - { - // TODO unit test for the property 'File' - } - - } - -} diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs deleted file mode 100644 index bfcd720e7cb..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * MultipartFile test - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject2 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject2Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject2 - //private InlineObject2 instance; - - public InlineObject2Tests() - { - // TODO uncomment below to create an instance of InlineObject2 - //instance = new InlineObject2(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject2 - /// - [Fact] - public void InlineObject2InstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject2 - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Marker' - /// - [Fact] - public void MarkerTest() - { - // TODO unit test for the property 'Marker' - } - /// - /// Test the property 'File' - /// - [Fact] - public void FileTest() - { - // TODO unit test for the property 'File' - } - - } - -} diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs deleted file mode 100644 index 92ff59e7e01..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MultipartFile test - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObjectTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject - //private InlineObject instance; - - public InlineObjectTests() - { - // TODO uncomment below to create an instance of InlineObject - //instance = new InlineObject(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject - /// - [Fact] - public void InlineObjectInstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Files' - /// - [Fact] - public void FilesTest() - { - // TODO unit test for the property 'Files' - } - - } - -} diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/MultipartMixedMarkerTests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/MultipartMixedMarkerTests.cs deleted file mode 100644 index b1ac7cf230d..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/MultipartMixedMarkerTests.cs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MultipartFile test - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing MultipartMixedMarker - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class MultipartMixedMarkerTests : IDisposable - { - // TODO uncomment below to declare an instance variable for MultipartMixedMarker - //private MultipartMixedMarker instance; - - public MultipartMixedMarkerTests() - { - // TODO uncomment below to create an instance of MultipartMixedMarker - //instance = new MultipartMixedMarker(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of MultipartMixedMarker - /// - [Fact] - public void MultipartMixedMarkerInstanceTest() - { - // TODO uncomment below to test "IsType" MultipartMixedMarker - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject.cs deleted file mode 100644 index ae2d365c5e2..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject.cs +++ /dev/null @@ -1,121 +0,0 @@ -/* - * MultipartFile test - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject - /// - [DataContract(Name = "inline_object")] - public partial class InlineObject : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Many files. - public InlineObject(List files = default(List)) - { - this.Files = files; - } - - /// - /// Many files - /// - /// Many files - [DataMember(Name = "files", EmitDefaultValue = false)] - public List Files { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineObject {\n"); - sb.Append(" Files: ").Append(Files).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject).AreEqual; - } - - /// - /// Returns true if InlineObject instances are equal - /// - /// Instance of InlineObject to be compared - /// Boolean - public bool Equals(InlineObject input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Files != null) - { - hashCode = (hashCode * 59) + this.Files.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject1.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject1.cs deleted file mode 100644 index aee5f5ed83c..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject1.cs +++ /dev/null @@ -1,121 +0,0 @@ -/* - * MultipartFile test - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject1 - /// - [DataContract(Name = "inline_object_1")] - public partial class InlineObject1 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// One file. - public InlineObject1(System.IO.Stream file = default(System.IO.Stream)) - { - this.File = file; - } - - /// - /// One file - /// - /// One file - [DataMember(Name = "file", EmitDefaultValue = false)] - public System.IO.Stream File { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineObject1 {\n"); - sb.Append(" File: ").Append(File).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject1).AreEqual; - } - - /// - /// Returns true if InlineObject1 instances are equal - /// - /// Instance of InlineObject1 to be compared - /// Boolean - public bool Equals(InlineObject1 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.File != null) - { - hashCode = (hashCode * 59) + this.File.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject2.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject2.cs deleted file mode 100644 index a067def1867..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/InlineObject2.cs +++ /dev/null @@ -1,154 +0,0 @@ -/* - * MultipartFile test - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject2 - /// - [DataContract(Name = "inline_object_2")] - public partial class InlineObject2 : IEquatable, IValidatableObject - { - - /// - /// Gets or Sets Status - /// - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)] - public MultipartMixedStatus Status { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject2() { } - /// - /// Initializes a new instance of the class. - /// - /// status (required). - /// marker. - /// a file (required). - public InlineObject2(MultipartMixedStatus status = default(MultipartMixedStatus), MultipartMixedMarker marker = default(MultipartMixedMarker), System.IO.Stream file = default(System.IO.Stream)) - { - this.Status = status; - // to ensure "file" is required (not null) - if (file == null) - { - throw new ArgumentNullException("file is a required property for InlineObject2 and cannot be null"); - } - this.File = file; - this.Marker = marker; - } - - /// - /// Gets or Sets Marker - /// - [DataMember(Name = "marker", EmitDefaultValue = false)] - public MultipartMixedMarker Marker { get; set; } - - /// - /// a file - /// - /// a file - [DataMember(Name = "file", IsRequired = true, EmitDefaultValue = false)] - public System.IO.Stream File { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineObject2 {\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Marker: ").Append(Marker).Append("\n"); - sb.Append(" File: ").Append(File).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject2).AreEqual; - } - - /// - /// Returns true if InlineObject2 instances are equal - /// - /// Instance of InlineObject2 to be compared - /// Boolean - public bool Equals(InlineObject2 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = (hashCode * 59) + this.Status.GetHashCode(); - if (this.Marker != null) - { - hashCode = (hashCode * 59) + this.Marker.GetHashCode(); - } - if (this.File != null) - { - hashCode = (hashCode * 59) + this.File.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/MultipartMixedMarker.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/MultipartMixedMarker.cs deleted file mode 100644 index ee18f1fc14b..00000000000 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Model/MultipartMixedMarker.cs +++ /dev/null @@ -1,120 +0,0 @@ -/* - * MultipartFile test - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// additional object - /// - [DataContract(Name = "_multipart_mixed_marker")] - public partial class MultipartMixedMarker : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - public MultipartMixedMarker(string name = default(string)) - { - this.Name = name; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class MultipartMixedMarker {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as MultipartMixedMarker).AreEqual; - } - - /// - /// Returns true if MultipartMixedMarker instances are equal - /// - /// Instance of MultipartMixedMarker to be compared - /// Boolean - public bool Equals(MultipartMixedMarker input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/PetApiTests.cs b/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/PetApiTests.cs deleted file mode 100644 index 9ee31e31c3d..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/PetApiTests.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.IO; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Reflection; -using RestSharp; -using Xunit; - -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Apis; -// uncomment below to import models -//using Org.OpenAPITools.Models; - -namespace Org.OpenAPITools.Test.Api -{ - /// - /// Class for testing PetApi - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the API endpoint. - /// - public class PetApiTests : IDisposable - { - private PetApi instance; - - public PetApiTests() - { - instance = new PetApi(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of PetApi - /// - [Fact] - public void InstanceTest() - { - // TODO uncomment below to test 'IsType' PetApi - //Assert.IsType(instance); - } - - /// - /// Test AddPet - /// - [Fact] - public void AddPetTest() - { - // TODO uncomment below to test the method and replace null with proper value - //Pet pet = null; - //var response = instance.AddPet(pet); - //Assert.IsType(response); - } - - /// - /// Test DeletePet - /// - [Fact] - public void DeletePetTest() - { - // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //string apiKey = null; - //instance.DeletePet(petId, apiKey); - } - - /// - /// Test FindPetsByStatus - /// - [Fact] - public void FindPetsByStatusTest() - { - // TODO uncomment below to test the method and replace null with proper value - //List status = null; - //var response = instance.FindPetsByStatus(status); - //Assert.IsType>(response); - } - - /// - /// Test FindPetsByTags - /// - [Fact] - public void FindPetsByTagsTest() - { - // TODO uncomment below to test the method and replace null with proper value - //List tags = null; - //var response = instance.FindPetsByTags(tags); - //Assert.IsType>(response); - } - - /// - /// Test GetPetById - /// - [Fact] - public void GetPetByIdTest() - { - // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //var response = instance.GetPetById(petId); - //Assert.IsType(response); - } - - /// - /// Test UpdatePet - /// - [Fact] - public void UpdatePetTest() - { - // TODO uncomment below to test the method and replace null with proper value - //Pet pet = null; - //var response = instance.UpdatePet(pet); - //Assert.IsType(response); - } - - /// - /// Test UpdatePetWithForm - /// - [Fact] - public void UpdatePetWithFormTest() - { - // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //string name = null; - //string status = null; - //instance.UpdatePetWithForm(petId, name, status); - } - - /// - /// Test UploadFile - /// - [Fact] - public void UploadFileTest() - { - // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //string additionalMetadata = null; - //System.IO.Stream file = null; - //var response = instance.UploadFile(petId, additionalMetadata, file); - //Assert.IsType(response); - } - } -} diff --git a/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/StoreApiTests.cs b/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/StoreApiTests.cs deleted file mode 100644 index 59206b2a763..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/StoreApiTests.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.IO; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Reflection; -using RestSharp; -using Xunit; - -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Apis; -// uncomment below to import models -//using Org.OpenAPITools.Models; - -namespace Org.OpenAPITools.Test.Api -{ - /// - /// Class for testing StoreApi - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the API endpoint. - /// - public class StoreApiTests : IDisposable - { - private StoreApi instance; - - public StoreApiTests() - { - instance = new StoreApi(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of StoreApi - /// - [Fact] - public void InstanceTest() - { - // TODO uncomment below to test 'IsType' StoreApi - //Assert.IsType(instance); - } - - /// - /// Test DeleteOrder - /// - [Fact] - public void DeleteOrderTest() - { - // TODO uncomment below to test the method and replace null with proper value - //string orderId = null; - //instance.DeleteOrder(orderId); - } - - /// - /// Test GetInventory - /// - [Fact] - public void GetInventoryTest() - { - // TODO uncomment below to test the method and replace null with proper value - //var response = instance.GetInventory(); - //Assert.IsType>(response); - } - - /// - /// Test GetOrderById - /// - [Fact] - public void GetOrderByIdTest() - { - // TODO uncomment below to test the method and replace null with proper value - //long orderId = null; - //var response = instance.GetOrderById(orderId); - //Assert.IsType(response); - } - - /// - /// Test PlaceOrder - /// - [Fact] - public void PlaceOrderTest() - { - // TODO uncomment below to test the method and replace null with proper value - //Order order = null; - //var response = instance.PlaceOrder(order); - //Assert.IsType(response); - } - } -} diff --git a/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/UserApiTests.cs b/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/UserApiTests.cs deleted file mode 100644 index 031e222ca0b..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/Tests/Tests/Apis/UserApiTests.cs +++ /dev/null @@ -1,148 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.IO; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Reflection; -using RestSharp; -using Xunit; - -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Apis; -// uncomment below to import models -//using Org.OpenAPITools.Models; - -namespace Org.OpenAPITools.Test.Api -{ - /// - /// Class for testing UserApi - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the API endpoint. - /// - public class UserApiTests : IDisposable - { - private UserApi instance; - - public UserApiTests() - { - instance = new UserApi(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of UserApi - /// - [Fact] - public void InstanceTest() - { - // TODO uncomment below to test 'IsType' UserApi - //Assert.IsType(instance); - } - - /// - /// Test CreateUser - /// - [Fact] - public void CreateUserTest() - { - // TODO uncomment below to test the method and replace null with proper value - //User user = null; - //instance.CreateUser(user); - } - - /// - /// Test CreateUsersWithArrayInput - /// - [Fact] - public void CreateUsersWithArrayInputTest() - { - // TODO uncomment below to test the method and replace null with proper value - //List user = null; - //instance.CreateUsersWithArrayInput(user); - } - - /// - /// Test CreateUsersWithListInput - /// - [Fact] - public void CreateUsersWithListInputTest() - { - // TODO uncomment below to test the method and replace null with proper value - //List user = null; - //instance.CreateUsersWithListInput(user); - } - - /// - /// Test DeleteUser - /// - [Fact] - public void DeleteUserTest() - { - // TODO uncomment below to test the method and replace null with proper value - //string username = null; - //instance.DeleteUser(username); - } - - /// - /// Test GetUserByName - /// - [Fact] - public void GetUserByNameTest() - { - // TODO uncomment below to test the method and replace null with proper value - //string username = null; - //var response = instance.GetUserByName(username); - //Assert.IsType(response); - } - - /// - /// Test LoginUser - /// - [Fact] - public void LoginUserTest() - { - // TODO uncomment below to test the method and replace null with proper value - //string username = null; - //string password = null; - //var response = instance.LoginUser(username, password); - //Assert.IsType(response); - } - - /// - /// Test LogoutUser - /// - [Fact] - public void LogoutUserTest() - { - // TODO uncomment below to test the method and replace null with proper value - //instance.LogoutUser(); - } - - /// - /// Test UpdateUser - /// - [Fact] - 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); - } - } -} diff --git a/samples/client/petstore/csharp-netcore-functions/docs/ApiResponse.md b/samples/client/petstore/csharp-netcore-functions/docs/ApiResponse.md deleted file mode 100644 index 2bcb247bbd9..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/ApiResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Org.OpenAPITools.Models.ApiResponse -Describes the result of uploading an image resource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] -**Type** | **string** | | [optional] -**Message** | **string** | | [optional] - -[[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-netcore-functions/docs/Category.md b/samples/client/petstore/csharp-netcore-functions/docs/Category.md deleted file mode 100644 index ff6c3ede4bb..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/Category.md +++ /dev/null @@ -1,12 +0,0 @@ -# Org.OpenAPITools.Models.Category -A category for a pet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [optional] - -[[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-netcore-functions/docs/Order.md b/samples/client/petstore/csharp-netcore-functions/docs/Order.md deleted file mode 100644 index 2f13a5b7d66..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/Order.md +++ /dev/null @@ -1,16 +0,0 @@ -# Org.OpenAPITools.Models.Order -An order for a pets from the pet store - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] -**Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] - -[[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-netcore-functions/docs/Pet.md b/samples/client/petstore/csharp-netcore-functions/docs/Pet.md deleted file mode 100644 index bb37eb83fdb..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/Pet.md +++ /dev/null @@ -1,16 +0,0 @@ -# Org.OpenAPITools.Models.Pet -A pet for sale in the pet store - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Category** | [**Category**](Category.md) | | [optional] -**Name** | **string** | | -**PhotoUrls** | **List<string>** | | -**Tags** | [**List<Tag>**](Tag.md) | | [optional] -**Status** | **string** | pet status in the store | [optional] - -[[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-netcore-functions/docs/PetApi.md b/samples/client/petstore/csharp-netcore-functions/docs/PetApi.md deleted file mode 100644 index 5251662068a..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/PetApi.md +++ /dev/null @@ -1,616 +0,0 @@ -# Org.OpenAPITools.Apis.PetApi - -All URIs are relative to *http://petstore.swagger.io/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AddPet**](PetApi.md#addpet) | **POST** /pet | Add a new pet to the store -[**DeletePet**](PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet -[**FindPetsByStatus**](PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status -[**FindPetsByTags**](PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags -[**GetPetById**](PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID -[**UpdatePet**](PetApi.md#updatepet) | **PUT** /pet | Update an existing pet -[**UpdatePetWithForm**](PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data -[**UploadFile**](PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image - - - -# **AddPet** -> Pet AddPet (Pet pet) - -Add a new pet to the store - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class AddPetExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure OAuth2 access token for authorization: petstore_auth - config.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PetApi(config); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store - - try - { - // Add a new pet to the store - Pet result = apiInstance.AddPet(pet); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PetApi.AddPet: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -[**Pet**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | -| **405** | Invalid input | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **DeletePet** -> void DeletePet (long petId, string apiKey = null) - -Deletes a pet - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class DeletePetExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure OAuth2 access token for authorization: petstore_auth - config.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PetApi(config); - var petId = 789; // long | Pet id to delete - var apiKey = apiKey_example; // string | (optional) - - try - { - // Deletes a pet - apiInstance.DeletePet(petId, apiKey); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PetApi.DeletePet: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **long**| Pet id to delete | - **apiKey** | **string**| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **400** | Invalid pet value | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **FindPetsByStatus** -> List<Pet> FindPetsByStatus (List status) - -Finds Pets by status - -Multiple status values can be provided with comma separated strings - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class FindPetsByStatusExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure OAuth2 access token for authorization: petstore_auth - config.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PetApi(config); - var status = new List(); // List | Status values that need to be considered for filter - - try - { - // Finds Pets by status - List result = apiInstance.FindPetsByStatus(status); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PetApi.FindPetsByStatus: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **status** | [**List<string>**](string.md)| Status values that need to be considered for filter | - -### Return type - -[**List<Pet>**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | -| **400** | Invalid status value | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **FindPetsByTags** -> List<Pet> FindPetsByTags (List tags) - -Finds Pets by tags - -Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class FindPetsByTagsExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure OAuth2 access token for authorization: petstore_auth - config.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PetApi(config); - var tags = new List(); // List | Tags to filter by - - try - { - // Finds Pets by tags - List result = apiInstance.FindPetsByTags(tags); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PetApi.FindPetsByTags: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tags** | [**List<string>**](string.md)| Tags to filter by | - -### Return type - -[**List<Pet>**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | -| **400** | Invalid tag value | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **GetPetById** -> Pet GetPetById (long petId) - -Find pet by ID - -Returns a single pet - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class GetPetByIdExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure API key authorization: api_key - config.AddApiKey("api_key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("api_key", "Bearer"); - - var apiInstance = new PetApi(config); - var petId = 789; // long | ID of pet to return - - try - { - // Find pet by ID - Pet result = apiInstance.GetPetById(petId); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PetApi.GetPetById: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **long**| ID of pet to return | - -### Return type - -[**Pet**](Pet.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | -| **400** | Invalid ID supplied | - | -| **404** | Pet not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **UpdatePet** -> Pet UpdatePet (Pet pet) - -Update an existing pet - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class UpdatePetExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure OAuth2 access token for authorization: petstore_auth - config.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PetApi(config); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store - - try - { - // Update an existing pet - Pet result = apiInstance.UpdatePet(pet); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PetApi.UpdatePet: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -[**Pet**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | -| **400** | Invalid ID supplied | - | -| **404** | Pet not found | - | -| **405** | Validation exception | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string name = null, string status = null) - -Updates a pet in the store with form data - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class UpdatePetWithFormExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure OAuth2 access token for authorization: petstore_auth - config.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PetApi(config); - var petId = 789; // long | ID of pet that needs to be updated - var name = name_example; // string | Updated name of the pet (optional) - var status = status_example; // string | Updated status of the pet (optional) - - try - { - // Updates a pet in the store with form data - apiInstance.UpdatePetWithForm(petId, name, status); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PetApi.UpdatePetWithForm: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **long**| ID of pet that needs to be updated | - **name** | **string**| Updated name of the pet | [optional] - **status** | **string**| Updated status of the pet | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **405** | Invalid input | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **UploadFile** -> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null) - -uploads an image - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class UploadFileExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure OAuth2 access token for authorization: petstore_auth - config.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PetApi(config); - var petId = 789; // long | ID of pet to update - var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional) - var file = BINARY_DATA_HERE; // System.IO.Stream | file to upload (optional) - - try - { - // uploads an image - ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, file); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PetApi.UploadFile: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **long**| ID of pet to update | - **additionalMetadata** | **string**| Additional data to pass to server | [optional] - **file** | **System.IO.Stream****System.IO.Stream**| file to upload | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/samples/client/petstore/csharp-netcore-functions/docs/StoreApi.md b/samples/client/petstore/csharp-netcore-functions/docs/StoreApi.md deleted file mode 100644 index a1ad605d05e..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/StoreApi.md +++ /dev/null @@ -1,298 +0,0 @@ -# Org.OpenAPITools.Apis.StoreApi - -All URIs are relative to *http://petstore.swagger.io/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID -[**GetInventory**](StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status -[**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID -[**PlaceOrder**](StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet - - - -# **DeleteOrder** -> void DeleteOrder (string orderId) - -Delete purchase order by ID - -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class DeleteOrderExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - var apiInstance = new StoreApi(config); - var orderId = orderId_example; // string | ID of the order that needs to be deleted - - try - { - // Delete purchase order by ID - apiInstance.DeleteOrder(orderId); - } - catch (ApiException e) - { - Debug.Print("Exception when calling StoreApi.DeleteOrder: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **string**| ID of the order that needs to be deleted | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **400** | Invalid ID supplied | - | -| **404** | Order not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **GetInventory** -> Dictionary<string, int> GetInventory () - -Returns pet inventories by status - -Returns a map of status codes to quantities - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class GetInventoryExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure API key authorization: api_key - config.AddApiKey("api_key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("api_key", "Bearer"); - - var apiInstance = new StoreApi(config); - - try - { - // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling StoreApi.GetInventory: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -**Dictionary** - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **GetOrderById** -> Order GetOrderById (long orderId) - -Find purchase order by ID - -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class GetOrderByIdExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - var apiInstance = new StoreApi(config); - var orderId = 789; // long | ID of pet that needs to be fetched - - try - { - // Find purchase order by ID - Order result = apiInstance.GetOrderById(orderId); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling StoreApi.GetOrderById: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **long**| ID of pet that needs to be fetched | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | -| **400** | Invalid ID supplied | - | -| **404** | Order not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **PlaceOrder** -> Order PlaceOrder (Order order) - -Place an order for a pet - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class PlaceOrderExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - var apiInstance = new StoreApi(config); - var order = new Order(); // Order | order placed for purchasing the pet - - try - { - // Place an order for a pet - Order result = apiInstance.PlaceOrder(order); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling StoreApi.PlaceOrder: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | -| **400** | Invalid Order | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/samples/client/petstore/csharp-netcore-functions/docs/Tag.md b/samples/client/petstore/csharp-netcore-functions/docs/Tag.md deleted file mode 100644 index 97b08989ea6..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/Tag.md +++ /dev/null @@ -1,12 +0,0 @@ -# Org.OpenAPITools.Models.Tag -A tag for a pet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [optional] - -[[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-netcore-functions/docs/User.md b/samples/client/petstore/csharp-netcore-functions/docs/User.md deleted file mode 100644 index d665fa56193..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/User.md +++ /dev/null @@ -1,18 +0,0 @@ -# Org.OpenAPITools.Models.User -A User who is purchasing from the pet store - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Username** | **string** | | [optional] -**FirstName** | **string** | | [optional] -**LastName** | **string** | | [optional] -**Email** | **string** | | [optional] -**Password** | **string** | | [optional] -**Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] - -[[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-netcore-functions/docs/UserApi.md b/samples/client/petstore/csharp-netcore-functions/docs/UserApi.md deleted file mode 100644 index 858ec4e2be1..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/docs/UserApi.md +++ /dev/null @@ -1,603 +0,0 @@ -# Org.OpenAPITools.Apis.UserApi - -All URIs are relative to *http://petstore.swagger.io/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateUser**](UserApi.md#createuser) | **POST** /user | Create user -[**CreateUsersWithArrayInput**](UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array -[**CreateUsersWithListInput**](UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array -[**DeleteUser**](UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user -[**GetUserByName**](UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name -[**LoginUser**](UserApi.md#loginuser) | **GET** /user/login | Logs user into the system -[**LogoutUser**](UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session -[**UpdateUser**](UserApi.md#updateuser) | **PUT** /user/{username} | Updated user - - - -# **CreateUser** -> void CreateUser (User user) - -Create user - -This can only be done by the logged in user. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class CreateUserExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure API key authorization: api_key - config.AddApiKey("api_key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("api_key", "Bearer"); - - var apiInstance = new UserApi(config); - var user = new User(); // User | Created user object - - try - { - // Create user - apiInstance.CreateUser(user); - } - catch (ApiException e) - { - Debug.Print("Exception when calling UserApi.CreateUser: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | - -### Return type - -void (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **0** | successful operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **CreateUsersWithArrayInput** -> void CreateUsersWithArrayInput (List user) - -Creates list of users with given input array - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class CreateUsersWithArrayInputExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure API key authorization: api_key - config.AddApiKey("api_key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("api_key", "Bearer"); - - var apiInstance = new UserApi(config); - var user = new List(); // List | List of user object - - try - { - // Creates list of users with given input array - apiInstance.CreateUsersWithArrayInput(user); - } - catch (ApiException e) - { - Debug.Print("Exception when calling UserApi.CreateUsersWithArrayInput: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](User.md)| List of user object | - -### Return type - -void (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **0** | successful operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **CreateUsersWithListInput** -> void CreateUsersWithListInput (List user) - -Creates list of users with given input array - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class CreateUsersWithListInputExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure API key authorization: api_key - config.AddApiKey("api_key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("api_key", "Bearer"); - - var apiInstance = new UserApi(config); - var user = new List(); // List | List of user object - - try - { - // Creates list of users with given input array - apiInstance.CreateUsersWithListInput(user); - } - catch (ApiException e) - { - Debug.Print("Exception when calling UserApi.CreateUsersWithListInput: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](User.md)| List of user object | - -### Return type - -void (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **0** | successful operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **DeleteUser** -> void DeleteUser (string username) - -Delete user - -This can only be done by the logged in user. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class DeleteUserExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure API key authorization: api_key - config.AddApiKey("api_key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("api_key", "Bearer"); - - var apiInstance = new UserApi(config); - var username = username_example; // string | The name that needs to be deleted - - try - { - // Delete user - apiInstance.DeleteUser(username); - } - catch (ApiException e) - { - Debug.Print("Exception when calling UserApi.DeleteUser: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **string**| The name that needs to be deleted | - -### Return type - -void (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **400** | Invalid username supplied | - | -| **404** | User not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **GetUserByName** -> User GetUserByName (string username) - -Get user by user name - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class GetUserByNameExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - var apiInstance = new UserApi(config); - var username = username_example; // string | The name that needs to be fetched. Use user1 for testing. - - try - { - // Get user by user name - User result = apiInstance.GetUserByName(username); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling UserApi.GetUserByName: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **string**| The name that needs to be fetched. Use user1 for testing. | - -### Return type - -[**User**](User.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | - | -| **400** | Invalid username supplied | - | -| **404** | User not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **LoginUser** -> string LoginUser (string username, string password) - -Logs user into the system - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class LoginUserExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - var apiInstance = new UserApi(config); - var username = username_example; // string | The user name for login - var password = password_example; // string | The password for login in clear text - - try - { - // Logs user into the system - string result = apiInstance.LoginUser(username, password); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling UserApi.LoginUser: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **string**| The user name for login | - **password** | **string**| The password for login in clear text | - -### Return type - -**string** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
* X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
| -| **400** | Invalid username/password supplied | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **LogoutUser** -> void LogoutUser () - -Logs out current logged in user session - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class LogoutUserExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure API key authorization: api_key - config.AddApiKey("api_key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("api_key", "Bearer"); - - var apiInstance = new UserApi(config); - - try - { - // Logs out current logged in user session - apiInstance.LogoutUser(); - } - catch (ApiException e) - { - Debug.Print("Exception when calling UserApi.LogoutUser: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -void (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **0** | successful operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **UpdateUser** -> void UpdateUser (string username, User user) - -Updated user - -This can only be done by the logged in user. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Client; -using Org.OpenAPITools.Models; - -namespace Example -{ - public class UpdateUserExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "http://petstore.swagger.io/v2"; - // Configure API key authorization: api_key - config.AddApiKey("api_key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("api_key", "Bearer"); - - var apiInstance = new UserApi(config); - var username = username_example; // string | name that need to be deleted - var user = new User(); // User | Updated user object - - try - { - // Updated user - apiInstance.UpdateUser(username, user); - } - catch (ApiException e) - { - Debug.Print("Exception when calling UserApi.UpdateUser: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **string**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | - -### Return type - -void (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **400** | Invalid user supplied | - | -| **404** | User not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/ApiResponseTests.cs b/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/ApiResponseTests.cs deleted file mode 100644 index 8a290fd090c..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/ApiResponseTests.cs +++ /dev/null @@ -1,86 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Models; -using Org.OpenAPITools.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Test.Model -{ - /// - /// Class for testing ApiResponse - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class ApiResponseTests : IDisposable - { - // TODO uncomment below to declare an instance variable for ApiResponse - //private ApiResponse instance; - - public ApiResponseTests() - { - // TODO uncomment below to create an instance of ApiResponse - //instance = new ApiResponse(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of ApiResponse - /// - [Fact] - public void ApiResponseInstanceTest() - { - // TODO uncomment below to test "IsType" ApiResponse - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Code' - /// - [Fact] - public void CodeTest() - { - // TODO unit test for the property 'Code' - } - /// - /// Test the property 'Type' - /// - [Fact] - public void TypeTest() - { - // TODO unit test for the property 'Type' - } - /// - /// Test the property 'Message' - /// - [Fact] - public void MessageTest() - { - // TODO unit test for the property 'Message' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/CategoryTests.cs b/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/CategoryTests.cs deleted file mode 100644 index dd395f7d674..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/CategoryTests.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Models; -using Org.OpenAPITools.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Test.Model -{ - /// - /// Class for testing Category - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class CategoryTests : IDisposable - { - // TODO uncomment below to declare an instance variable for Category - //private Category instance; - - public CategoryTests() - { - // TODO uncomment below to create an instance of Category - //instance = new Category(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of Category - /// - [Fact] - public void CategoryInstanceTest() - { - // TODO uncomment below to test "IsType" Category - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Id' - /// - [Fact] - public void IdTest() - { - // TODO unit test for the property 'Id' - } - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/OrderTests.cs b/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/OrderTests.cs deleted file mode 100644 index d78afb0066d..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/OrderTests.cs +++ /dev/null @@ -1,110 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Models; -using Org.OpenAPITools.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Test.Model -{ - /// - /// Class for testing Order - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class OrderTests : IDisposable - { - // TODO uncomment below to declare an instance variable for Order - //private Order instance; - - public OrderTests() - { - // TODO uncomment below to create an instance of Order - //instance = new Order(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of Order - /// - [Fact] - public void OrderInstanceTest() - { - // TODO uncomment below to test "IsType" Order - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Id' - /// - [Fact] - public void IdTest() - { - // TODO unit test for the property 'Id' - } - /// - /// Test the property 'PetId' - /// - [Fact] - public void PetIdTest() - { - // TODO unit test for the property 'PetId' - } - /// - /// Test the property 'Quantity' - /// - [Fact] - public void QuantityTest() - { - // TODO unit test for the property 'Quantity' - } - /// - /// Test the property 'ShipDate' - /// - [Fact] - public void ShipDateTest() - { - // TODO unit test for the property 'ShipDate' - } - /// - /// Test the property 'Status' - /// - [Fact] - public void StatusTest() - { - // TODO unit test for the property 'Status' - } - /// - /// Test the property 'Complete' - /// - [Fact] - public void CompleteTest() - { - // TODO unit test for the property 'Complete' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/PetTests.cs b/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/PetTests.cs deleted file mode 100644 index b444a6448fc..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/PetTests.cs +++ /dev/null @@ -1,110 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Models; -using Org.OpenAPITools.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Test.Model -{ - /// - /// 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. - /// - public class PetTests : IDisposable - { - // TODO uncomment below to declare an instance variable for Pet - //private Pet instance; - - public PetTests() - { - // TODO uncomment below to create an instance of Pet - //instance = new Pet(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of Pet - /// - [Fact] - public void PetInstanceTest() - { - // TODO uncomment below to test "IsType" Pet - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Id' - /// - [Fact] - public void IdTest() - { - // TODO unit test for the property 'Id' - } - /// - /// Test the property 'Category' - /// - [Fact] - public void CategoryTest() - { - // TODO unit test for the property 'Category' - } - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - /// - /// Test the property 'PhotoUrls' - /// - [Fact] - public void PhotoUrlsTest() - { - // TODO unit test for the property 'PhotoUrls' - } - /// - /// Test the property 'Tags' - /// - [Fact] - public void TagsTest() - { - // TODO unit test for the property 'Tags' - } - /// - /// Test the property 'Status' - /// - [Fact] - public void StatusTest() - { - // TODO unit test for the property 'Status' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/TagTests.cs b/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/TagTests.cs deleted file mode 100644 index 141398d0380..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/TagTests.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Models; -using Org.OpenAPITools.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Test.Model -{ - /// - /// Class for testing Tag - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class TagTests : IDisposable - { - // TODO uncomment below to declare an instance variable for Tag - //private Tag instance; - - public TagTests() - { - // TODO uncomment below to create an instance of Tag - //instance = new Tag(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of Tag - /// - [Fact] - public void TagInstanceTest() - { - // TODO uncomment below to test "IsType" Tag - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Id' - /// - [Fact] - public void IdTest() - { - // TODO unit test for the property 'Id' - } - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/UserTests.cs b/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/UserTests.cs deleted file mode 100644 index 3f0d780b966..00000000000 --- a/samples/client/petstore/csharp-netcore-functions/src/Org.OpenAPITools.Test/Models/UserTests.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * OpenAPI Petstore - * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Org.OpenAPITools.Apis; -using Org.OpenAPITools.Models; -using Org.OpenAPITools.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Test.Model -{ - /// - /// Class for testing User - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class UserTests : IDisposable - { - // TODO uncomment below to declare an instance variable for User - //private User instance; - - public UserTests() - { - // TODO uncomment below to create an instance of User - //instance = new User(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of User - /// - [Fact] - public void UserInstanceTest() - { - // TODO uncomment below to test "IsType" User - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Id' - /// - [Fact] - public void IdTest() - { - // TODO unit test for the property 'Id' - } - /// - /// Test the property 'Username' - /// - [Fact] - public void UsernameTest() - { - // TODO unit test for the property 'Username' - } - /// - /// Test the property 'FirstName' - /// - [Fact] - public void FirstNameTest() - { - // TODO unit test for the property 'FirstName' - } - /// - /// Test the property 'LastName' - /// - [Fact] - public void LastNameTest() - { - // TODO unit test for the property 'LastName' - } - /// - /// Test the property 'Email' - /// - [Fact] - public void EmailTest() - { - // TODO unit test for the property 'Email' - } - /// - /// Test the property 'Password' - /// - [Fact] - public void PasswordTest() - { - // TODO unit test for the property 'Password' - } - /// - /// Test the property 'Phone' - /// - [Fact] - public void PhoneTest() - { - // TODO unit test for the property 'Phone' - } - /// - /// Test the property 'UserStatus' - /// - [Fact] - public void UserStatusTest() - { - // TODO unit test for the property 'UserStatus' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/InlineResponseDefault.md deleted file mode 100644 index e3d55e133f3..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 76a930092ba..5d048a005bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Test.Api { // TODO uncomment below to test the method and replace null with proper value //var response = instance.FooGet(); - //Assert.IsType(response); + //Assert.IsType(response); } } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 291231a91be..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); + } /// /// Test the property 'ClassName' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index 75f4fd8b0e5..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); + } /// /// Test the property 'PetType' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 7731f80c16d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,70 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsType" InlineResponseDefault - //Assert.IsType(instance); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SerializeBasedOnInitialization.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SerializeBasedOnInitialization.cs index 68fb2e70f5f..ba7b319187e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SerializeBasedOnInitialization.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SerializeBasedOnInitialization.cs @@ -1,4 +1,4 @@ -using Org.OpenAPITools.Model; +using Org.OpenAPITools.Model; using System; using System.Collections.Generic; using System.Text; diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index d2532a0f955..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,154 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - [DataContract(Name = "inline_response_default")] - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string. - public InlineResponseDefault(Foo _string = default(Foo)) - { - this._String = _string; - if (this.String != null) - { - this._flagString = true; - } - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Gets or Sets String - /// - [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String - { - get{ return _String;} - set - { - _String = value; - _flagString = true; - } - } - private Foo _String; - private bool _flagString; - - /// - /// Returns false as String should not be serialized given that it's read-only. - /// - /// false (boolean) - public bool ShouldSerializeString() - { - return _flagString; - } - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/InlineResponseDefault.md deleted file mode 100644 index 0c1b0d5bb02..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/docs/models/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 062cf436366..16f60704f2a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Test.Api public async Task FooGetAsyncTest() { var response = await _instance.FooGetAsync(); - Assert.IsType(response); + Assert.IsType(response); } } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 291231a91be..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); + } /// /// Test the property 'ClassName' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index 75f4fd8b0e5..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); + } /// /// Test the property 'PetType' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 7731f80c16d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,70 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsType" InlineResponseDefault - //Assert.IsType(instance); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index 7e5ed58fad2..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,121 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -#nullable enable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.ComponentModel.DataAnnotations; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string - public InlineResponseDefault(Foo? _string = default) - { - String = _string; - } - - /// - /// Gets or Sets String - /// - [JsonPropertyName("string")] - public Foo? String { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public Dictionary AdditionalProperties { get; set; } = new Dictionary(); - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object? input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault? input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/InlineResponseDefault.md deleted file mode 100644 index 0c1b0d5bb02..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/docs/models/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 062cf436366..16f60704f2a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Test.Api public async Task FooGetAsyncTest() { var response = await _instance.FooGetAsync(); - Assert.IsType(response); + Assert.IsType(response); } } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 291231a91be..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); + } /// /// Test the property 'ClassName' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index 75f4fd8b0e5..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); + } /// /// Test the property 'PetType' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 7731f80c16d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,70 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsType" InlineResponseDefault - //Assert.IsType(instance); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index 4dfd57402fe..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.ComponentModel.DataAnnotations; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string - public InlineResponseDefault(Foo _string = default) - { - String = _string; - } - - /// - /// Gets or Sets String - /// - [JsonPropertyName("string")] - public Foo String { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public Dictionary AdditionalProperties { get; set; } = new Dictionary(); - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/InlineResponseDefault.md deleted file mode 100644 index 0c1b0d5bb02..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/docs/models/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 062cf436366..16f60704f2a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Test.Api public async Task FooGetAsyncTest() { var response = await _instance.FooGetAsync(); - Assert.IsType(response); + Assert.IsType(response); } } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 291231a91be..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); + } /// /// Test the property 'ClassName' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index 75f4fd8b0e5..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); + } /// /// Test the property 'PetType' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 7731f80c16d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,70 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsType" InlineResponseDefault - //Assert.IsType(instance); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index 4dfd57402fe..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.ComponentModel.DataAnnotations; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string - public InlineResponseDefault(Foo _string = default) - { - String = _string; - } - - /// - /// Gets or Sets String - /// - [JsonPropertyName("string")] - public Foo String { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public Dictionary AdditionalProperties { get; set; } = new Dictionary(); - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/InlineResponseDefault.md deleted file mode 100644 index e3d55e133f3..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/docs/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 65027000316..767537cf408 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Test.Api { // TODO uncomment below to test the method and replace null with proper value //var response = instance.FooGet(); - //Assert.IsType(response); + //Assert.IsType(response); } } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index afd0ff25a90..41e1c365c2b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -174,7 +174,7 @@ namespace Org.OpenAPITools.Test.Api //long? int64 = null; //float? _float = null; //string _string = null; - //System.IO.Stream binary = null; + //FileParameter binary = null; //DateTime? date = null; //DateTime? dateTime = null; //string password = null; diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 291231a91be..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); + } /// /// Test the property 'ClassName' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index e2d84645c60..4f81b845d49 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -81,6 +81,14 @@ namespace Org.OpenAPITools.Test.Model // TODO unit test for the property 'EnumInteger' } /// + /// Test the property 'EnumIntegerOnly' + /// + [Fact] + public void EnumIntegerOnlyTest() + { + // TODO unit test for the property 'EnumIntegerOnly' + } + /// /// Test the property 'EnumNumber' /// [Fact] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index 75f4fd8b0e5..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); + } /// /// Test the property 'PetType' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 7731f80c16d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,70 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsType" InlineResponseDefault - //Assert.IsType(instance); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 8a544e417fe..24a9e263158 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -57,12 +57,12 @@ namespace Org.OpenAPITools.Test.Model /// - /// Test the property '__Client' + /// Test the property '_Client' /// [Fact] - public void __ClientTest() + public void _ClientTest() { - // TODO unit test for the property '__Client' + // TODO unit test for the property '_Client' } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 57c3f6f9e42..0f0e1ff12a9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -64,6 +64,14 @@ namespace Org.OpenAPITools.Test.Model { // TODO unit test for the property 'SpecialPropertyName' } + /// + /// Test the property '_SpecialModelName' + /// + [Fact] + public void _SpecialModelNameTest() + { + // TODO unit test for the property '_SpecialModelName' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index 6e0c37e257a..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,133 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using FileParameter = Org.OpenAPITools.Client.FileParameter; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - [DataContract(Name = "inline_response_default")] - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string. - public InlineResponseDefault(Foo _string = default(Foo)) - { - this.String = _string; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Gets or Sets String - /// - [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject.md deleted file mode 100644 index 40e16da1bb7..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Updated name of the pet | [optional] -**Status** | **string** | Updated status of the pet | [optional] - -[[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-netcore/OpenAPIClient-net47/docs/InlineObject1.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject1.md deleted file mode 100644 index 2e6d226754e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject1.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject1 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdditionalMetadata** | **string** | Additional data to pass to server | [optional] -**File** | **System.IO.Stream** | file to upload | [optional] - -[[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-netcore/OpenAPIClient-net47/docs/InlineObject2.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject2.md deleted file mode 100644 index c02c78f9b2d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject2.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject2 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**EnumFormStringArray** | **List<string>** | Form parameter enum test (string array) | [optional] -**EnumFormString** | **string** | Form parameter enum test (string) | [optional] [default to EnumFormStringEnum.Efg] - -[[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-netcore/OpenAPIClient-net47/docs/InlineObject3.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject3.md deleted file mode 100644 index 38b5bf8a5ce..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject3.md +++ /dev/null @@ -1,22 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject3 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Integer** | **int** | None | [optional] -**Int32** | **int** | None | [optional] -**Int64** | **long** | None | [optional] -**Number** | **decimal** | None | -**Float** | **float** | None | [optional] -**Double** | **double** | None | -**String** | **string** | None | [optional] -**PatternWithoutDelimiter** | **string** | None | -**Byte** | **byte[]** | None | -**Binary** | **System.IO.Stream** | None | [optional] -**Date** | **DateTime** | None | [optional] -**DateTime** | **DateTime** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] -**Password** | **string** | None | [optional] -**Callback** | **string** | None | [optional] - -[[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-netcore/OpenAPIClient-net47/docs/InlineObject4.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject4.md deleted file mode 100644 index c8e00663ee8..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject4.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject4 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Param** | **string** | field1 | -**Param2** | **string** | field2 | - -[[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-netcore/OpenAPIClient-net47/docs/InlineObject5.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject5.md deleted file mode 100644 index a28ff47f2ec..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineObject5.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject5 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdditionalMetadata** | **string** | Additional data to pass to server | [optional] -**RequiredFile** | **System.IO.Stream** | file to upload | - -[[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-netcore/OpenAPIClient-net47/docs/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineResponseDefault.md deleted file mode 100644 index e3d55e133f3..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/docs/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 76a930092ba..5d048a005bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Test.Api { // TODO uncomment below to test the method and replace null with proper value //var response = instance.FooGet(); - //Assert.IsType(response); + //Assert.IsType(response); } } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 291231a91be..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); + } /// /// Test the property 'ClassName' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index e2d84645c60..4f81b845d49 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -81,6 +81,14 @@ namespace Org.OpenAPITools.Test.Model // TODO unit test for the property 'EnumInteger' } /// + /// Test the property 'EnumIntegerOnly' + /// + [Fact] + public void EnumIntegerOnlyTest() + { + // TODO unit test for the property 'EnumIntegerOnly' + } + /// /// Test the property 'EnumNumber' /// [Fact] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index ba2e45a0eb8..97332800e9a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -105,6 +105,14 @@ namespace Org.OpenAPITools.Test.Model // TODO unit test for the property 'Double' } /// + /// Test the property 'Decimal' + /// + [Fact] + public void DecimalTest() + { + // TODO unit test for the property 'Decimal' + } + /// /// Test the property 'String' /// [Fact] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index 75f4fd8b0e5..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); + } /// /// Test the property 'PetType' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs deleted file mode 100644 index eaea37f1496..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject1 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject1Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject1 - //private InlineObject1 instance; - - public InlineObject1Tests() - { - // TODO uncomment below to create an instance of InlineObject1 - //instance = new InlineObject1(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject1 - /// - [Fact] - public void InlineObject1InstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject1 - //Assert.IsType(instance); - } - - - /// - /// Test the property 'AdditionalMetadata' - /// - [Fact] - public void AdditionalMetadataTest() - { - // TODO unit test for the property 'AdditionalMetadata' - } - /// - /// Test the property 'File' - /// - [Fact] - public void FileTest() - { - // TODO unit test for the property 'File' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs deleted file mode 100644 index 4aef8fa0562..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject2 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject2Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject2 - //private InlineObject2 instance; - - public InlineObject2Tests() - { - // TODO uncomment below to create an instance of InlineObject2 - //instance = new InlineObject2(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject2 - /// - [Fact] - public void InlineObject2InstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject2 - //Assert.IsType(instance); - } - - - /// - /// Test the property 'EnumFormStringArray' - /// - [Fact] - public void EnumFormStringArrayTest() - { - // TODO unit test for the property 'EnumFormStringArray' - } - /// - /// Test the property 'EnumFormString' - /// - [Fact] - public void EnumFormStringTest() - { - // TODO unit test for the property 'EnumFormString' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs deleted file mode 100644 index 0f8750d9ebf..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs +++ /dev/null @@ -1,174 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject3 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject3Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject3 - //private InlineObject3 instance; - - public InlineObject3Tests() - { - // TODO uncomment below to create an instance of InlineObject3 - //instance = new InlineObject3(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject3 - /// - [Fact] - public void InlineObject3InstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject3 - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Integer' - /// - [Fact] - public void IntegerTest() - { - // TODO unit test for the property 'Integer' - } - /// - /// Test the property 'Int32' - /// - [Fact] - public void Int32Test() - { - // TODO unit test for the property 'Int32' - } - /// - /// Test the property 'Int64' - /// - [Fact] - public void Int64Test() - { - // TODO unit test for the property 'Int64' - } - /// - /// Test the property 'Number' - /// - [Fact] - public void NumberTest() - { - // TODO unit test for the property 'Number' - } - /// - /// Test the property 'Float' - /// - [Fact] - public void FloatTest() - { - // TODO unit test for the property 'Float' - } - /// - /// Test the property 'Double' - /// - [Fact] - public void DoubleTest() - { - // TODO unit test for the property 'Double' - } - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - /// - /// Test the property 'PatternWithoutDelimiter' - /// - [Fact] - public void PatternWithoutDelimiterTest() - { - // TODO unit test for the property 'PatternWithoutDelimiter' - } - /// - /// Test the property 'Byte' - /// - [Fact] - public void ByteTest() - { - // TODO unit test for the property 'Byte' - } - /// - /// Test the property 'Binary' - /// - [Fact] - public void BinaryTest() - { - // TODO unit test for the property 'Binary' - } - /// - /// Test the property 'Date' - /// - [Fact] - public void DateTest() - { - // TODO unit test for the property 'Date' - } - /// - /// Test the property 'DateTime' - /// - [Fact] - public void DateTimeTest() - { - // TODO unit test for the property 'DateTime' - } - /// - /// Test the property 'Password' - /// - [Fact] - public void PasswordTest() - { - // TODO unit test for the property 'Password' - } - /// - /// Test the property 'Callback' - /// - [Fact] - public void CallbackTest() - { - // TODO unit test for the property 'Callback' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs deleted file mode 100644 index b2a24a53c2a..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject4 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject4Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject4 - //private InlineObject4 instance; - - public InlineObject4Tests() - { - // TODO uncomment below to create an instance of InlineObject4 - //instance = new InlineObject4(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject4 - /// - [Fact] - public void InlineObject4InstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject4 - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Param' - /// - [Fact] - public void ParamTest() - { - // TODO unit test for the property 'Param' - } - /// - /// Test the property 'Param2' - /// - [Fact] - public void Param2Test() - { - // TODO unit test for the property 'Param2' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs deleted file mode 100644 index 9036c471594..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject5 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject5Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject5 - //private InlineObject5 instance; - - public InlineObject5Tests() - { - // TODO uncomment below to create an instance of InlineObject5 - //instance = new InlineObject5(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject5 - /// - [Fact] - public void InlineObject5InstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject5 - //Assert.IsType(instance); - } - - - /// - /// Test the property 'AdditionalMetadata' - /// - [Fact] - public void AdditionalMetadataTest() - { - // TODO unit test for the property 'AdditionalMetadata' - } - /// - /// Test the property 'RequiredFile' - /// - [Fact] - public void RequiredFileTest() - { - // TODO unit test for the property 'RequiredFile' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs deleted file mode 100644 index e466e5820b3..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineObject - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObjectTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject - //private InlineObject instance; - - public InlineObjectTests() - { - // TODO uncomment below to create an instance of InlineObject - //instance = new InlineObject(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject - /// - [Fact] - public void InlineObjectInstanceTest() - { - // TODO uncomment below to test "IsType" InlineObject - //Assert.IsType(instance); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - /// - /// Test the property 'Status' - /// - [Fact] - public void StatusTest() - { - // TODO unit test for the property 'Status' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 7731f80c16d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,70 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsType" InlineResponseDefault - //Assert.IsType(instance); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 8a544e417fe..24a9e263158 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -57,12 +57,12 @@ namespace Org.OpenAPITools.Test.Model /// - /// Test the property '__Client' + /// Test the property '_Client' /// [Fact] - public void __ClientTest() + public void _ClientTest() { - // TODO unit test for the property '__Client' + // TODO unit test for the property '_Client' } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 57c3f6f9e42..0f0e1ff12a9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -64,6 +64,14 @@ namespace Org.OpenAPITools.Test.Model { // TODO unit test for the property 'SpecialPropertyName' } + /// + /// Test the property '_SpecialModelName' + /// + [Fact] + public void _SpecialModelNameTest() + { + // TODO unit test for the property '_SpecialModelName' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject.cs deleted file mode 100644 index 651f325b645..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject.cs +++ /dev/null @@ -1,141 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject - /// - [DataContract(Name = "inline_object")] - public partial class InlineObject : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Updated name of the pet. - /// Updated status of the pet. - public InlineObject(string name = default(string), string status = default(string)) - { - this.Name = name; - this.Status = status; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Updated name of the pet - /// - /// Updated name of the pet - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - - /// - /// Updated status of the pet - /// - /// Updated status of the pet - [DataMember(Name = "status", EmitDefaultValue = false)] - public string Status { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject).AreEqual; - } - - /// - /// Returns true if InlineObject instances are equal - /// - /// Instance of InlineObject to be compared - /// Boolean - public bool Equals(InlineObject input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject1.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject1.cs deleted file mode 100644 index 9e96b966e9e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject1.cs +++ /dev/null @@ -1,141 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject1 - /// - [DataContract(Name = "inline_object_1")] - public partial class InlineObject1 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Additional data to pass to server. - /// file to upload. - public InlineObject1(string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) - { - this.AdditionalMetadata = additionalMetadata; - this.File = file; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Additional data to pass to server - /// - /// Additional data to pass to server - [DataMember(Name = "additionalMetadata", EmitDefaultValue = false)] - public string AdditionalMetadata { get; set; } - - /// - /// file to upload - /// - /// file to upload - [DataMember(Name = "file", EmitDefaultValue = false)] - public System.IO.Stream File { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject1 {\n"); - sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n"); - sb.Append(" File: ").Append(File).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject1).AreEqual; - } - - /// - /// Returns true if InlineObject1 instances are equal - /// - /// Instance of InlineObject1 to be compared - /// Boolean - public bool Equals(InlineObject1 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AdditionalMetadata != null) - hashCode = hashCode * 59 + this.AdditionalMetadata.GetHashCode(); - if (this.File != null) - hashCode = hashCode * 59 + this.File.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject2.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject2.cs deleted file mode 100644 index 0a8a33d11a0..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject2.cs +++ /dev/null @@ -1,185 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject2 - /// - [DataContract(Name = "inline_object_2")] - public partial class InlineObject2 : IEquatable, IValidatableObject - { - /// - /// Defines EnumFormStringArray - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum EnumFormStringArrayEnum - { - /// - /// Enum GreaterThan for value: > - /// - [EnumMember(Value = ">")] - GreaterThan = 1, - - /// - /// Enum Dollar for value: $ - /// - [EnumMember(Value = "$")] - Dollar = 2 - - } - - - /// - /// Form parameter enum test (string array) - /// - /// Form parameter enum test (string array) - [DataMember(Name = "enum_form_string_array", EmitDefaultValue = false)] - public List EnumFormStringArray { get; set; } - /// - /// Form parameter enum test (string) - /// - /// Form parameter enum test (string) - [JsonConverter(typeof(StringEnumConverter))] - public enum EnumFormStringEnum - { - /// - /// Enum Abc for value: _abc - /// - [EnumMember(Value = "_abc")] - Abc = 1, - - /// - /// Enum Efg for value: -efg - /// - [EnumMember(Value = "-efg")] - Efg = 2, - - /// - /// Enum Xyz for value: (xyz) - /// - [EnumMember(Value = "(xyz)")] - Xyz = 3 - - } - - /// - /// Form parameter enum test (string) - /// - /// Form parameter enum test (string) - [DataMember(Name = "enum_form_string", EmitDefaultValue = false)] - public EnumFormStringEnum? EnumFormString { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// Form parameter enum test (string array). - /// Form parameter enum test (string) (default to EnumFormStringEnum.Efg). - public InlineObject2(List enumFormStringArray = default(List), EnumFormStringEnum? enumFormString = EnumFormStringEnum.Efg) - { - this.EnumFormStringArray = enumFormStringArray; - this.EnumFormString = enumFormString; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject2 {\n"); - sb.Append(" EnumFormStringArray: ").Append(EnumFormStringArray).Append("\n"); - sb.Append(" EnumFormString: ").Append(EnumFormString).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject2).AreEqual; - } - - /// - /// Returns true if InlineObject2 instances are equal - /// - /// Instance of InlineObject2 to be compared - /// Boolean - public bool Equals(InlineObject2 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = hashCode * 59 + this.EnumFormStringArray.GetHashCode(); - hashCode = hashCode * 59 + this.EnumFormString.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject3.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject3.cs deleted file mode 100644 index 7fce7c55597..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject3.cs +++ /dev/null @@ -1,370 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject3 - /// - [DataContract(Name = "inline_object_3")] - public partial class InlineObject3 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject3() - { - this.AdditionalProperties = new Dictionary(); - } - /// - /// Initializes a new instance of the class. - /// - /// None. - /// None. - /// None. - /// None (required). - /// None. - /// None (required). - /// None. - /// None (required). - /// None (required). - /// None. - /// None. - /// None (default to "2010-02-01T10:20:10.111110+01:00"). - /// None. - /// None. - public InlineObject3(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), string _string = default(string), string patternWithoutDelimiter = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string)) - { - this.Number = number; - this.Double = _double; - // to ensure "patternWithoutDelimiter" is required (not null) - this.PatternWithoutDelimiter = patternWithoutDelimiter ?? throw new ArgumentNullException("patternWithoutDelimiter is a required property for InlineObject3 and cannot be null"); - // to ensure "_byte" is required (not null) - this.Byte = _byte ?? throw new ArgumentNullException("_byte is a required property for InlineObject3 and cannot be null"); - this.Integer = integer; - this.Int32 = int32; - this.Int64 = int64; - this.Float = _float; - this.String = _string; - this.Binary = binary; - this.Date = date; - this.DateTime = dateTime; - this.Password = password; - this.Callback = callback; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// None - /// - /// None - [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = false)] - public decimal Number { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "double", IsRequired = true, EmitDefaultValue = false)] - public double Double { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "pattern_without_delimiter", IsRequired = true, EmitDefaultValue = false)] - public string PatternWithoutDelimiter { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = false)] - public byte[] Byte { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "binary", EmitDefaultValue = false)] - public System.IO.Stream Binary { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "date", EmitDefaultValue = false)] - [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime Date { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "password", EmitDefaultValue = false)] - public string Password { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "callback", EmitDefaultValue = false)] - public string Callback { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject3 {\n"); - sb.Append(" Integer: ").Append(Integer).Append("\n"); - sb.Append(" Int32: ").Append(Int32).Append("\n"); - sb.Append(" Int64: ").Append(Int64).Append("\n"); - sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" PatternWithoutDelimiter: ").Append(PatternWithoutDelimiter).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); - sb.Append(" Binary: ").Append(Binary).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" DateTime: ").Append(DateTime).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Callback: ").Append(Callback).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject3).AreEqual; - } - - /// - /// Returns true if InlineObject3 instances are equal - /// - /// Instance of InlineObject3 to be compared - /// Boolean - public bool Equals(InlineObject3 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = hashCode * 59 + this.Integer.GetHashCode(); - hashCode = hashCode * 59 + this.Int32.GetHashCode(); - hashCode = hashCode * 59 + this.Int64.GetHashCode(); - hashCode = hashCode * 59 + this.Number.GetHashCode(); - hashCode = hashCode * 59 + this.Float.GetHashCode(); - hashCode = hashCode * 59 + this.Double.GetHashCode(); - if (this.String != null) - hashCode = hashCode * 59 + this.String.GetHashCode(); - if (this.PatternWithoutDelimiter != null) - hashCode = hashCode * 59 + this.PatternWithoutDelimiter.GetHashCode(); - if (this.Byte != null) - hashCode = hashCode * 59 + this.Byte.GetHashCode(); - if (this.Binary != null) - hashCode = hashCode * 59 + this.Binary.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.DateTime != null) - hashCode = hashCode * 59 + this.DateTime.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Callback != null) - hashCode = hashCode * 59 + this.Callback.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - // Integer (int) maximum - if(this.Integer > (int)100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); - } - - // Integer (int) minimum - if(this.Integer < (int)10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); - } - - // Int32 (int) maximum - if(this.Int32 > (int)200) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); - } - - // Int32 (int) minimum - if(this.Int32 < (int)20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); - } - - // Number (decimal) maximum - if(this.Number > (decimal)543.2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" }); - } - - // Number (decimal) minimum - if(this.Number < (decimal)32.1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); - } - - // Float (float) maximum - if(this.Float > (float)987.6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); - } - - // Double (double) maximum - if(this.Double > (double)123.4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); - } - - // Double (double) minimum - if(this.Double < (double)67.8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); - } - - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } - - // PatternWithoutDelimiter (string) pattern - Regex regexPatternWithoutDelimiter = new Regex(@"^[A-Z].*", RegexOptions.CultureInvariant); - if (false == regexPatternWithoutDelimiter.Match(this.PatternWithoutDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithoutDelimiter, must match a pattern of " + regexPatternWithoutDelimiter, new [] { "PatternWithoutDelimiter" }); - } - - // Password (string) maxLength - if(this.Password != null && this.Password.Length > 64) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be less than 64.", new [] { "Password" }); - } - - // Password (string) minLength - if(this.Password != null && this.Password.Length < 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be greater than 10.", new [] { "Password" }); - } - - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject4.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject4.cs deleted file mode 100644 index 72cece10617..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject4.cs +++ /dev/null @@ -1,151 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject4 - /// - [DataContract(Name = "inline_object_4")] - public partial class InlineObject4 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject4() - { - this.AdditionalProperties = new Dictionary(); - } - /// - /// Initializes a new instance of the class. - /// - /// field1 (required). - /// field2 (required). - public InlineObject4(string param = default(string), string param2 = default(string)) - { - // to ensure "param" is required (not null) - this.Param = param ?? throw new ArgumentNullException("param is a required property for InlineObject4 and cannot be null"); - // to ensure "param2" is required (not null) - this.Param2 = param2 ?? throw new ArgumentNullException("param2 is a required property for InlineObject4 and cannot be null"); - this.AdditionalProperties = new Dictionary(); - } - - /// - /// field1 - /// - /// field1 - [DataMember(Name = "param", IsRequired = true, EmitDefaultValue = false)] - public string Param { get; set; } - - /// - /// field2 - /// - /// field2 - [DataMember(Name = "param2", IsRequired = true, EmitDefaultValue = false)] - public string Param2 { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject4 {\n"); - sb.Append(" Param: ").Append(Param).Append("\n"); - sb.Append(" Param2: ").Append(Param2).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject4).AreEqual; - } - - /// - /// Returns true if InlineObject4 instances are equal - /// - /// Instance of InlineObject4 to be compared - /// Boolean - public bool Equals(InlineObject4 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Param != null) - hashCode = hashCode * 59 + this.Param.GetHashCode(); - if (this.Param2 != null) - hashCode = hashCode * 59 + this.Param2.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject5.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject5.cs deleted file mode 100644 index f682f14ef41..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineObject5.cs +++ /dev/null @@ -1,150 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject5 - /// - [DataContract(Name = "inline_object_5")] - public partial class InlineObject5 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject5() - { - this.AdditionalProperties = new Dictionary(); - } - /// - /// Initializes a new instance of the class. - /// - /// Additional data to pass to server. - /// file to upload (required). - public InlineObject5(string additionalMetadata = default(string), System.IO.Stream requiredFile = default(System.IO.Stream)) - { - // to ensure "requiredFile" is required (not null) - this.RequiredFile = requiredFile ?? throw new ArgumentNullException("requiredFile is a required property for InlineObject5 and cannot be null"); - this.AdditionalMetadata = additionalMetadata; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Additional data to pass to server - /// - /// Additional data to pass to server - [DataMember(Name = "additionalMetadata", EmitDefaultValue = false)] - public string AdditionalMetadata { get; set; } - - /// - /// file to upload - /// - /// file to upload - [DataMember(Name = "requiredFile", IsRequired = true, EmitDefaultValue = false)] - public System.IO.Stream RequiredFile { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject5 {\n"); - sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n"); - sb.Append(" RequiredFile: ").Append(RequiredFile).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject5).AreEqual; - } - - /// - /// Returns true if InlineObject5 instances are equal - /// - /// Instance of InlineObject5 to be compared - /// Boolean - public bool Equals(InlineObject5 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AdditionalMetadata != null) - hashCode = hashCode * 59 + this.AdditionalMetadata.GetHashCode(); - if (this.RequiredFile != null) - hashCode = hashCode * 59 + this.RequiredFile.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index ae46f1f0098..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,132 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - [DataContract(Name = "inline_response_default")] - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string. - public InlineResponseDefault(Foo _string = default(Foo)) - { - this.String = _string; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Gets or Sets String - /// - [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/InlineResponseDefault.md deleted file mode 100644 index e3d55e133f3..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/docs/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 76a930092ba..5d048a005bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Test.Api { // TODO uncomment below to test the method and replace null with proper value //var response = instance.FooGet(); - //Assert.IsType(response); + //Assert.IsType(response); } } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/PetApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/PetApiTests.cs index c1ed54241c6..67386764145 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/PetApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/PetApiTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git @@ -62,8 +62,7 @@ namespace Org.OpenAPITools.Test.Api { // TODO uncomment below to test the method and replace null with proper value //Pet pet = null; - //var response = instance.AddPet(pet); - //Assert.IsType(response); + //instance.AddPet(pet); } /// @@ -122,8 +121,7 @@ namespace Org.OpenAPITools.Test.Api { // TODO uncomment below to test the method and replace null with proper value //Pet pet = null; - //var response = instance.UpdatePet(pet); - //Assert.IsType(response); + //instance.UpdatePet(pet); } /// @@ -152,5 +150,19 @@ namespace Org.OpenAPITools.Test.Api //var response = instance.UploadFile(petId, additionalMetadata, file); //Assert.IsType(response); } + + /// + /// Test UploadFileWithRequiredFile + /// + [Fact] + public void UploadFileWithRequiredFileTest() + { + // TODO uncomment below to test the method and replace null with proper value + //long petId = null; + //System.IO.Stream requiredFile = null; + //string additionalMetadata = null; + //var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs index 6c99ad95134..48e9f32748d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/UserApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/UserApiTests.cs index 3f38396769e..792db5819a0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/UserApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Api/UserApiTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 291231a91be..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); + } /// /// Test the property 'ClassName' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 54c455c8af1..2a2e098e608 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 973015d694e..6ce48e601e4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index e2d84645c60..4f81b845d49 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -81,6 +81,14 @@ namespace Org.OpenAPITools.Test.Model // TODO unit test for the property 'EnumInteger' } /// + /// Test the property 'EnumIntegerOnly' + /// + [Fact] + public void EnumIntegerOnlyTest() + { + // TODO unit test for the property 'EnumIntegerOnly' + } + /// /// Test the property 'EnumNumber' /// [Fact] diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index 75f4fd8b0e5..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -55,15 +55,6 @@ namespace Org.OpenAPITools.Test.Model //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -73,6 +64,15 @@ namespace Org.OpenAPITools.Test.Model // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); + } /// /// Test the property 'PetType' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 7731f80c16d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,70 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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.Model -{ - /// - /// Class for testing InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsType" InlineResponseDefault - //Assert.IsType(instance); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 8a544e417fe..24a9e263158 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -57,12 +57,12 @@ namespace Org.OpenAPITools.Test.Model /// - /// Test the property '__Client' + /// Test the property '_Client' /// [Fact] - public void __ClientTest() + public void _ClientTest() { - // TODO unit test for the property '__Client' + // TODO unit test for the property '_Client' } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OrderTests.cs index 0cc1e616df4..cf5c561c547 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/PetTests.cs index a296ab12b4c..154e66f8dfc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 57c3f6f9e42..0f0e1ff12a9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -64,6 +64,14 @@ namespace Org.OpenAPITools.Test.Model { // TODO unit test for the property 'SpecialPropertyName' } + /// + /// Test the property '_SpecialModelName' + /// + [Fact] + public void _SpecialModelNameTest() + { + // TODO unit test for the property '_SpecialModelName' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TagTests.cs index d3b4766b104..6d56232d0a7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/UserTests.cs index b7019235bfe..a7b095e4c28 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Petstore * - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git @@ -120,6 +120,38 @@ namespace Org.OpenAPITools.Test.Model { // TODO unit test for the property 'UserStatus' } + /// + /// Test the property 'ObjectWithNoDeclaredProps' + /// + [Fact] + public void ObjectWithNoDeclaredPropsTest() + { + // TODO unit test for the property 'ObjectWithNoDeclaredProps' + } + /// + /// Test the property 'ObjectWithNoDeclaredPropsNullable' + /// + [Fact] + public void ObjectWithNoDeclaredPropsNullableTest() + { + // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' + } + /// + /// Test the property 'AnyTypeProp' + /// + [Fact] + public void AnyTypePropTest() + { + // TODO unit test for the property 'AnyTypeProp' + } + /// + /// Test the property 'AnyTypePropNullable' + /// + [Fact] + public void AnyTypePropNullableTest() + { + // TODO unit test for the property 'AnyTypePropNullable' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index ae46f1f0098..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,132 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - [DataContract(Name = "inline_response_default")] - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string. - public InlineResponseDefault(Foo _string = default(Foo)) - { - this.String = _string; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Gets or Sets String - /// - [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesAnyType.md deleted file mode 100644 index 2513b741ba0..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesAnyType.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesAnyType -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/AdditionalPropertiesArray.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesArray.md deleted file mode 100644 index 39a7c940c28..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesArray.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesArray -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesBoolean.md deleted file mode 100644 index e3b30ac619a..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesBoolean.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesBoolean -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesInteger.md deleted file mode 100644 index e40cc1e54ec..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesInteger.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesInteger -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesNumber.md deleted file mode 100644 index 91764084c89..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesNumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesNumber -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/AdditionalPropertiesObject.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesObject.md deleted file mode 100644 index 2fa66f43d68..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesObject -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/AdditionalPropertiesString.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesString.md deleted file mode 100644 index 008d3d4f33b..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesString.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesString -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/AnimalFarm.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AnimalFarm.md deleted file mode 100644 index 69c51725805..00000000000 --- a/samples/client/petstore/csharp-netcore/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-netcore/OpenAPIClient/docs/BigCat.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/BigCat.md deleted file mode 100644 index 41c336e4ca9..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/BigCat.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.BigCat -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Declawed** | **bool** | | [optional] -**Kind** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/BigCatAllOf.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/BigCatAllOf.md deleted file mode 100644 index 88a739b7e4a..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/BigCatAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.BigCatAllOf -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | [optional] - -[[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-netcore/OpenAPIClient/docs/InlineObject.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject.md deleted file mode 100644 index 40e16da1bb7..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Updated name of the pet | [optional] -**Status** | **string** | Updated status of the pet | [optional] - -[[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-netcore/OpenAPIClient/docs/InlineObject1.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject1.md deleted file mode 100644 index 2e6d226754e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject1.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject1 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdditionalMetadata** | **string** | Additional data to pass to server | [optional] -**File** | **System.IO.Stream** | file to upload | [optional] - -[[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-netcore/OpenAPIClient/docs/InlineObject2.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject2.md deleted file mode 100644 index c02c78f9b2d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject2.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject2 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**EnumFormStringArray** | **List<string>** | Form parameter enum test (string array) | [optional] -**EnumFormString** | **string** | Form parameter enum test (string) | [optional] [default to EnumFormStringEnum.Efg] - -[[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-netcore/OpenAPIClient/docs/InlineObject3.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject3.md deleted file mode 100644 index 38b5bf8a5ce..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject3.md +++ /dev/null @@ -1,22 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject3 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Integer** | **int** | None | [optional] -**Int32** | **int** | None | [optional] -**Int64** | **long** | None | [optional] -**Number** | **decimal** | None | -**Float** | **float** | None | [optional] -**Double** | **double** | None | -**String** | **string** | None | [optional] -**PatternWithoutDelimiter** | **string** | None | -**Byte** | **byte[]** | None | -**Binary** | **System.IO.Stream** | None | [optional] -**Date** | **DateTime** | None | [optional] -**DateTime** | **DateTime** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] -**Password** | **string** | None | [optional] -**Callback** | **string** | None | [optional] - -[[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-netcore/OpenAPIClient/docs/InlineObject4.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject4.md deleted file mode 100644 index c8e00663ee8..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject4.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject4 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Param** | **string** | field1 | -**Param2** | **string** | field2 | - -[[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-netcore/OpenAPIClient/docs/InlineObject5.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject5.md deleted file mode 100644 index a28ff47f2ec..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject5.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject5 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdditionalMetadata** | **string** | Additional data to pass to server | [optional] -**RequiredFile** | **System.IO.Stream** | file to upload | - -[[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-netcore/OpenAPIClient/docs/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineResponseDefault.md deleted file mode 100644 index e3d55e133f3..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClient/docs/StringBooleanMap.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/StringBooleanMap.md deleted file mode 100644 index 6e7a71368df..00000000000 --- a/samples/client/petstore/csharp-netcore/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-netcore/OpenAPIClient/docs/TypeHolderDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderDefault.md deleted file mode 100644 index ccf43c723ec..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderDefault.md +++ /dev/null @@ -1,13 +0,0 @@ -# Org.OpenAPITools.Model.TypeHolderDefault -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StringItem** | **string** | | [default to "what"] -**NumberItem** | **decimal** | | -**IntegerItem** | **int** | | -**BoolItem** | **bool** | | [default to true] -**ArrayItem** | **List<int>** | | - -[[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-netcore/OpenAPIClient/docs/TypeHolderExample.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderExample.md deleted file mode 100644 index f78185c2aa0..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderExample.md +++ /dev/null @@ -1,14 +0,0 @@ -# Org.OpenAPITools.Model.TypeHolderExample -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StringItem** | **string** | | -**NumberItem** | **decimal** | | -**FloatItem** | **float** | | -**IntegerItem** | **int** | | -**BoolItem** | **bool** | | -**ArrayItem** | **List<int>** | | - -[[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-netcore/OpenAPIClient/docs/XmlItem.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/XmlItem.md deleted file mode 100644 index 679fd2c3d11..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/XmlItem.md +++ /dev/null @@ -1,37 +0,0 @@ -# Org.OpenAPITools.Model.XmlItem -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AttributeString** | **string** | | [optional] -**AttributeNumber** | **decimal** | | [optional] -**AttributeInteger** | **int** | | [optional] -**AttributeBoolean** | **bool** | | [optional] -**WrappedArray** | **List<int>** | | [optional] -**NameString** | **string** | | [optional] -**NameNumber** | **decimal** | | [optional] -**NameInteger** | **int** | | [optional] -**NameBoolean** | **bool** | | [optional] -**NameArray** | **List<int>** | | [optional] -**NameWrappedArray** | **List<int>** | | [optional] -**PrefixString** | **string** | | [optional] -**PrefixNumber** | **decimal** | | [optional] -**PrefixInteger** | **int** | | [optional] -**PrefixBoolean** | **bool** | | [optional] -**PrefixArray** | **List<int>** | | [optional] -**PrefixWrappedArray** | **List<int>** | | [optional] -**NamespaceString** | **string** | | [optional] -**NamespaceNumber** | **decimal** | | [optional] -**NamespaceInteger** | **int** | | [optional] -**NamespaceBoolean** | **bool** | | [optional] -**NamespaceArray** | **List<int>** | | [optional] -**NamespaceWrappedArray** | **List<int>** | | [optional] -**PrefixNsString** | **string** | | [optional] -**PrefixNsNumber** | **decimal** | | [optional] -**PrefixNsInteger** | **int** | | [optional] -**PrefixNsBoolean** | **bool** | | [optional] -**PrefixNsArray** | **List<int>** | | [optional] -**PrefixNsWrappedArray** | **List<int>** | | [optional] - -[[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-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs index 7ca3b32befe..1d46982928d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing AnotherFakeApi @@ -30,26 +30,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the API endpoint. /// - public class AnotherFakeApiTests + public class AnotherFakeApiTests : IDisposable { private AnotherFakeApi instance; public AnotherFakeApiTests() - { + { instance = new AnotherFakeApi(); } + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of AnotherFakeApi /// [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' AnotherFakeApi - //Assert.IsType(typeof(AnotherFakeApi), instance, "instance is a AnotherFakeApi"); + // TODO uncomment below to test 'IsType' AnotherFakeApi + //Assert.IsType(instance); } - /// /// Test Call123TestSpecialTags /// @@ -59,9 +63,7 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //ModelClient modelClient = null; //var response = instance.Call123TestSpecialTags(modelClient); - //Assert.IsType (response, "response is ModelClient"); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 76bc5dfdd66..5d048a005bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing DefaultApi @@ -50,11 +50,10 @@ namespace Org.OpenAPITools.Test [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' DefaultApi - //Assert.IsType(typeof(DefaultApi), instance, "instance is a DefaultApi"); + // TODO uncomment below to test 'IsType' DefaultApi + //Assert.IsType(instance); } - /// /// Test FooGet /// @@ -63,9 +62,7 @@ namespace Org.OpenAPITools.Test { // TODO uncomment below to test the method and replace null with proper value //var response = instance.FooGet(); - //Assert.IsType (response, "response is InlineResponseDefault"); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 738f109a203..994cd46d38a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing FakeApi @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the API endpoint. /// - public class FakeApiTests + public class FakeApiTests : IDisposable { private FakeApi instance; @@ -39,17 +39,32 @@ namespace Org.OpenAPITools.Test instance = new FakeApi(); } + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of FakeApi /// [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' FakeApi - //Assert.IsType(typeof(FakeApi), instance, "instance is a FakeApi"); + // TODO uncomment below to test 'IsType' FakeApi + //Assert.IsType(instance); + } + + /// + /// Test FakeHealthGet + /// + [Fact] + public void FakeHealthGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.FakeHealthGet(); + //Assert.IsType(response); } - /// /// Test FakeOuterBooleanSerialize /// @@ -59,9 +74,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //bool? body = null; //var response = instance.FakeOuterBooleanSerialize(body); - //Assert.IsType (response, "response is bool?"); + //Assert.IsType(response); } - + /// /// Test FakeOuterCompositeSerialize /// @@ -71,9 +86,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //OuterComposite outerComposite = null; //var response = instance.FakeOuterCompositeSerialize(outerComposite); - //Assert.IsType (response, "response is OuterComposite"); + //Assert.IsType(response); } - + /// /// Test FakeOuterNumberSerialize /// @@ -83,9 +98,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //decimal? body = null; //var response = instance.FakeOuterNumberSerialize(body); - //Assert.IsType (response, "response is decimal?"); + //Assert.IsType(response); } - + /// /// Test FakeOuterStringSerialize /// @@ -95,9 +110,20 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //string body = null; //var response = instance.FakeOuterStringSerialize(body); - //Assert.IsType (response, "response is string"); + //Assert.IsType(response); } - + + /// + /// Test GetArrayOfEnums + /// + [Fact] + public void GetArrayOfEnumsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetArrayOfEnums(); + //Assert.IsType>(response); + } + /// /// Test TestBodyWithFileSchema /// @@ -107,9 +133,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //FileSchemaTestClass fileSchemaTestClass = null; //instance.TestBodyWithFileSchema(fileSchemaTestClass); - } - + /// /// Test TestBodyWithQueryParams /// @@ -120,9 +145,8 @@ namespace Org.OpenAPITools.Test //string query = null; //User user = null; //instance.TestBodyWithQueryParams(query, user); - } - + /// /// Test TestClientModel /// @@ -132,9 +156,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //ModelClient modelClient = null; //var response = instance.TestClientModel(modelClient); - //Assert.IsType (response, "response is ModelClient"); + //Assert.IsType(response); } - + /// /// Test TestEndpointParameters /// @@ -142,8 +166,8 @@ namespace Org.OpenAPITools.Test public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value - //decimal? number = null; - //double? _double = null; + //decimal number = null; + //double _double = null; //string patternWithoutDelimiter = null; //byte[] _byte = null; //int? integer = null; @@ -157,9 +181,8 @@ namespace Org.OpenAPITools.Test //string password = null; //string callback = null; //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); - } - + /// /// Test TestEnumParameters /// @@ -176,9 +199,24 @@ namespace Org.OpenAPITools.Test //List enumFormStringArray = null; //string enumFormString = null; //instance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); - } - + + /// + /// Test TestGroupParameters + /// + [Fact] + 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,9 +226,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //Dictionary requestBody = null; //instance.TestInlineAdditionalProperties(requestBody); - } - + /// /// Test TestJsonFormData /// @@ -201,9 +238,21 @@ namespace Org.OpenAPITools.Test //string param = null; //string param2 = null; //instance.TestJsonFormData(param, param2); - } - - } + /// + /// Test TestQueryParameterCollectionFormat + /// + [Fact] + public void TestQueryParameterCollectionFormatTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List pipe = null; + //List ioutil = null; + //List http = null; + //List url = null; + //List context = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + } + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs index e1272d442ab..bbfd4a586e7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing FakeClassnameTags123Api @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the API endpoint. /// - public class FakeClassnameTags123ApiTests + public class FakeClassnameTags123ApiTests : IDisposable { private FakeClassnameTags123Api instance; @@ -39,17 +39,21 @@ namespace Org.OpenAPITools.Test instance = new FakeClassnameTags123Api(); } + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of FakeClassnameTags123Api /// [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' FakeClassnameTags123Api - //Assert.IsType(typeof(FakeClassnameTags123Api), instance, "instance is a FakeClassnameTags123Api"); + // TODO uncomment below to test 'IsType' FakeClassnameTags123Api + //Assert.IsType(instance); } - /// /// Test TestClassname /// @@ -59,9 +63,7 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //ModelClient modelClient = null; //var response = instance.TestClassname(modelClient); - //Assert.IsType (response, "response is ModelClient"); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs index e748042141b..48e9f32748d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing StoreApi @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the API endpoint. /// - public class StoreApiTests + public class StoreApiTests : IDisposable { private StoreApi instance; @@ -39,17 +39,21 @@ namespace Org.OpenAPITools.Test instance = new StoreApi(); } + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of StoreApi /// [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' StoreApi - //Assert.IsType(typeof(StoreApi), instance, "instance is a StoreApi"); + // TODO uncomment below to test 'IsType' StoreApi + //Assert.IsType(instance); } - /// /// Test DeleteOrder /// @@ -59,9 +63,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //string orderId = null; //instance.DeleteOrder(orderId); - } - + /// /// Test GetInventory /// @@ -70,9 +73,9 @@ namespace Org.OpenAPITools.Test { // TODO uncomment below to test the method and replace null with proper value //var response = instance.GetInventory(); - //Assert.IsType> (response, "response is Dictionary"); + //Assert.IsType>(response); } - + /// /// Test GetOrderById /// @@ -80,11 +83,11 @@ namespace Org.OpenAPITools.Test public void GetOrderByIdTest() { // TODO uncomment below to test the method and replace null with proper value - //long? orderId = null; + //long orderId = null; //var response = instance.GetOrderById(orderId); - //Assert.IsType (response, "response is Order"); + //Assert.IsType(response); } - + /// /// Test PlaceOrder /// @@ -94,9 +97,7 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //Order order = null; //var response = instance.PlaceOrder(order); - //Assert.IsType (response, "response is Order"); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/UserApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/UserApiTests.cs index b6ef54ae346..792db5819a0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/UserApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/UserApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing UserApi @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the API endpoint. /// - public class UserApiTests + public class UserApiTests : IDisposable { private UserApi instance; @@ -39,17 +39,21 @@ namespace Org.OpenAPITools.Test instance = new UserApi(); } + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of UserApi /// [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' UserApi - //Assert.IsType(typeof(UserApi), instance, "instance is a UserApi"); + // TODO uncomment below to test 'IsType' UserApi + //Assert.IsType(instance); } - /// /// Test CreateUser /// @@ -59,9 +63,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //User user = null; //instance.CreateUser(user); - } - + /// /// Test CreateUsersWithArrayInput /// @@ -71,9 +74,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //List user = null; //instance.CreateUsersWithArrayInput(user); - } - + /// /// Test CreateUsersWithListInput /// @@ -83,9 +85,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //List user = null; //instance.CreateUsersWithListInput(user); - } - + /// /// Test DeleteUser /// @@ -95,9 +96,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //string username = null; //instance.DeleteUser(username); - } - + /// /// Test GetUserByName /// @@ -107,9 +107,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //string username = null; //var response = instance.GetUserByName(username); - //Assert.IsType (response, "response is User"); + //Assert.IsType(response); } - + /// /// Test LoginUser /// @@ -120,9 +120,9 @@ namespace Org.OpenAPITools.Test //string username = null; //string password = null; //var response = instance.LoginUser(username, password); - //Assert.IsType (response, "response is string"); + //Assert.IsType(response); } - + /// /// Test LogoutUser /// @@ -131,9 +131,8 @@ namespace Org.OpenAPITools.Test { // TODO uncomment below to test the method and replace null with proper value //instance.LogoutUser(); - } - + /// /// Test UpdateUser /// @@ -144,9 +143,6 @@ namespace Org.OpenAPITools.Test //string username = null; //User user = null; //instance.UpdateUser(username, user); - } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ApiClientTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ApiClientTests.cs index 9a001a63e0b..4104b13149b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ApiClientTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ApiClientTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ConfigurationTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ConfigurationTests.cs index c3d8c9deae3..5dde15c5b63 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ConfigurationTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ConfigurationTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/JSONComposedSchemaTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/JSONComposedSchemaTests.cs index 7972678d680..59729091907 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/JSONComposedSchemaTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/JSONComposedSchemaTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesAnyTypeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesAnyTypeTests.cs deleted file mode 100644 index 81101896de9..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesAnyTypeTests.cs +++ /dev/null @@ -1,71 +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 Xunit; - -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 AdditionalPropertiesAnyType - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesAnyTypeTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesAnyType - //private AdditionalPropertiesAnyType instance; - - public AdditionalPropertiesAnyTypeTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesAnyType - //instance = new AdditionalPropertiesAnyType(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesAnyType - /// - [Fact] - public void AdditionalPropertiesAnyTypeInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesAnyType - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesAnyType"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesArrayTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesArrayTests.cs deleted file mode 100644 index 56f5e3fcec1..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesArrayTests.cs +++ /dev/null @@ -1,71 +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 Xunit; - -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 AdditionalPropertiesArray - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesArrayTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesArray - //private AdditionalPropertiesArray instance; - - public AdditionalPropertiesArrayTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesArray - //instance = new AdditionalPropertiesArray(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesArray - /// - [Fact] - public void AdditionalPropertiesArrayInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesArray - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesArray"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesBooleanTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesBooleanTests.cs deleted file mode 100644 index 04eb195d46a..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesBooleanTests.cs +++ /dev/null @@ -1,71 +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 Xunit; - -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 AdditionalPropertiesBoolean - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesBooleanTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesBoolean - //private AdditionalPropertiesBoolean instance; - - public AdditionalPropertiesBooleanTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesBoolean - //instance = new AdditionalPropertiesBoolean(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesBoolean - /// - [Fact] - public void AdditionalPropertiesBooleanInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesBoolean - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesBoolean"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 9db802aa098..9ab029ed097 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing AdditionalPropertiesClass @@ -30,19 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class AdditionalPropertiesClassTests + public class AdditionalPropertiesClassTests : IDisposable { // TODO uncomment below to declare an instance variable for AdditionalPropertiesClass //private AdditionalPropertiesClass instance; + public AdditionalPropertiesClassTests() + { + // TODO uncomment below to create an instance of AdditionalPropertiesClass + //instance = new AdditionalPropertiesClass(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of AdditionalPropertiesClass /// [Fact] public void AdditionalPropertiesClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesClass - //Assert.IsType (instance, "variable 'instance' is a AdditionalPropertiesClass"); + // TODO uncomment below to test "IsType" AdditionalPropertiesClass + //Assert.IsType(instance); } @@ -62,6 +72,54 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'MapOfMapProperty' } + /// + /// Test the property 'Anytype1' + /// + [Fact] + public void Anytype1Test() + { + // TODO unit test for the property 'Anytype1' + } + /// + /// Test the property 'MapWithUndeclaredPropertiesAnytype1' + /// + [Fact] + public void MapWithUndeclaredPropertiesAnytype1Test() + { + // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' + } + /// + /// Test the property 'MapWithUndeclaredPropertiesAnytype2' + /// + [Fact] + public void MapWithUndeclaredPropertiesAnytype2Test() + { + // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' + } + /// + /// Test the property 'MapWithUndeclaredPropertiesAnytype3' + /// + [Fact] + public void MapWithUndeclaredPropertiesAnytype3Test() + { + // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' + } + /// + /// Test the property 'EmptyMap' + /// + [Fact] + public void EmptyMapTest() + { + // TODO unit test for the property 'EmptyMap' + } + /// + /// Test the property 'MapWithUndeclaredPropertiesString' + /// + [Fact] + public void MapWithUndeclaredPropertiesStringTest() + { + // TODO unit test for the property 'MapWithUndeclaredPropertiesString' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesIntegerTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesIntegerTests.cs deleted file mode 100644 index 529caa6c71e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesIntegerTests.cs +++ /dev/null @@ -1,71 +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 Xunit; - -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 AdditionalPropertiesInteger - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesIntegerTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesInteger - //private AdditionalPropertiesInteger instance; - - public AdditionalPropertiesIntegerTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesInteger - //instance = new AdditionalPropertiesInteger(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesInteger - /// - [Fact] - public void AdditionalPropertiesIntegerInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesInteger - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesInteger"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesNumberTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesNumberTests.cs deleted file mode 100644 index 43c877754b7..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesNumberTests.cs +++ /dev/null @@ -1,71 +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 Xunit; - -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 AdditionalPropertiesNumber - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesNumberTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesNumber - //private AdditionalPropertiesNumber instance; - - public AdditionalPropertiesNumberTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesNumber - //instance = new AdditionalPropertiesNumber(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesNumber - /// - [Fact] - public void AdditionalPropertiesNumberInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesNumber - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesNumber"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesObjectTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesObjectTests.cs deleted file mode 100644 index bd441e0665e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesObjectTests.cs +++ /dev/null @@ -1,71 +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 Xunit; - -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 AdditionalPropertiesObject - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesObjectTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesObject - //private AdditionalPropertiesObject instance; - - public AdditionalPropertiesObjectTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesObject - //instance = new AdditionalPropertiesObject(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesObject - /// - [Fact] - public void AdditionalPropertiesObjectInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesObject - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesObject"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesStringTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesStringTests.cs deleted file mode 100644 index 441ff5baa84..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesStringTests.cs +++ /dev/null @@ -1,71 +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 Xunit; - -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 AdditionalPropertiesString - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesStringTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesString - //private AdditionalPropertiesString instance; - - public AdditionalPropertiesStringTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesString - //instance = new AdditionalPropertiesString(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesString - /// - [Fact] - public void AdditionalPropertiesStringInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesString - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesString"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalFarmTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalFarmTests.cs deleted file mode 100644 index c101b67c92a..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalFarmTests.cs +++ /dev/null @@ -1,49 +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 Xunit; - -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 OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AnimalFarmTests - { - /// - /// Test an instance of AnimalFarm - /// - [Fact] - public void AnimalFarmInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AnimalFarm - //Assert.IsType (instance, "variable 'instance' is a AnimalFarm"); - } - - - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 9b53b47f8ec..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Animal @@ -30,27 +29,32 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class AnimalTests + public class AnimalTests : IDisposable { + // TODO uncomment below to declare an instance variable for Animal + //private Animal instance; + + public AnimalTests() + { + // TODO uncomment below to create an instance of Animal + //instance = new Animal(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of Animal /// [Fact] public void AnimalInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Animal - //Assert.IsType (instance, "variable 'instance' is a Animal"); + // TODO uncomment below to test "IsType" Animal + //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -60,6 +64,15 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); + } /// /// Test the property 'ClassName' diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 53bef990ae8..2a2e098e608 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ApiResponse @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ApiResponseTests + public class ApiResponseTests : IDisposable { + // TODO uncomment below to declare an instance variable for ApiResponse + //private ApiResponse instance; + + public ApiResponseTests() + { + // TODO uncomment below to create an instance of ApiResponse + //instance = new ApiResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of ApiResponse /// [Fact] public void ApiResponseInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ApiResponse - //Assert.IsType (instance, "variable 'instance' is a ApiResponse"); + // TODO uncomment below to test "IsType" ApiResponse + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index 1e8e0efe119..f945f659368 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing AppleReq @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void AppleReqInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" AppleReq - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AppleReq"); + // TODO uncomment below to test "IsType" AppleReq + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 69b870d3e26..468d60184ad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Apple @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void AppleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Apple - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Apple"); + // TODO uncomment below to test "IsType" Apple + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index a4d155a0ae1..27f312ad25f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ArrayOfNumberOnly @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ArrayOfNumberOnlyTests + public class ArrayOfNumberOnlyTests : IDisposable { + // TODO uncomment below to declare an instance variable for ArrayOfNumberOnly + //private ArrayOfNumberOnly instance; + + public ArrayOfNumberOnlyTests() + { + // TODO uncomment below to create an instance of ArrayOfNumberOnly + //instance = new ArrayOfNumberOnly(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of ArrayOfNumberOnly /// [Fact] public void ArrayOfNumberOnlyInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ArrayOfNumberOnly - //Assert.IsType (instance, "variable 'instance' is a ArrayOfNumberOnly"); + // TODO uncomment below to test "IsType" ArrayOfNumberOnly + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index 73f88865878..a433e8c87cf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ArrayTest @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ArrayTestTests + public class ArrayTestTests : IDisposable { + // TODO uncomment below to declare an instance variable for ArrayTest + //private ArrayTest instance; + + public ArrayTestTests() + { + // TODO uncomment below to create an instance of ArrayTest + //instance = new ArrayTest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of ArrayTest /// [Fact] public void ArrayTestInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ArrayTest - //Assert.IsType (instance, "variable 'instance' is a ArrayTest"); + // TODO uncomment below to test "IsType" ArrayTest + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8465dc38036..8a6eeb82eee 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing BananaReq @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void BananaReqInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" BananaReq - //Assert.IsInstanceOfType (instance, "variable 'instance' is a BananaReq"); + // TODO uncomment below to test "IsType" BananaReq + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 24ac6470491..8d8cc376b03 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Banana @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void BananaInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Banana - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Banana"); + // TODO uncomment below to test "IsType" Banana + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 561a8290290..3cdccaa7595 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing BasquePig @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void BasquePigInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" BasquePig - //Assert.IsInstanceOfType (instance, "variable 'instance' is a BasquePig"); + // TODO uncomment below to test "IsType" BasquePig + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BigCatAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BigCatAllOfTests.cs deleted file mode 100644 index f1b24c7f8fe..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BigCatAllOfTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 BigCatAllOf - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class BigCatAllOfTests : IDisposable - { - // TODO uncomment below to declare an instance variable for BigCatAllOf - //private BigCatAllOf instance; - - public BigCatAllOfTests() - { - // TODO uncomment below to create an instance of BigCatAllOf - //instance = new BigCatAllOf(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of BigCatAllOf - /// - [Fact] - public void BigCatAllOfInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" BigCatAllOf - //Assert.IsInstanceOfType (instance, "variable 'instance' is a BigCatAllOf"); - } - - - /// - /// Test the property 'Kind' - /// - [Fact] - public void KindTest() - { - // TODO unit test for the property 'Kind' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BigCatTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BigCatTests.cs deleted file mode 100644 index 4bda812119c..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/BigCatTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 BigCat - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class BigCatTests : IDisposable - { - // TODO uncomment below to declare an instance variable for BigCat - //private BigCat instance; - - public BigCatTests() - { - // TODO uncomment below to create an instance of BigCat - //instance = new BigCat(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of BigCat - /// - [Fact] - public void BigCatInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" BigCat - //Assert.IsInstanceOfType (instance, "variable 'instance' is a BigCat"); - } - - - /// - /// Test the property 'Kind' - /// - [Fact] - public void KindTest() - { - // TODO unit test for the property 'Kind' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index ec1d66fc2c7..185c83666fc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Capitalization @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class CapitalizationTests + public class CapitalizationTests : IDisposable { + // TODO uncomment below to declare an instance variable for Capitalization + //private Capitalization instance; + + public CapitalizationTests() + { + // TODO uncomment below to create an instance of Capitalization + //instance = new Capitalization(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of Capitalization /// [Fact] public void CapitalizationInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Capitalization - //Assert.IsType (instance, "variable 'instance' is a Capitalization"); + // TODO uncomment below to test "IsType" Capitalization + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs index 8362983f18d..fb51c28489c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing CatAllOf @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void CatAllOfInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" CatAllOf - //Assert.IsInstanceOfType (instance, "variable 'instance' is a CatAllOf"); + // TODO uncomment below to test "IsType" CatAllOf + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatTests.cs index 0f021d67e35..701ba760282 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Cat @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class CatTests + public class CatTests : IDisposable { + // TODO uncomment below to declare an instance variable for Cat + //private Cat instance; + + public CatTests() + { + // TODO uncomment below to create an instance of Cat + //instance = new Cat(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of Cat /// [Fact] public void CatInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Cat - //Assert.IsType (instance, "variable 'instance' is a Cat"); + // TODO uncomment below to test "IsType" Cat + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 2f593355590..6ce48e601e4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Category @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class CategoryTests + public class CategoryTests : IDisposable { + // TODO uncomment below to declare an instance variable for Category + //private Category instance; + + public CategoryTests() + { + // TODO uncomment below to create an instance of Category + //instance = new Category(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of Category /// [Fact] public void CategoryInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Category - //Assert.IsType (instance, "variable 'instance' is a Category"); + // TODO uncomment below to test "IsType" Category + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs index 2d54632e2f7..49a53932490 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ChildCatAllOf @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ChildCatAllOfInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ChildCatAllOf - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ChildCatAllOf"); + // TODO uncomment below to test "IsType" ChildCatAllOf + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index b9ea749d1d9..68566fd8d56 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ChildCat @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ChildCatInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ChildCat - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ChildCat"); + // TODO uncomment below to test "IsType" ChildCat + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index 953fd93f460..d29472e83aa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ClassModel @@ -30,8 +29,21 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ClassModelTests + public class ClassModelTests : IDisposable { + // TODO uncomment below to declare an instance variable for ClassModel + //private ClassModel instance; + + public ClassModelTests() + { + // TODO uncomment below to create an instance of ClassModel + //instance = new ClassModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } /// /// Test an instance of ClassModel @@ -39,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ClassModelInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ClassModel - //Assert.IsType (instance, "variable 'instance' is a ClassModel"); + // TODO uncomment below to test "IsType" ClassModel + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index 1ca093e7d1b..b3529280c8d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ComplexQuadrilateral @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ComplexQuadrilateralInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ComplexQuadrilateral - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ComplexQuadrilateral"); + // TODO uncomment below to test "IsType" ComplexQuadrilateral + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index fd7376630f4..572d9bffa79 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing DanishPig @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void DanishPigInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" DanishPig - //Assert.IsInstanceOfType (instance, "variable 'instance' is a DanishPig"); + // TODO uncomment below to test "IsType" DanishPig + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs index 2b777906747..b22a4442096 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing DogAllOf @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void DogAllOfInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" DogAllOf - //Assert.IsInstanceOfType (instance, "variable 'instance' is a DogAllOf"); + // TODO uncomment below to test "IsType" DogAllOf + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogTests.cs index 0cd4d9125f2..992f93a51fd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Dog @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class DogTests + public class DogTests : IDisposable { + // TODO uncomment below to declare an instance variable for Dog + //private Dog instance; + + public DogTests() + { + // TODO uncomment below to create an instance of Dog + //instance = new Dog(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of Dog /// [Fact] public void DogInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Dog - //Assert.IsType (instance, "variable 'instance' is a Dog"); + // TODO uncomment below to test "IsType" Dog + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 8c0c605a5a4..0709ad9eeb3 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Drawing @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void DrawingInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Drawing - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Drawing"); + // TODO uncomment below to test "IsType" Drawing + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 20c1eb2712f..5779ca29477 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing EnumArrays @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class EnumArraysTests + public class EnumArraysTests : IDisposable { + // TODO uncomment below to declare an instance variable for EnumArrays + //private EnumArrays instance; + + public EnumArraysTests() + { + // TODO uncomment below to create an instance of EnumArrays + //instance = new EnumArrays(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of EnumArrays /// [Fact] public void EnumArraysInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" EnumArrays - //Assert.IsType (instance, "variable 'instance' is a EnumArrays"); + // TODO uncomment below to test "IsType" EnumArrays + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index cd1fb3a70fe..a17738c5cbc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing EnumClass @@ -30,8 +29,21 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class EnumClassTests + public class EnumClassTests : IDisposable { + // TODO uncomment below to declare an instance variable for EnumClass + //private EnumClass instance; + + public EnumClassTests() + { + // TODO uncomment below to create an instance of EnumClass + //instance = new EnumClass(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } /// /// Test an instance of EnumClass @@ -39,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void EnumClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" EnumClass - //Assert.IsType (instance, "variable 'instance' is a EnumClass"); + // TODO uncomment below to test "IsType" EnumClass + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 215bdb2d3d8..4f81b845d49 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing EnumTest @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class EnumTestTests + public class EnumTestTests : IDisposable { + // TODO uncomment below to declare an instance variable for EnumTest + //private EnumTest instance; + + public EnumTestTests() + { + // TODO uncomment below to create an instance of EnumTest + //instance = new EnumTest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of EnumTest /// [Fact] public void EnumTestInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" EnumTest - //Assert.IsType (instance, "variable 'instance' is a EnumTest"); + // TODO uncomment below to test "IsType" EnumTest + //Assert.IsType(instance); } @@ -68,6 +81,14 @@ namespace Org.OpenAPITools.Test // TODO unit test for the property 'EnumInteger' } /// + /// Test the property 'EnumIntegerOnly' + /// + [Fact] + public void EnumIntegerOnlyTest() + { + // TODO unit test for the property 'EnumIntegerOnly' + } + /// /// Test the property 'EnumNumber' /// [Fact] @@ -83,6 +104,30 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'OuterEnum' } + /// + /// Test the property 'OuterEnumInteger' + /// + [Fact] + public void OuterEnumIntegerTest() + { + // TODO unit test for the property 'OuterEnumInteger' + } + /// + /// Test the property 'OuterEnumDefaultValue' + /// + [Fact] + public void OuterEnumDefaultValueTest() + { + // TODO unit test for the property 'OuterEnumDefaultValue' + } + /// + /// Test the property 'OuterEnumIntegerDefaultValue' + /// + [Fact] + public void OuterEnumIntegerDefaultValueTest() + { + // TODO unit test for the property 'OuterEnumIntegerDefaultValue' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index e3062e1ed4f..4663cb667de 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing EquilateralTriangle @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void EquilateralTriangleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" EquilateralTriangle - //Assert.IsInstanceOfType (instance, "variable 'instance' is a EquilateralTriangle"); + // TODO uncomment below to test "IsType" EquilateralTriangle + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index ee350d994ee..9f45b4fe89d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing FileSchemaTestClass @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class FileSchemaTestClassTests + public class FileSchemaTestClassTests : IDisposable { + // TODO uncomment below to declare an instance variable for FileSchemaTestClass + //private FileSchemaTestClass instance; + + public FileSchemaTestClassTests() + { + // TODO uncomment below to create an instance of FileSchemaTestClass + //instance = new FileSchemaTestClass(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of FileSchemaTestClass /// [Fact] public void FileSchemaTestClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" FileSchemaTestClass - //Assert.IsType (instance, "variable 'instance' is a FileSchemaTestClass"); + // TODO uncomment below to test "IsType" FileSchemaTestClass + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FileTests.cs index d4a0d4f1eb4..761bb72a844 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing File @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class FileTests + public class FileTests : IDisposable { + // TODO uncomment below to declare an instance variable for File + //private File instance; + + public FileTests() + { + // TODO uncomment below to create an instance of File + //instance = new File(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of File /// [Fact] public void FileInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" File - //Assert.IsType (instance, "variable 'instance' is a File"); + // TODO uncomment below to test "IsType" File + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FooTests.cs index 87c424c85bb..0b6ed52edbd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Foo @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FooInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Foo - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Foo"); + // TODO uncomment below to test "IsType" Foo + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index ddde2296c95..97332800e9a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing FormatTest @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class FormatTestTests + public class FormatTestTests : IDisposable { + // TODO uncomment below to declare an instance variable for FormatTest + //private FormatTest instance; + + public FormatTestTests() + { + // TODO uncomment below to create an instance of FormatTest + //instance = new FormatTest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of FormatTest /// [Fact] public void FormatTestInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" FormatTest - //Assert.IsType (instance, "variable 'instance' is a FormatTest"); + // TODO uncomment below to test "IsType" FormatTest + //Assert.IsType(instance); } @@ -92,6 +105,14 @@ namespace Org.OpenAPITools.Test // TODO unit test for the property 'Double' } /// + /// Test the property 'Decimal' + /// + [Fact] + public void DecimalTest() + { + // TODO unit test for the property 'Decimal' + } + /// /// Test the property 'String' /// [Fact] @@ -147,6 +168,22 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'Password' } + /// + /// Test the property 'PatternWithDigits' + /// + [Fact] + public void PatternWithDigitsTest() + { + // TODO unit test for the property 'PatternWithDigits' + } + /// + /// Test the property 'PatternWithDigitsAndDelimiter' + /// + [Fact] + public void PatternWithDigitsAndDelimiterTest() + { + // TODO unit test for the property 'PatternWithDigitsAndDelimiter' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 1a6d4087801..5ea9e3ffc1d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing FruitReq @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FruitReqInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" FruitReq - //Assert.IsInstanceOfType (instance, "variable 'instance' is a FruitReq"); + // TODO uncomment below to test "IsType" FruitReq + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FruitTests.cs index b1bc9f600d0..91e069bb42f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Fruit @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FruitInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Fruit - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Fruit"); + // TODO uncomment below to test "IsType" Fruit + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index a1bba753a58..08fb0e07a1c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing GmFruit @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void GmFruitInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" GmFruit - //Assert.IsInstanceOfType (instance, "variable 'instance' is a GmFruit"); + // TODO uncomment below to test "IsType" GmFruit + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index fd9552c597c..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing GrandparentAnimal @@ -51,19 +51,10 @@ namespace Org.OpenAPITools.Test [Fact] public void GrandparentAnimalInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" GrandparentAnimal - //Assert.IsInstanceOfType (instance, "variable 'instance' is a GrandparentAnimal"); + // TODO uncomment below to test "IsType" GrandparentAnimal + //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsInstanceOf(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -71,7 +62,16 @@ namespace Org.OpenAPITools.Test public void ChildCatDeserializeFromParentPetTest() { // TODO uncomment below to test deserialize a ChildCat from type ParentPet - //Assert.IsInstanceOf(JsonConvert.DeserializeObject(new ChildCat().ToJson())); + //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); + } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index ba33b63963d..651a9f0ce30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing HasOnlyReadOnly @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class HasOnlyReadOnlyTests + public class HasOnlyReadOnlyTests : IDisposable { + // TODO uncomment below to declare an instance variable for HasOnlyReadOnly + //private HasOnlyReadOnly instance; + + public HasOnlyReadOnlyTests() + { + // TODO uncomment below to create an instance of HasOnlyReadOnly + //instance = new HasOnlyReadOnly(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of HasOnlyReadOnly /// [Fact] public void HasOnlyReadOnlyInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" HasOnlyReadOnly - //Assert.IsType (instance, "variable 'instance' is a HasOnlyReadOnly"); + // TODO uncomment below to test "IsType" HasOnlyReadOnly + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index d9986a9d836..857190a3334 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing HealthCheckResult @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void HealthCheckResultInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" HealthCheckResult - //Assert.IsInstanceOfType (instance, "variable 'instance' is a HealthCheckResult"); + // TODO uncomment below to test "IsType" HealthCheckResult + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs deleted file mode 100644 index d1e0f45aa34..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject1 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject1Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject1 - //private InlineObject1 instance; - - public InlineObject1Tests() - { - // TODO uncomment below to create an instance of InlineObject1 - //instance = new InlineObject1(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject1 - /// - [Fact] - public void InlineObject1InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject1 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject1"); - } - - - /// - /// Test the property 'AdditionalMetadata' - /// - [Fact] - public void AdditionalMetadataTest() - { - // TODO unit test for the property 'AdditionalMetadata' - } - /// - /// Test the property 'File' - /// - [Fact] - public void FileTest() - { - // TODO unit test for the property 'File' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs deleted file mode 100644 index 8e2c754e285..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject2 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject2Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject2 - //private InlineObject2 instance; - - public InlineObject2Tests() - { - // TODO uncomment below to create an instance of InlineObject2 - //instance = new InlineObject2(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject2 - /// - [Fact] - public void InlineObject2InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject2 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject2"); - } - - - /// - /// Test the property 'EnumFormStringArray' - /// - [Fact] - public void EnumFormStringArrayTest() - { - // TODO unit test for the property 'EnumFormStringArray' - } - /// - /// Test the property 'EnumFormString' - /// - [Fact] - public void EnumFormStringTest() - { - // TODO unit test for the property 'EnumFormString' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs deleted file mode 100644 index 6f74ebdf63c..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs +++ /dev/null @@ -1,175 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject3 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject3Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject3 - //private InlineObject3 instance; - - public InlineObject3Tests() - { - // TODO uncomment below to create an instance of InlineObject3 - //instance = new InlineObject3(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject3 - /// - [Fact] - public void InlineObject3InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject3 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject3"); - } - - - /// - /// Test the property 'Integer' - /// - [Fact] - public void IntegerTest() - { - // TODO unit test for the property 'Integer' - } - /// - /// Test the property 'Int32' - /// - [Fact] - public void Int32Test() - { - // TODO unit test for the property 'Int32' - } - /// - /// Test the property 'Int64' - /// - [Fact] - public void Int64Test() - { - // TODO unit test for the property 'Int64' - } - /// - /// Test the property 'Number' - /// - [Fact] - public void NumberTest() - { - // TODO unit test for the property 'Number' - } - /// - /// Test the property 'Float' - /// - [Fact] - public void FloatTest() - { - // TODO unit test for the property 'Float' - } - /// - /// Test the property 'Double' - /// - [Fact] - public void DoubleTest() - { - // TODO unit test for the property 'Double' - } - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - /// - /// Test the property 'PatternWithoutDelimiter' - /// - [Fact] - public void PatternWithoutDelimiterTest() - { - // TODO unit test for the property 'PatternWithoutDelimiter' - } - /// - /// Test the property 'Byte' - /// - [Fact] - public void ByteTest() - { - // TODO unit test for the property 'Byte' - } - /// - /// Test the property 'Binary' - /// - [Fact] - public void BinaryTest() - { - // TODO unit test for the property 'Binary' - } - /// - /// Test the property 'Date' - /// - [Fact] - public void DateTest() - { - // TODO unit test for the property 'Date' - } - /// - /// Test the property 'DateTime' - /// - [Fact] - public void DateTimeTest() - { - // TODO unit test for the property 'DateTime' - } - /// - /// Test the property 'Password' - /// - [Fact] - public void PasswordTest() - { - // TODO unit test for the property 'Password' - } - /// - /// Test the property 'Callback' - /// - [Fact] - public void CallbackTest() - { - // TODO unit test for the property 'Callback' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs deleted file mode 100644 index c3702936bc2..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject4 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject4Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject4 - //private InlineObject4 instance; - - public InlineObject4Tests() - { - // TODO uncomment below to create an instance of InlineObject4 - //instance = new InlineObject4(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject4 - /// - [Fact] - public void InlineObject4InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject4 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject4"); - } - - - /// - /// Test the property 'Param' - /// - [Fact] - public void ParamTest() - { - // TODO unit test for the property 'Param' - } - /// - /// Test the property 'Param2' - /// - [Fact] - public void Param2Test() - { - // TODO unit test for the property 'Param2' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs deleted file mode 100644 index d0bb987e46e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject5 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject5Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject5 - //private InlineObject5 instance; - - public InlineObject5Tests() - { - // TODO uncomment below to create an instance of InlineObject5 - //instance = new InlineObject5(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject5 - /// - [Fact] - public void InlineObject5InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject5 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject5"); - } - - - /// - /// Test the property 'AdditionalMetadata' - /// - [Fact] - public void AdditionalMetadataTest() - { - // TODO unit test for the property 'AdditionalMetadata' - } - /// - /// Test the property 'RequiredFile' - /// - [Fact] - public void RequiredFileTest() - { - // TODO unit test for the property 'RequiredFile' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs deleted file mode 100644 index ec9a5708f27..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObjectTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject - //private InlineObject instance; - - public InlineObjectTests() - { - // TODO uncomment below to create an instance of InlineObject - //instance = new InlineObject(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject - /// - [Fact] - public void InlineObjectInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - /// - /// Test the property 'Status' - /// - [Fact] - public void StatusTest() - { - // TODO unit test for the property 'Status' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 5c20d30a69e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineResponseDefault - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineResponseDefault"); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 00d5d08cc55..755c417cc54 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing IsoscelesTriangle @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void IsoscelesTriangleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" IsoscelesTriangle - //Assert.IsInstanceOfType (instance, "variable 'instance' is a IsoscelesTriangle"); + // TODO uncomment below to test "IsType" IsoscelesTriangle + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ListTests.cs index 121957b0e4f..2ed828d0520 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing List @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ListTests + public class ListTests : IDisposable { + // TODO uncomment below to declare an instance variable for List + //private List instance; + + public ListTests() + { + // TODO uncomment below to create an instance of List + //instance = new List(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of List /// [Fact] public void ListInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" List - //Assert.IsType (instance, "variable 'instance' is a List"); + // TODO uncomment below to test "IsType" List + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 76466113c58..7b46cbf0645 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Mammal @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void MammalInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Mammal - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Mammal"); + // TODO uncomment below to test "IsType" Mammal + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 6a63cb95660..20036e1c905 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing MapTest @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class MapTestTests + public class MapTestTests : IDisposable { + // TODO uncomment below to declare an instance variable for MapTest + //private MapTest instance; + + public MapTestTests() + { + // TODO uncomment below to create an instance of MapTest + //instance = new MapTest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of MapTest /// [Fact] public void MapTestInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" MapTest - //Assert.IsType (instance, "variable 'instance' is a MapTest"); + // TODO uncomment below to test "IsType" MapTest + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index 338537287c2..f56cd715f45 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing MixedPropertiesAndAdditionalPropertiesClass @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class MixedPropertiesAndAdditionalPropertiesClassTests + public class MixedPropertiesAndAdditionalPropertiesClassTests : IDisposable { + // TODO uncomment below to declare an instance variable for MixedPropertiesAndAdditionalPropertiesClass + //private MixedPropertiesAndAdditionalPropertiesClass instance; + + public MixedPropertiesAndAdditionalPropertiesClassTests() + { + // TODO uncomment below to create an instance of MixedPropertiesAndAdditionalPropertiesClass + //instance = new MixedPropertiesAndAdditionalPropertiesClass(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of MixedPropertiesAndAdditionalPropertiesClass /// [Fact] public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" MixedPropertiesAndAdditionalPropertiesClass - //Assert.IsType (instance, "variable 'instance' is a MixedPropertiesAndAdditionalPropertiesClass"); + // TODO uncomment below to test "IsType" MixedPropertiesAndAdditionalPropertiesClass + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index 6b830deb1ad..e25478618f2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Model200Response @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class Model200ResponseTests + public class Model200ResponseTests : IDisposable { + // TODO uncomment below to declare an instance variable for Model200Response + //private Model200Response instance; + + public Model200ResponseTests() + { + // TODO uncomment below to create an instance of Model200Response + //instance = new Model200Response(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of Model200Response /// [Fact] public void Model200ResponseInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Model200Response - //Assert.IsType (instance, "variable 'instance' is a Model200Response"); + // TODO uncomment below to test "IsType" Model200Response + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index a74c816320b..24a9e263158 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ModelClient @@ -30,26 +29,40 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ModelClientTests + public class ModelClientTests : IDisposable { + // TODO uncomment below to declare an instance variable for ModelClient + //private ModelClient instance; + + public ModelClientTests() + { + // TODO uncomment below to create an instance of ModelClient + //instance = new ModelClient(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of ModelClient /// [Fact] public void ModelClientInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ModelClient - //Assert.IsType (instance, "variable 'instance' is a ModelClient"); + // TODO uncomment below to test "IsType" ModelClient + //Assert.IsType(instance); } /// - /// Test the property '__Client' + /// Test the property '_Client' /// [Fact] - public void __ClientTest() + public void _ClientTest() { - // TODO unit test for the property '__Client' + // TODO unit test for the property '_Client' } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NameTests.cs index 14812bc5932..c390049e66d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Name @@ -30,8 +29,21 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class NameTests + public class NameTests : IDisposable { + // TODO uncomment below to declare an instance variable for Name + //private Name instance; + + public NameTests() + { + // TODO uncomment below to create an instance of Name + //instance = new Name(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } /// /// Test an instance of Name @@ -39,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void NameInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Name - //Assert.IsType (instance, "variable 'instance' is a Name"); + // TODO uncomment below to test "IsType" Name + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index d1c6b143431..8f00505612a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing NullableClass @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void NullableClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" NullableClass - //Assert.IsInstanceOfType (instance, "variable 'instance' is a NullableClass"); + // TODO uncomment below to test "IsType" NullableClass + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index b663af5b6e6..5662f91d6e6 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing NullableShape @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void NullableShapeInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" NullableShape - //Assert.IsInstanceOfType (instance, "variable 'instance' is a NullableShape"); + // TODO uncomment below to test "IsType" NullableShape + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 4e6b6674d41..3a06cb020b2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing NumberOnly @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class NumberOnlyTests + public class NumberOnlyTests : IDisposable { + // TODO uncomment below to declare an instance variable for NumberOnly + //private NumberOnly instance; + + public NumberOnlyTests() + { + // TODO uncomment below to create an instance of NumberOnly + //instance = new NumberOnly(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of NumberOnly /// [Fact] public void NumberOnlyInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" NumberOnly - //Assert.IsType (instance, "variable 'instance' is a NumberOnly"); + // TODO uncomment below to test "IsType" NumberOnly + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OrderTests.cs index 52c21c54943..cf5c561c547 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Order @@ -30,8 +29,21 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class OrderTests + public class OrderTests : IDisposable { + // TODO uncomment below to declare an instance variable for Order + //private Order instance; + + public OrderTests() + { + // TODO uncomment below to create an instance of Order + //instance = new Order(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } /// /// Test an instance of Order @@ -39,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OrderInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Order - //Assert.IsType (instance, "variable 'instance' is a Order"); + // TODO uncomment below to test "IsType" Order + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 2d95d9b8ef2..2efda0db59c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterComposite @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class OuterCompositeTests + public class OuterCompositeTests : IDisposable { + // TODO uncomment below to declare an instance variable for OuterComposite + //private OuterComposite instance; + + public OuterCompositeTests() + { + // TODO uncomment below to create an instance of OuterComposite + //instance = new OuterComposite(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of OuterComposite /// [Fact] public void OuterCompositeInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterComposite - //Assert.IsType (instance, "variable 'instance' is a OuterComposite"); + // TODO uncomment below to test "IsType" OuterComposite + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 9c77453021f..986fff774c4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterEnumDefaultValue @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterEnumDefaultValueInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterEnumDefaultValue - //Assert.IsInstanceOfType (instance, "variable 'instance' is a OuterEnumDefaultValue"); + // TODO uncomment below to test "IsType" OuterEnumDefaultValue + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index d797bc954cc..015d5dab945 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterEnumIntegerDefaultValue @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterEnumIntegerDefaultValueInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterEnumIntegerDefaultValue - //Assert.IsInstanceOfType (instance, "variable 'instance' is a OuterEnumIntegerDefaultValue"); + // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index acd34b46be4..385e899110a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterEnumInteger @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterEnumIntegerInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterEnumInteger - //Assert.IsInstanceOfType (instance, "variable 'instance' is a OuterEnumInteger"); + // TODO uncomment below to test "IsType" OuterEnumInteger + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index 00f93e5e859..f47304767b9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterEnum @@ -30,8 +29,21 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class OuterEnumTests + public class OuterEnumTests : IDisposable { + // TODO uncomment below to declare an instance variable for OuterEnum + //private OuterEnum instance; + + public OuterEnumTests() + { + // TODO uncomment below to create an instance of OuterEnum + //instance = new OuterEnum(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } /// /// Test an instance of OuterEnum @@ -39,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterEnumInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterEnum - //Assert.IsType (instance, "variable 'instance' is a OuterEnum"); + // TODO uncomment below to test "IsType" OuterEnum + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 76db9ecf3a5..1e17568ed33 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ParentPet @@ -51,10 +51,19 @@ namespace Org.OpenAPITools.Test [Fact] public void ParentPetInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ParentPet - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ParentPet"); + // TODO uncomment below to test "IsType" ParentPet + //Assert.IsType(instance); } + /// + /// Test deserialize a ChildCat from type ParentPet + /// + [Fact] + public void ChildCatDeserializeFromParentPetTest() + { + // TODO uncomment below to test deserialize a ChildCat from type ParentPet + //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PigTests.cs index 7497d47b784..55cf2189046 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Pig @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void PigInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Pig - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Pig"); + // TODO uncomment below to test "IsType" Pig + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 09b365a5f1d..6eef9f4c816 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing QuadrilateralInterface @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void QuadrilateralInterfaceInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" QuadrilateralInterface - //Assert.IsInstanceOfType (instance, "variable 'instance' is a QuadrilateralInterface"); + // TODO uncomment below to test "IsType" QuadrilateralInterface + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index fea00bcd6e2..26826681a47 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Quadrilateral @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void QuadrilateralInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Quadrilateral - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Quadrilateral"); + // TODO uncomment below to test "IsType" Quadrilateral + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index 30122560856..dc3d0fad54c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ReadOnlyFirst @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ReadOnlyFirstTests + public class ReadOnlyFirstTests : IDisposable { + // TODO uncomment below to declare an instance variable for ReadOnlyFirst + //private ReadOnlyFirst instance; + + public ReadOnlyFirstTests() + { + // TODO uncomment below to create an instance of ReadOnlyFirst + //instance = new ReadOnlyFirst(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of ReadOnlyFirst /// [Fact] public void ReadOnlyFirstInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ReadOnlyFirst - //Assert.IsType (instance, "variable 'instance' is a ReadOnlyFirst"); + // TODO uncomment below to test "IsType" ReadOnlyFirst + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index ce4d43f26d1..c8c1d6510d2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Return @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ReturnTests + public class ReturnTests : IDisposable { + // TODO uncomment below to declare an instance variable for Return + //private Return instance; + + public ReturnTests() + { + // TODO uncomment below to create an instance of Return + //instance = new Return(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of Return /// [Fact] public void ReturnInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Return - //Assert.IsType (instance, "variable 'instance' is a Return"); + // TODO uncomment below to test "IsType" Return + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 5170070bf44..04cb9f1ab6b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ScaleneTriangle @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ScaleneTriangleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ScaleneTriangle - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ScaleneTriangle"); + // TODO uncomment below to test "IsType" ScaleneTriangle + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 4ee56a550df..7bd0bc86f96 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ShapeInterface @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ShapeInterfaceInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ShapeInterface - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ShapeInterface"); + // TODO uncomment below to test "IsType" ShapeInterface + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index eb229415ae1..d0af114157c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ShapeOrNull @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ShapeOrNullInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ShapeOrNull - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ShapeOrNull"); + // TODO uncomment below to test "IsType" ShapeOrNull + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index d2c4f924620..b01bd531f85 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Shape @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ShapeInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Shape - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Shape"); + // TODO uncomment below to test "IsType" Shape + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index db78f9c542d..6648e980928 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing SimpleQuadrilateral @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void SimpleQuadrilateralInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" SimpleQuadrilateral - //Assert.IsInstanceOfType (instance, "variable 'instance' is a SimpleQuadrilateral"); + // TODO uncomment below to test "IsType" SimpleQuadrilateral + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/StringBooleanMapTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/StringBooleanMapTests.cs deleted file mode 100644 index b26045d4145..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/StringBooleanMapTests.cs +++ /dev/null @@ -1,49 +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 Xunit; - -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. - /// - public class StringBooleanMapTests - { - /// - /// Test an instance of StringBooleanMap - /// - [Fact] - public void StringBooleanMapInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" StringBooleanMap - //Assert.IsType (instance, "variable 'instance' is a StringBooleanMap"); - } - - - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TagTests.cs index 07921f122ae..6d56232d0a7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Tag @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class TagTests + public class TagTests : IDisposable { + // TODO uncomment below to declare an instance variable for Tag + //private Tag instance; + + public TagTests() + { + // TODO uncomment below to create an instance of Tag + //instance = new Tag(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of Tag /// [Fact] public void TagInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Tag - //Assert.IsType (instance, "variable 'instance' is a Tag"); + // TODO uncomment below to test "IsType" Tag + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index f75f2a14a6e..fba65470bee 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing TriangleInterface @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void TriangleInterfaceInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" TriangleInterface - //Assert.IsInstanceOfType (instance, "variable 'instance' is a TriangleInterface"); + // TODO uncomment below to test "IsType" TriangleInterface + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index 2f3f3d284fe..bdaab0b4796 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Triangle @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void TriangleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Triangle - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Triangle"); + // TODO uncomment below to test "IsType" Triangle + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs deleted file mode 100644 index 9bd2b1afb1c..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs +++ /dev/null @@ -1,89 +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 Xunit; - -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 TypeHolderDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class TypeHolderDefaultTests - { - /// - /// Test an instance of TypeHolderDefault - /// - [Fact] - public void TypeHolderDefaultInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" TypeHolderDefault - //Assert.IsType (instance, "variable 'instance' is a TypeHolderDefault"); - } - - - /// - /// Test the property 'StringItem' - /// - [Fact] - public void StringItemTest() - { - // TODO unit test for the property 'StringItem' - } - /// - /// Test the property 'NumberItem' - /// - [Fact] - public void NumberItemTest() - { - // TODO unit test for the property 'NumberItem' - } - /// - /// Test the property 'IntegerItem' - /// - [Fact] - public void IntegerItemTest() - { - // TODO unit test for the property 'IntegerItem' - } - /// - /// Test the property 'BoolItem' - /// - [Fact] - public void BoolItemTest() - { - // TODO unit test for the property 'BoolItem' - } - /// - /// Test the property 'ArrayItem' - /// - [Fact] - public void ArrayItemTest() - { - // TODO unit test for the property 'ArrayItem' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs deleted file mode 100644 index 7503d7a7d7d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs +++ /dev/null @@ -1,89 +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 Xunit; - -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 TypeHolderExample - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class TypeHolderExampleTests - { - /// - /// Test an instance of TypeHolderExample - /// - [Fact] - public void TypeHolderExampleInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" TypeHolderExample - //Assert.IsType (instance, "variable 'instance' is a TypeHolderExample"); - } - - - /// - /// Test the property 'StringItem' - /// - [Fact] - public void StringItemTest() - { - // TODO unit test for the property 'StringItem' - } - /// - /// Test the property 'NumberItem' - /// - [Fact] - public void NumberItemTest() - { - // TODO unit test for the property 'NumberItem' - } - /// - /// Test the property 'IntegerItem' - /// - [Fact] - public void IntegerItemTest() - { - // TODO unit test for the property 'IntegerItem' - } - /// - /// Test the property 'BoolItem' - /// - [Fact] - public void BoolItemTest() - { - // TODO unit test for the property 'BoolItem' - } - /// - /// Test the property 'ArrayItem' - /// - [Fact] - public void ArrayItemTest() - { - // TODO unit test for the property 'ArrayItem' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/UserTests.cs index 6a71925c5c2..a7b095e4c28 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing User @@ -30,16 +29,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class UserTests + public class UserTests : IDisposable { + // TODO uncomment below to declare an instance variable for User + //private User instance; + + public UserTests() + { + // TODO uncomment below to create an instance of User + //instance = new User(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of User /// [Fact] public void UserInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" User - //Assert.IsType (instance, "variable 'instance' is a User"); + // TODO uncomment below to test "IsType" User + //Assert.IsType(instance); } @@ -107,6 +120,38 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'UserStatus' } + /// + /// Test the property 'ObjectWithNoDeclaredProps' + /// + [Fact] + public void ObjectWithNoDeclaredPropsTest() + { + // TODO unit test for the property 'ObjectWithNoDeclaredProps' + } + /// + /// Test the property 'ObjectWithNoDeclaredPropsNullable' + /// + [Fact] + public void ObjectWithNoDeclaredPropsNullableTest() + { + // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' + } + /// + /// Test the property 'AnyTypeProp' + /// + [Fact] + public void AnyTypePropTest() + { + // TODO unit test for the property 'AnyTypeProp' + } + /// + /// Test the property 'AnyTypePropNullable' + /// + [Fact] + public void AnyTypePropNullableTest() + { + // TODO unit test for the property 'AnyTypePropNullable' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index d6d8d009a0b..09610791943 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Whale @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void WhaleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Whale - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Whale"); + // TODO uncomment below to test "IsType" Whale + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs deleted file mode 100644 index bdd6c6be6a0..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs +++ /dev/null @@ -1,281 +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 Xunit; - -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 XmlItem - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class XmlItemTests - { - /// - /// Test an instance of XmlItem - /// - [Fact] - public void XmlItemInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" XmlItem - //Assert.IsType (instance, "variable 'instance' is a XmlItem"); - } - - - /// - /// Test the property 'AttributeString' - /// - [Fact] - public void AttributeStringTest() - { - // TODO unit test for the property 'AttributeString' - } - /// - /// Test the property 'AttributeNumber' - /// - [Fact] - public void AttributeNumberTest() - { - // TODO unit test for the property 'AttributeNumber' - } - /// - /// Test the property 'AttributeInteger' - /// - [Fact] - public void AttributeIntegerTest() - { - // TODO unit test for the property 'AttributeInteger' - } - /// - /// Test the property 'AttributeBoolean' - /// - [Fact] - public void AttributeBooleanTest() - { - // TODO unit test for the property 'AttributeBoolean' - } - /// - /// Test the property 'WrappedArray' - /// - [Fact] - public void WrappedArrayTest() - { - // TODO unit test for the property 'WrappedArray' - } - /// - /// Test the property 'NameString' - /// - [Fact] - public void NameStringTest() - { - // TODO unit test for the property 'NameString' - } - /// - /// Test the property 'NameNumber' - /// - [Fact] - public void NameNumberTest() - { - // TODO unit test for the property 'NameNumber' - } - /// - /// Test the property 'NameInteger' - /// - [Fact] - public void NameIntegerTest() - { - // TODO unit test for the property 'NameInteger' - } - /// - /// Test the property 'NameBoolean' - /// - [Fact] - public void NameBooleanTest() - { - // TODO unit test for the property 'NameBoolean' - } - /// - /// Test the property 'NameArray' - /// - [Fact] - public void NameArrayTest() - { - // TODO unit test for the property 'NameArray' - } - /// - /// Test the property 'NameWrappedArray' - /// - [Fact] - public void NameWrappedArrayTest() - { - // TODO unit test for the property 'NameWrappedArray' - } - /// - /// Test the property 'PrefixString' - /// - [Fact] - public void PrefixStringTest() - { - // TODO unit test for the property 'PrefixString' - } - /// - /// Test the property 'PrefixNumber' - /// - [Fact] - public void PrefixNumberTest() - { - // TODO unit test for the property 'PrefixNumber' - } - /// - /// Test the property 'PrefixInteger' - /// - [Fact] - public void PrefixIntegerTest() - { - // TODO unit test for the property 'PrefixInteger' - } - /// - /// Test the property 'PrefixBoolean' - /// - [Fact] - public void PrefixBooleanTest() - { - // TODO unit test for the property 'PrefixBoolean' - } - /// - /// Test the property 'PrefixArray' - /// - [Fact] - public void PrefixArrayTest() - { - // TODO unit test for the property 'PrefixArray' - } - /// - /// Test the property 'PrefixWrappedArray' - /// - [Fact] - public void PrefixWrappedArrayTest() - { - // TODO unit test for the property 'PrefixWrappedArray' - } - /// - /// Test the property 'NamespaceString' - /// - [Fact] - public void NamespaceStringTest() - { - // TODO unit test for the property 'NamespaceString' - } - /// - /// Test the property 'NamespaceNumber' - /// - [Fact] - public void NamespaceNumberTest() - { - // TODO unit test for the property 'NamespaceNumber' - } - /// - /// Test the property 'NamespaceInteger' - /// - [Fact] - public void NamespaceIntegerTest() - { - // TODO unit test for the property 'NamespaceInteger' - } - /// - /// Test the property 'NamespaceBoolean' - /// - [Fact] - public void NamespaceBooleanTest() - { - // TODO unit test for the property 'NamespaceBoolean' - } - /// - /// Test the property 'NamespaceArray' - /// - [Fact] - public void NamespaceArrayTest() - { - // TODO unit test for the property 'NamespaceArray' - } - /// - /// Test the property 'NamespaceWrappedArray' - /// - [Fact] - public void NamespaceWrappedArrayTest() - { - // TODO unit test for the property 'NamespaceWrappedArray' - } - /// - /// Test the property 'PrefixNsString' - /// - [Fact] - public void PrefixNsStringTest() - { - // TODO unit test for the property 'PrefixNsString' - } - /// - /// Test the property 'PrefixNsNumber' - /// - [Fact] - public void PrefixNsNumberTest() - { - // TODO unit test for the property 'PrefixNsNumber' - } - /// - /// Test the property 'PrefixNsInteger' - /// - [Fact] - public void PrefixNsIntegerTest() - { - // TODO unit test for the property 'PrefixNsInteger' - } - /// - /// Test the property 'PrefixNsBoolean' - /// - [Fact] - public void PrefixNsBooleanTest() - { - // TODO unit test for the property 'PrefixNsBoolean' - } - /// - /// Test the property 'PrefixNsArray' - /// - [Fact] - public void PrefixNsArrayTest() - { - // TODO unit test for the property 'PrefixNsArray' - } - /// - /// Test the property 'PrefixNsWrappedArray' - /// - [Fact] - public void PrefixNsWrappedArrayTest() - { - // TODO unit test for the property 'PrefixNsWrappedArray' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index 84ebb849aa0..f44e9213140 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Zebra @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ZebraInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Zebra - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Zebra"); + // TODO uncomment below to test "IsType" Zebra + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject.cs deleted file mode 100644 index 651f325b645..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject.cs +++ /dev/null @@ -1,141 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject - /// - [DataContract(Name = "inline_object")] - public partial class InlineObject : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Updated name of the pet. - /// Updated status of the pet. - public InlineObject(string name = default(string), string status = default(string)) - { - this.Name = name; - this.Status = status; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Updated name of the pet - /// - /// Updated name of the pet - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - - /// - /// Updated status of the pet - /// - /// Updated status of the pet - [DataMember(Name = "status", EmitDefaultValue = false)] - public string Status { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject).AreEqual; - } - - /// - /// Returns true if InlineObject instances are equal - /// - /// Instance of InlineObject to be compared - /// Boolean - public bool Equals(InlineObject input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject1.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject1.cs deleted file mode 100644 index 9e96b966e9e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject1.cs +++ /dev/null @@ -1,141 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject1 - /// - [DataContract(Name = "inline_object_1")] - public partial class InlineObject1 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Additional data to pass to server. - /// file to upload. - public InlineObject1(string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) - { - this.AdditionalMetadata = additionalMetadata; - this.File = file; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Additional data to pass to server - /// - /// Additional data to pass to server - [DataMember(Name = "additionalMetadata", EmitDefaultValue = false)] - public string AdditionalMetadata { get; set; } - - /// - /// file to upload - /// - /// file to upload - [DataMember(Name = "file", EmitDefaultValue = false)] - public System.IO.Stream File { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject1 {\n"); - sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n"); - sb.Append(" File: ").Append(File).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject1).AreEqual; - } - - /// - /// Returns true if InlineObject1 instances are equal - /// - /// Instance of InlineObject1 to be compared - /// Boolean - public bool Equals(InlineObject1 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AdditionalMetadata != null) - hashCode = hashCode * 59 + this.AdditionalMetadata.GetHashCode(); - if (this.File != null) - hashCode = hashCode * 59 + this.File.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject2.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject2.cs deleted file mode 100644 index 0a8a33d11a0..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject2.cs +++ /dev/null @@ -1,185 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject2 - /// - [DataContract(Name = "inline_object_2")] - public partial class InlineObject2 : IEquatable, IValidatableObject - { - /// - /// Defines EnumFormStringArray - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum EnumFormStringArrayEnum - { - /// - /// Enum GreaterThan for value: > - /// - [EnumMember(Value = ">")] - GreaterThan = 1, - - /// - /// Enum Dollar for value: $ - /// - [EnumMember(Value = "$")] - Dollar = 2 - - } - - - /// - /// Form parameter enum test (string array) - /// - /// Form parameter enum test (string array) - [DataMember(Name = "enum_form_string_array", EmitDefaultValue = false)] - public List EnumFormStringArray { get; set; } - /// - /// Form parameter enum test (string) - /// - /// Form parameter enum test (string) - [JsonConverter(typeof(StringEnumConverter))] - public enum EnumFormStringEnum - { - /// - /// Enum Abc for value: _abc - /// - [EnumMember(Value = "_abc")] - Abc = 1, - - /// - /// Enum Efg for value: -efg - /// - [EnumMember(Value = "-efg")] - Efg = 2, - - /// - /// Enum Xyz for value: (xyz) - /// - [EnumMember(Value = "(xyz)")] - Xyz = 3 - - } - - /// - /// Form parameter enum test (string) - /// - /// Form parameter enum test (string) - [DataMember(Name = "enum_form_string", EmitDefaultValue = false)] - public EnumFormStringEnum? EnumFormString { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// Form parameter enum test (string array). - /// Form parameter enum test (string) (default to EnumFormStringEnum.Efg). - public InlineObject2(List enumFormStringArray = default(List), EnumFormStringEnum? enumFormString = EnumFormStringEnum.Efg) - { - this.EnumFormStringArray = enumFormStringArray; - this.EnumFormString = enumFormString; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject2 {\n"); - sb.Append(" EnumFormStringArray: ").Append(EnumFormStringArray).Append("\n"); - sb.Append(" EnumFormString: ").Append(EnumFormString).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject2).AreEqual; - } - - /// - /// Returns true if InlineObject2 instances are equal - /// - /// Instance of InlineObject2 to be compared - /// Boolean - public bool Equals(InlineObject2 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = hashCode * 59 + this.EnumFormStringArray.GetHashCode(); - hashCode = hashCode * 59 + this.EnumFormString.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject3.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject3.cs deleted file mode 100644 index 7fce7c55597..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject3.cs +++ /dev/null @@ -1,370 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject3 - /// - [DataContract(Name = "inline_object_3")] - public partial class InlineObject3 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject3() - { - this.AdditionalProperties = new Dictionary(); - } - /// - /// Initializes a new instance of the class. - /// - /// None. - /// None. - /// None. - /// None (required). - /// None. - /// None (required). - /// None. - /// None (required). - /// None (required). - /// None. - /// None. - /// None (default to "2010-02-01T10:20:10.111110+01:00"). - /// None. - /// None. - public InlineObject3(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), string _string = default(string), string patternWithoutDelimiter = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string)) - { - this.Number = number; - this.Double = _double; - // to ensure "patternWithoutDelimiter" is required (not null) - this.PatternWithoutDelimiter = patternWithoutDelimiter ?? throw new ArgumentNullException("patternWithoutDelimiter is a required property for InlineObject3 and cannot be null"); - // to ensure "_byte" is required (not null) - this.Byte = _byte ?? throw new ArgumentNullException("_byte is a required property for InlineObject3 and cannot be null"); - this.Integer = integer; - this.Int32 = int32; - this.Int64 = int64; - this.Float = _float; - this.String = _string; - this.Binary = binary; - this.Date = date; - this.DateTime = dateTime; - this.Password = password; - this.Callback = callback; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// None - /// - /// None - [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = false)] - public decimal Number { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "double", IsRequired = true, EmitDefaultValue = false)] - public double Double { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "pattern_without_delimiter", IsRequired = true, EmitDefaultValue = false)] - public string PatternWithoutDelimiter { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = false)] - public byte[] Byte { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "binary", EmitDefaultValue = false)] - public System.IO.Stream Binary { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "date", EmitDefaultValue = false)] - [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime Date { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "password", EmitDefaultValue = false)] - public string Password { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "callback", EmitDefaultValue = false)] - public string Callback { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject3 {\n"); - sb.Append(" Integer: ").Append(Integer).Append("\n"); - sb.Append(" Int32: ").Append(Int32).Append("\n"); - sb.Append(" Int64: ").Append(Int64).Append("\n"); - sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" PatternWithoutDelimiter: ").Append(PatternWithoutDelimiter).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); - sb.Append(" Binary: ").Append(Binary).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" DateTime: ").Append(DateTime).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Callback: ").Append(Callback).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject3).AreEqual; - } - - /// - /// Returns true if InlineObject3 instances are equal - /// - /// Instance of InlineObject3 to be compared - /// Boolean - public bool Equals(InlineObject3 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = hashCode * 59 + this.Integer.GetHashCode(); - hashCode = hashCode * 59 + this.Int32.GetHashCode(); - hashCode = hashCode * 59 + this.Int64.GetHashCode(); - hashCode = hashCode * 59 + this.Number.GetHashCode(); - hashCode = hashCode * 59 + this.Float.GetHashCode(); - hashCode = hashCode * 59 + this.Double.GetHashCode(); - if (this.String != null) - hashCode = hashCode * 59 + this.String.GetHashCode(); - if (this.PatternWithoutDelimiter != null) - hashCode = hashCode * 59 + this.PatternWithoutDelimiter.GetHashCode(); - if (this.Byte != null) - hashCode = hashCode * 59 + this.Byte.GetHashCode(); - if (this.Binary != null) - hashCode = hashCode * 59 + this.Binary.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.DateTime != null) - hashCode = hashCode * 59 + this.DateTime.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Callback != null) - hashCode = hashCode * 59 + this.Callback.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - // Integer (int) maximum - if(this.Integer > (int)100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); - } - - // Integer (int) minimum - if(this.Integer < (int)10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); - } - - // Int32 (int) maximum - if(this.Int32 > (int)200) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); - } - - // Int32 (int) minimum - if(this.Int32 < (int)20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); - } - - // Number (decimal) maximum - if(this.Number > (decimal)543.2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" }); - } - - // Number (decimal) minimum - if(this.Number < (decimal)32.1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); - } - - // Float (float) maximum - if(this.Float > (float)987.6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); - } - - // Double (double) maximum - if(this.Double > (double)123.4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); - } - - // Double (double) minimum - if(this.Double < (double)67.8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); - } - - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } - - // PatternWithoutDelimiter (string) pattern - Regex regexPatternWithoutDelimiter = new Regex(@"^[A-Z].*", RegexOptions.CultureInvariant); - if (false == regexPatternWithoutDelimiter.Match(this.PatternWithoutDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithoutDelimiter, must match a pattern of " + regexPatternWithoutDelimiter, new [] { "PatternWithoutDelimiter" }); - } - - // Password (string) maxLength - if(this.Password != null && this.Password.Length > 64) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be less than 64.", new [] { "Password" }); - } - - // Password (string) minLength - if(this.Password != null && this.Password.Length < 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be greater than 10.", new [] { "Password" }); - } - - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject4.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject4.cs deleted file mode 100644 index 72cece10617..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject4.cs +++ /dev/null @@ -1,151 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject4 - /// - [DataContract(Name = "inline_object_4")] - public partial class InlineObject4 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject4() - { - this.AdditionalProperties = new Dictionary(); - } - /// - /// Initializes a new instance of the class. - /// - /// field1 (required). - /// field2 (required). - public InlineObject4(string param = default(string), string param2 = default(string)) - { - // to ensure "param" is required (not null) - this.Param = param ?? throw new ArgumentNullException("param is a required property for InlineObject4 and cannot be null"); - // to ensure "param2" is required (not null) - this.Param2 = param2 ?? throw new ArgumentNullException("param2 is a required property for InlineObject4 and cannot be null"); - this.AdditionalProperties = new Dictionary(); - } - - /// - /// field1 - /// - /// field1 - [DataMember(Name = "param", IsRequired = true, EmitDefaultValue = false)] - public string Param { get; set; } - - /// - /// field2 - /// - /// field2 - [DataMember(Name = "param2", IsRequired = true, EmitDefaultValue = false)] - public string Param2 { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject4 {\n"); - sb.Append(" Param: ").Append(Param).Append("\n"); - sb.Append(" Param2: ").Append(Param2).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject4).AreEqual; - } - - /// - /// Returns true if InlineObject4 instances are equal - /// - /// Instance of InlineObject4 to be compared - /// Boolean - public bool Equals(InlineObject4 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Param != null) - hashCode = hashCode * 59 + this.Param.GetHashCode(); - if (this.Param2 != null) - hashCode = hashCode * 59 + this.Param2.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject5.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject5.cs deleted file mode 100644 index f682f14ef41..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineObject5.cs +++ /dev/null @@ -1,150 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject5 - /// - [DataContract(Name = "inline_object_5")] - public partial class InlineObject5 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject5() - { - this.AdditionalProperties = new Dictionary(); - } - /// - /// Initializes a new instance of the class. - /// - /// Additional data to pass to server. - /// file to upload (required). - public InlineObject5(string additionalMetadata = default(string), System.IO.Stream requiredFile = default(System.IO.Stream)) - { - // to ensure "requiredFile" is required (not null) - this.RequiredFile = requiredFile ?? throw new ArgumentNullException("requiredFile is a required property for InlineObject5 and cannot be null"); - this.AdditionalMetadata = additionalMetadata; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Additional data to pass to server - /// - /// Additional data to pass to server - [DataMember(Name = "additionalMetadata", EmitDefaultValue = false)] - public string AdditionalMetadata { get; set; } - - /// - /// file to upload - /// - /// file to upload - [DataMember(Name = "requiredFile", IsRequired = true, EmitDefaultValue = false)] - public System.IO.Stream RequiredFile { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject5 {\n"); - sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n"); - sb.Append(" RequiredFile: ").Append(RequiredFile).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject5).AreEqual; - } - - /// - /// Returns true if InlineObject5 instances are equal - /// - /// Instance of InlineObject5 to be compared - /// Boolean - public bool Equals(InlineObject5 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AdditionalMetadata != null) - hashCode = hashCode * 59 + this.AdditionalMetadata.GetHashCode(); - if (this.RequiredFile != null) - hashCode = hashCode * 59 + this.RequiredFile.GetHashCode(); - if (this.AdditionalProperties != null) - hashCode = hashCode * 59 + this.AdditionalProperties.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-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index ae46f1f0098..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,132 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - [DataContract(Name = "inline_response_default")] - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string. - public InlineResponseDefault(Foo _string = default(Foo)) - { - this.String = _string; - this.AdditionalProperties = new Dictionary(); - } - - /// - /// Gets or Sets String - /// - [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - if (this.AdditionalProperties != null) - { - hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesAnyType.md deleted file mode 100644 index 2513b741ba0..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesAnyType.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesAnyType -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/AdditionalPropertiesArray.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesArray.md deleted file mode 100644 index 39a7c940c28..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesArray.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesArray -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesBoolean.md deleted file mode 100644 index e3b30ac619a..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesBoolean.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesBoolean -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesInteger.md deleted file mode 100644 index e40cc1e54ec..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesInteger.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesInteger -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesNumber.md deleted file mode 100644 index 91764084c89..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesNumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesNumber -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/AdditionalPropertiesObject.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesObject.md deleted file mode 100644 index 2fa66f43d68..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesObject -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/AdditionalPropertiesString.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesString.md deleted file mode 100644 index 008d3d4f33b..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/AdditionalPropertiesString.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.AdditionalPropertiesString -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/BigCat.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/BigCat.md deleted file mode 100644 index 41c336e4ca9..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/BigCat.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.BigCat -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Declawed** | **bool** | | [optional] -**Kind** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/BigCatAllOf.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/BigCatAllOf.md deleted file mode 100644 index 88a739b7e4a..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/BigCatAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Org.OpenAPITools.Model.BigCatAllOf -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/InlineObject.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject.md deleted file mode 100644 index 40e16da1bb7..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Updated name of the pet | [optional] -**Status** | **string** | Updated status of the pet | [optional] - -[[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-netcore/OpenAPIClientCore/docs/InlineObject1.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject1.md deleted file mode 100644 index 2e6d226754e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject1.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject1 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdditionalMetadata** | **string** | Additional data to pass to server | [optional] -**File** | **System.IO.Stream** | file to upload | [optional] - -[[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-netcore/OpenAPIClientCore/docs/InlineObject2.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject2.md deleted file mode 100644 index c02c78f9b2d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject2.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject2 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**EnumFormStringArray** | **List<string>** | Form parameter enum test (string array) | [optional] -**EnumFormString** | **string** | Form parameter enum test (string) | [optional] [default to EnumFormStringEnum.Efg] - -[[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-netcore/OpenAPIClientCore/docs/InlineObject3.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject3.md deleted file mode 100644 index 38b5bf8a5ce..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject3.md +++ /dev/null @@ -1,22 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject3 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Integer** | **int** | None | [optional] -**Int32** | **int** | None | [optional] -**Int64** | **long** | None | [optional] -**Number** | **decimal** | None | -**Float** | **float** | None | [optional] -**Double** | **double** | None | -**String** | **string** | None | [optional] -**PatternWithoutDelimiter** | **string** | None | -**Byte** | **byte[]** | None | -**Binary** | **System.IO.Stream** | None | [optional] -**Date** | **DateTime** | None | [optional] -**DateTime** | **DateTime** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] -**Password** | **string** | None | [optional] -**Callback** | **string** | None | [optional] - -[[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-netcore/OpenAPIClientCore/docs/InlineObject4.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject4.md deleted file mode 100644 index c8e00663ee8..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject4.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject4 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Param** | **string** | field1 | -**Param2** | **string** | field2 | - -[[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-netcore/OpenAPIClientCore/docs/InlineObject5.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject5.md deleted file mode 100644 index a28ff47f2ec..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineObject5.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineObject5 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdditionalMetadata** | **string** | Additional data to pass to server | [optional] -**RequiredFile** | **System.IO.Stream** | file to upload | - -[[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-netcore/OpenAPIClientCore/docs/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineResponseDefault.md deleted file mode 100644 index e3d55e133f3..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/InlineResponseDefault.md +++ /dev/null @@ -1,10 +0,0 @@ -# Org.OpenAPITools.Model.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] - -[[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-netcore/OpenAPIClientCore/docs/TypeHolderDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderDefault.md deleted file mode 100644 index ccf43c723ec..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderDefault.md +++ /dev/null @@ -1,13 +0,0 @@ -# Org.OpenAPITools.Model.TypeHolderDefault -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StringItem** | **string** | | [default to "what"] -**NumberItem** | **decimal** | | -**IntegerItem** | **int** | | -**BoolItem** | **bool** | | [default to true] -**ArrayItem** | **List<int>** | | - -[[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-netcore/OpenAPIClientCore/docs/TypeHolderExample.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderExample.md deleted file mode 100644 index f78185c2aa0..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderExample.md +++ /dev/null @@ -1,14 +0,0 @@ -# Org.OpenAPITools.Model.TypeHolderExample -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StringItem** | **string** | | -**NumberItem** | **decimal** | | -**FloatItem** | **float** | | -**IntegerItem** | **int** | | -**BoolItem** | **bool** | | -**ArrayItem** | **List<int>** | | - -[[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-netcore/OpenAPIClientCore/docs/XmlItem.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/XmlItem.md deleted file mode 100644 index 679fd2c3d11..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/XmlItem.md +++ /dev/null @@ -1,37 +0,0 @@ -# Org.OpenAPITools.Model.XmlItem -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AttributeString** | **string** | | [optional] -**AttributeNumber** | **decimal** | | [optional] -**AttributeInteger** | **int** | | [optional] -**AttributeBoolean** | **bool** | | [optional] -**WrappedArray** | **List<int>** | | [optional] -**NameString** | **string** | | [optional] -**NameNumber** | **decimal** | | [optional] -**NameInteger** | **int** | | [optional] -**NameBoolean** | **bool** | | [optional] -**NameArray** | **List<int>** | | [optional] -**NameWrappedArray** | **List<int>** | | [optional] -**PrefixString** | **string** | | [optional] -**PrefixNumber** | **decimal** | | [optional] -**PrefixInteger** | **int** | | [optional] -**PrefixBoolean** | **bool** | | [optional] -**PrefixArray** | **List<int>** | | [optional] -**PrefixWrappedArray** | **List<int>** | | [optional] -**NamespaceString** | **string** | | [optional] -**NamespaceNumber** | **decimal** | | [optional] -**NamespaceInteger** | **int** | | [optional] -**NamespaceBoolean** | **bool** | | [optional] -**NamespaceArray** | **List<int>** | | [optional] -**NamespaceWrappedArray** | **List<int>** | | [optional] -**PrefixNsString** | **string** | | [optional] -**PrefixNsNumber** | **decimal** | | [optional] -**PrefixNsInteger** | **int** | | [optional] -**PrefixNsBoolean** | **bool** | | [optional] -**PrefixNsArray** | **List<int>** | | [optional] -**PrefixNsWrappedArray** | **List<int>** | | [optional] - -[[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-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs index 77f35e992a1..1d46982928d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/AnotherFakeApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing AnotherFakeApi @@ -50,11 +50,10 @@ namespace Org.OpenAPITools.Test [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' AnotherFakeApi - //Assert.IsType(typeof(AnotherFakeApi), instance, "instance is a AnotherFakeApi"); + // TODO uncomment below to test 'IsType' AnotherFakeApi + //Assert.IsType(instance); } - /// /// Test Call123TestSpecialTags /// @@ -62,11 +61,9 @@ namespace Org.OpenAPITools.Test public void Call123TestSpecialTagsTest() { // TODO uncomment below to test the method and replace null with proper value - //ModelClient body = null; - //var response = instance.Call123TestSpecialTags(body); - //Assert.IsType (response, "response is ModelClient"); + //ModelClient modelClient = null; + //var response = instance.Call123TestSpecialTags(modelClient); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 76bc5dfdd66..5d048a005bd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing DefaultApi @@ -50,11 +50,10 @@ namespace Org.OpenAPITools.Test [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' DefaultApi - //Assert.IsType(typeof(DefaultApi), instance, "instance is a DefaultApi"); + // TODO uncomment below to test 'IsType' DefaultApi + //Assert.IsType(instance); } - /// /// Test FooGet /// @@ -63,9 +62,7 @@ namespace Org.OpenAPITools.Test { // TODO uncomment below to test the method and replace null with proper value //var response = instance.FooGet(); - //Assert.IsType (response, "response is InlineResponseDefault"); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 50079e99c26..994cd46d38a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing FakeApi @@ -50,23 +50,21 @@ namespace Org.OpenAPITools.Test [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' FakeApi - //Assert.IsType(typeof(FakeApi), instance, "instance is a FakeApi"); + // TODO uncomment below to test 'IsType' FakeApi + //Assert.IsType(instance); } - /// - /// Test CreateXmlItem + /// Test FakeHealthGet /// [Fact] - public void CreateXmlItemTest() + public void FakeHealthGetTest() { // TODO uncomment below to test the method and replace null with proper value - //XmlItem xmlItem = null; - //instance.CreateXmlItem(xmlItem); - + //var response = instance.FakeHealthGet(); + //Assert.IsType(response); } - + /// /// Test FakeOuterBooleanSerialize /// @@ -76,9 +74,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //bool? body = null; //var response = instance.FakeOuterBooleanSerialize(body); - //Assert.IsType (response, "response is bool"); + //Assert.IsType(response); } - + /// /// Test FakeOuterCompositeSerialize /// @@ -86,11 +84,11 @@ namespace Org.OpenAPITools.Test public void FakeOuterCompositeSerializeTest() { // TODO uncomment below to test the method and replace null with proper value - //OuterComposite body = null; - //var response = instance.FakeOuterCompositeSerialize(body); - //Assert.IsType (response, "response is OuterComposite"); + //OuterComposite outerComposite = null; + //var response = instance.FakeOuterCompositeSerialize(outerComposite); + //Assert.IsType(response); } - + /// /// Test FakeOuterNumberSerialize /// @@ -100,9 +98,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //decimal? body = null; //var response = instance.FakeOuterNumberSerialize(body); - //Assert.IsType (response, "response is decimal"); + //Assert.IsType(response); } - + /// /// Test FakeOuterStringSerialize /// @@ -112,9 +110,20 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //string body = null; //var response = instance.FakeOuterStringSerialize(body); - //Assert.IsType (response, "response is string"); + //Assert.IsType(response); } - + + /// + /// Test GetArrayOfEnums + /// + [Fact] + public void GetArrayOfEnumsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetArrayOfEnums(); + //Assert.IsType>(response); + } + /// /// Test TestBodyWithFileSchema /// @@ -122,11 +131,10 @@ namespace Org.OpenAPITools.Test public void TestBodyWithFileSchemaTest() { // TODO uncomment below to test the method and replace null with proper value - //FileSchemaTestClass body = null; - //instance.TestBodyWithFileSchema(body); - + //FileSchemaTestClass fileSchemaTestClass = null; + //instance.TestBodyWithFileSchema(fileSchemaTestClass); } - + /// /// Test TestBodyWithQueryParams /// @@ -135,11 +143,10 @@ namespace Org.OpenAPITools.Test { // TODO uncomment below to test the method and replace null with proper value //string query = null; - //User body = null; - //instance.TestBodyWithQueryParams(query, body); - + //User user = null; + //instance.TestBodyWithQueryParams(query, user); } - + /// /// Test TestClientModel /// @@ -147,11 +154,11 @@ namespace Org.OpenAPITools.Test public void TestClientModelTest() { // TODO uncomment below to test the method and replace null with proper value - //ModelClient body = null; - //var response = instance.TestClientModel(body); - //Assert.IsType (response, "response is ModelClient"); + //ModelClient modelClient = null; + //var response = instance.TestClientModel(modelClient); + //Assert.IsType(response); } - + /// /// Test TestEndpointParameters /// @@ -174,9 +181,8 @@ namespace Org.OpenAPITools.Test //string password = null; //string callback = null; //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); - } - + /// /// Test TestEnumParameters /// @@ -193,9 +199,8 @@ namespace Org.OpenAPITools.Test //List enumFormStringArray = null; //string enumFormString = null; //instance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); - } - + /// /// Test TestGroupParameters /// @@ -210,9 +215,8 @@ namespace Org.OpenAPITools.Test //bool? booleanGroup = null; //long? int64Group = null; //instance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); - } - + /// /// Test TestInlineAdditionalProperties /// @@ -220,11 +224,10 @@ namespace Org.OpenAPITools.Test public void TestInlineAdditionalPropertiesTest() { // TODO uncomment below to test the method and replace null with proper value - //Dictionary param = null; - //instance.TestInlineAdditionalProperties(param); - + //Dictionary requestBody = null; + //instance.TestInlineAdditionalProperties(requestBody); } - + /// /// Test TestJsonFormData /// @@ -235,9 +238,21 @@ namespace Org.OpenAPITools.Test //string param = null; //string param2 = null; //instance.TestJsonFormData(param, param2); - } - - } + /// + /// Test TestQueryParameterCollectionFormat + /// + [Fact] + public void TestQueryParameterCollectionFormatTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List pipe = null; + //List ioutil = null; + //List http = null; + //List url = null; + //List context = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + } + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs index 647a66e3100..bbfd4a586e7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/FakeClassnameTags123ApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing FakeClassnameTags123Api @@ -50,11 +50,10 @@ namespace Org.OpenAPITools.Test [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' FakeClassnameTags123Api - //Assert.IsType(typeof(FakeClassnameTags123Api), instance, "instance is a FakeClassnameTags123Api"); + // TODO uncomment below to test 'IsType' FakeClassnameTags123Api + //Assert.IsType(instance); } - /// /// Test TestClassname /// @@ -62,11 +61,9 @@ namespace Org.OpenAPITools.Test public void TestClassnameTest() { // TODO uncomment below to test the method and replace null with proper value - //ModelClient body = null; - //var response = instance.TestClassname(body); - //Assert.IsType (response, "response is ModelClient"); + //ModelClient modelClient = null; + //var response = instance.TestClassname(modelClient); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs index bb77b505124..67386764145 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing PetApi @@ -50,11 +50,10 @@ namespace Org.OpenAPITools.Test [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' PetApi - //Assert.IsType(typeof(PetApi), instance, "instance is a PetApi"); + // TODO uncomment below to test 'IsType' PetApi + //Assert.IsType(instance); } - /// /// Test AddPet /// @@ -62,11 +61,10 @@ namespace Org.OpenAPITools.Test public void AddPetTest() { // TODO uncomment below to test the method and replace null with proper value - //Pet body = null; - //instance.AddPet(body); - + //Pet pet = null; + //instance.AddPet(pet); } - + /// /// Test DeletePet /// @@ -77,9 +75,8 @@ namespace Org.OpenAPITools.Test //long petId = null; //string apiKey = null; //instance.DeletePet(petId, apiKey); - } - + /// /// Test FindPetsByStatus /// @@ -89,9 +86,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //List status = null; //var response = instance.FindPetsByStatus(status); - //Assert.IsType> (response, "response is List"); + //Assert.IsType>(response); } - + /// /// Test FindPetsByTags /// @@ -101,9 +98,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //List tags = null; //var response = instance.FindPetsByTags(tags); - //Assert.IsType> (response, "response is List"); + //Assert.IsType>(response); } - + /// /// Test GetPetById /// @@ -113,9 +110,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //long petId = null; //var response = instance.GetPetById(petId); - //Assert.IsType (response, "response is Pet"); + //Assert.IsType(response); } - + /// /// Test UpdatePet /// @@ -123,11 +120,10 @@ namespace Org.OpenAPITools.Test public void UpdatePetTest() { // TODO uncomment below to test the method and replace null with proper value - //Pet body = null; - //instance.UpdatePet(body); - + //Pet pet = null; + //instance.UpdatePet(pet); } - + /// /// Test UpdatePetWithForm /// @@ -139,9 +135,8 @@ namespace Org.OpenAPITools.Test //string name = null; //string status = null; //instance.UpdatePetWithForm(petId, name, status); - } - + /// /// Test UploadFile /// @@ -153,9 +148,9 @@ namespace Org.OpenAPITools.Test //string additionalMetadata = null; //System.IO.Stream file = null; //var response = instance.UploadFile(petId, additionalMetadata, file); - //Assert.IsType (response, "response is ApiResponse"); + //Assert.IsType(response); } - + /// /// Test UploadFileWithRequiredFile /// @@ -167,9 +162,7 @@ namespace Org.OpenAPITools.Test //System.IO.Stream requiredFile = null; //string additionalMetadata = null; //var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); - //Assert.IsType (response, "response is ApiResponse"); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs index ac61d7e7c94..48e9f32748d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/StoreApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing StoreApi @@ -50,11 +50,10 @@ namespace Org.OpenAPITools.Test [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' StoreApi - //Assert.IsType(typeof(StoreApi), instance, "instance is a StoreApi"); + // TODO uncomment below to test 'IsType' StoreApi + //Assert.IsType(instance); } - /// /// Test DeleteOrder /// @@ -64,9 +63,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //string orderId = null; //instance.DeleteOrder(orderId); - } - + /// /// Test GetInventory /// @@ -75,9 +73,9 @@ namespace Org.OpenAPITools.Test { // TODO uncomment below to test the method and replace null with proper value //var response = instance.GetInventory(); - //Assert.IsType> (response, "response is Dictionary"); + //Assert.IsType>(response); } - + /// /// Test GetOrderById /// @@ -87,9 +85,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //long orderId = null; //var response = instance.GetOrderById(orderId); - //Assert.IsType (response, "response is Order"); + //Assert.IsType(response); } - + /// /// Test PlaceOrder /// @@ -97,11 +95,9 @@ namespace Org.OpenAPITools.Test public void PlaceOrderTest() { // TODO uncomment below to test the method and replace null with proper value - //Order body = null; - //var response = instance.PlaceOrder(body); - //Assert.IsType (response, "response is Order"); + //Order order = null; + //var response = instance.PlaceOrder(order); + //Assert.IsType(response); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/UserApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/UserApiTests.cs index dfd9e7b3402..792db5819a0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/UserApiTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Api/UserApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,9 +18,10 @@ using Xunit; using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// /// Class for testing UserApi @@ -50,11 +50,10 @@ namespace Org.OpenAPITools.Test [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsInstanceOfType' UserApi - //Assert.IsType(typeof(UserApi), instance, "instance is a UserApi"); + // TODO uncomment below to test 'IsType' UserApi + //Assert.IsType(instance); } - /// /// Test CreateUser /// @@ -62,11 +61,10 @@ namespace Org.OpenAPITools.Test public void CreateUserTest() { // TODO uncomment below to test the method and replace null with proper value - //User body = null; - //instance.CreateUser(body); - + //User user = null; + //instance.CreateUser(user); } - + /// /// Test CreateUsersWithArrayInput /// @@ -74,11 +72,10 @@ namespace Org.OpenAPITools.Test public void CreateUsersWithArrayInputTest() { // TODO uncomment below to test the method and replace null with proper value - //List body = null; - //instance.CreateUsersWithArrayInput(body); - + //List user = null; + //instance.CreateUsersWithArrayInput(user); } - + /// /// Test CreateUsersWithListInput /// @@ -86,11 +83,10 @@ namespace Org.OpenAPITools.Test public void CreateUsersWithListInputTest() { // TODO uncomment below to test the method and replace null with proper value - //List body = null; - //instance.CreateUsersWithListInput(body); - + //List user = null; + //instance.CreateUsersWithListInput(user); } - + /// /// Test DeleteUser /// @@ -100,9 +96,8 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //string username = null; //instance.DeleteUser(username); - } - + /// /// Test GetUserByName /// @@ -112,9 +107,9 @@ namespace Org.OpenAPITools.Test // TODO uncomment below to test the method and replace null with proper value //string username = null; //var response = instance.GetUserByName(username); - //Assert.IsType (response, "response is User"); + //Assert.IsType(response); } - + /// /// Test LoginUser /// @@ -125,9 +120,9 @@ namespace Org.OpenAPITools.Test //string username = null; //string password = null; //var response = instance.LoginUser(username, password); - //Assert.IsType (response, "response is string"); + //Assert.IsType(response); } - + /// /// Test LogoutUser /// @@ -136,9 +131,8 @@ namespace Org.OpenAPITools.Test { // TODO uncomment below to test the method and replace null with proper value //instance.LogoutUser(); - } - + /// /// Test UpdateUser /// @@ -147,11 +141,8 @@ namespace Org.OpenAPITools.Test { // TODO uncomment below to test the method and replace null with proper value //string username = null; - //User body = null; - //instance.UpdateUser(username, body); - + //User user = null; + //instance.UpdateUser(username, user); } - } - } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesAnyTypeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesAnyTypeTests.cs deleted file mode 100644 index 80e2d42cf50..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesAnyTypeTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 AdditionalPropertiesAnyType - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesAnyTypeTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesAnyType - //private AdditionalPropertiesAnyType instance; - - public AdditionalPropertiesAnyTypeTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesAnyType - //instance = new AdditionalPropertiesAnyType(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesAnyType - /// - [Fact] - public void AdditionalPropertiesAnyTypeInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesAnyType - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesAnyType"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesArrayTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesArrayTests.cs deleted file mode 100644 index 21adc82df49..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesArrayTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 AdditionalPropertiesArray - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesArrayTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesArray - //private AdditionalPropertiesArray instance; - - public AdditionalPropertiesArrayTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesArray - //instance = new AdditionalPropertiesArray(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesArray - /// - [Fact] - public void AdditionalPropertiesArrayInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesArray - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesArray"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesBooleanTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesBooleanTests.cs deleted file mode 100644 index 61505893ed1..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesBooleanTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 AdditionalPropertiesBoolean - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesBooleanTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesBoolean - //private AdditionalPropertiesBoolean instance; - - public AdditionalPropertiesBooleanTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesBoolean - //instance = new AdditionalPropertiesBoolean(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesBoolean - /// - [Fact] - public void AdditionalPropertiesBooleanInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesBoolean - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesBoolean"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 2c07d9ce2ea..9ab029ed097 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing AdditionalPropertiesClass @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void AdditionalPropertiesClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesClass - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesClass"); + // TODO uncomment below to test "IsType" AdditionalPropertiesClass + //Assert.IsType(instance); } @@ -73,6 +72,54 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'MapOfMapProperty' } + /// + /// Test the property 'Anytype1' + /// + [Fact] + public void Anytype1Test() + { + // TODO unit test for the property 'Anytype1' + } + /// + /// Test the property 'MapWithUndeclaredPropertiesAnytype1' + /// + [Fact] + public void MapWithUndeclaredPropertiesAnytype1Test() + { + // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' + } + /// + /// Test the property 'MapWithUndeclaredPropertiesAnytype2' + /// + [Fact] + public void MapWithUndeclaredPropertiesAnytype2Test() + { + // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' + } + /// + /// Test the property 'MapWithUndeclaredPropertiesAnytype3' + /// + [Fact] + public void MapWithUndeclaredPropertiesAnytype3Test() + { + // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' + } + /// + /// Test the property 'EmptyMap' + /// + [Fact] + public void EmptyMapTest() + { + // TODO unit test for the property 'EmptyMap' + } + /// + /// Test the property 'MapWithUndeclaredPropertiesString' + /// + [Fact] + public void MapWithUndeclaredPropertiesStringTest() + { + // TODO unit test for the property 'MapWithUndeclaredPropertiesString' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesIntegerTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesIntegerTests.cs deleted file mode 100644 index 45de798b246..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesIntegerTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 AdditionalPropertiesInteger - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesIntegerTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesInteger - //private AdditionalPropertiesInteger instance; - - public AdditionalPropertiesIntegerTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesInteger - //instance = new AdditionalPropertiesInteger(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesInteger - /// - [Fact] - public void AdditionalPropertiesIntegerInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesInteger - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesInteger"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesNumberTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesNumberTests.cs deleted file mode 100644 index 5a4b8eb3ea7..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesNumberTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 AdditionalPropertiesNumber - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesNumberTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesNumber - //private AdditionalPropertiesNumber instance; - - public AdditionalPropertiesNumberTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesNumber - //instance = new AdditionalPropertiesNumber(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesNumber - /// - [Fact] - public void AdditionalPropertiesNumberInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesNumber - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesNumber"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesObjectTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesObjectTests.cs deleted file mode 100644 index b4410816ce4..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesObjectTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 AdditionalPropertiesObject - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesObjectTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesObject - //private AdditionalPropertiesObject instance; - - public AdditionalPropertiesObjectTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesObject - //instance = new AdditionalPropertiesObject(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesObject - /// - [Fact] - public void AdditionalPropertiesObjectInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesObject - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesObject"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesStringTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesStringTests.cs deleted file mode 100644 index 897ddaefc5d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesStringTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 AdditionalPropertiesString - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class AdditionalPropertiesStringTests : IDisposable - { - // TODO uncomment below to declare an instance variable for AdditionalPropertiesString - //private AdditionalPropertiesString instance; - - public AdditionalPropertiesStringTests() - { - // TODO uncomment below to create an instance of AdditionalPropertiesString - //instance = new AdditionalPropertiesString(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of AdditionalPropertiesString - /// - [Fact] - public void AdditionalPropertiesStringInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesString - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AdditionalPropertiesString"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index a7109a57881..ced34a4faad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Animal @@ -52,19 +51,10 @@ namespace Org.OpenAPITools.Test [Fact] public void AnimalInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Animal - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Animal"); + // TODO uncomment below to test "IsType" Animal + //Assert.IsType(instance); } - /// - /// Test deserialize a Dog from type Animal - /// - [Fact] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsInstanceOf(JsonConvert.DeserializeObject(new Dog().ToJson())); - } /// /// Test deserialize a Cat from type Animal /// @@ -72,7 +62,16 @@ namespace Org.OpenAPITools.Test public void CatDeserializeFromAnimalTest() { // TODO uncomment below to test deserialize a Cat from type Animal - //Assert.IsInstanceOf(JsonConvert.DeserializeObject(new Cat().ToJson())); + //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); + } + /// + /// Test deserialize a Dog from type Animal + /// + [Fact] + public void DogDeserializeFromAnimalTest() + { + // TODO uncomment below to test deserialize a Dog from type Animal + //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index de50416f945..2a2e098e608 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ApiResponse @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ApiResponseInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ApiResponse - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ApiResponse"); + // TODO uncomment below to test "IsType" ApiResponse + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index 1e8e0efe119..f945f659368 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing AppleReq @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void AppleReqInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" AppleReq - //Assert.IsInstanceOfType (instance, "variable 'instance' is a AppleReq"); + // TODO uncomment below to test "IsType" AppleReq + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 69b870d3e26..468d60184ad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Apple @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void AppleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Apple - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Apple"); + // TODO uncomment below to test "IsType" Apple + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 646f03444d6..0b259d7d391 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ArrayOfArrayOfNumberOnly @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ArrayOfArrayOfNumberOnlyInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ArrayOfArrayOfNumberOnly - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ArrayOfArrayOfNumberOnly"); + // TODO uncomment below to test "IsType" ArrayOfArrayOfNumberOnly + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 3fcab83fc87..27f312ad25f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ArrayOfNumberOnly @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ArrayOfNumberOnlyInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ArrayOfNumberOnly - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ArrayOfNumberOnly"); + // TODO uncomment below to test "IsType" ArrayOfNumberOnly + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index d14287a5251..a433e8c87cf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ArrayTest @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ArrayTestInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ArrayTest - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ArrayTest"); + // TODO uncomment below to test "IsType" ArrayTest + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8465dc38036..8a6eeb82eee 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing BananaReq @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void BananaReqInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" BananaReq - //Assert.IsInstanceOfType (instance, "variable 'instance' is a BananaReq"); + // TODO uncomment below to test "IsType" BananaReq + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 24ac6470491..8d8cc376b03 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Banana @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void BananaInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Banana - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Banana"); + // TODO uncomment below to test "IsType" Banana + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 561a8290290..3cdccaa7595 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing BasquePig @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void BasquePigInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" BasquePig - //Assert.IsInstanceOfType (instance, "variable 'instance' is a BasquePig"); + // TODO uncomment below to test "IsType" BasquePig + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BigCatAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BigCatAllOfTests.cs deleted file mode 100644 index f1b24c7f8fe..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BigCatAllOfTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 BigCatAllOf - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class BigCatAllOfTests : IDisposable - { - // TODO uncomment below to declare an instance variable for BigCatAllOf - //private BigCatAllOf instance; - - public BigCatAllOfTests() - { - // TODO uncomment below to create an instance of BigCatAllOf - //instance = new BigCatAllOf(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of BigCatAllOf - /// - [Fact] - public void BigCatAllOfInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" BigCatAllOf - //Assert.IsInstanceOfType (instance, "variable 'instance' is a BigCatAllOf"); - } - - - /// - /// Test the property 'Kind' - /// - [Fact] - public void KindTest() - { - // TODO unit test for the property 'Kind' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BigCatTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BigCatTests.cs deleted file mode 100644 index 4bda812119c..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/BigCatTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 BigCat - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class BigCatTests : IDisposable - { - // TODO uncomment below to declare an instance variable for BigCat - //private BigCat instance; - - public BigCatTests() - { - // TODO uncomment below to create an instance of BigCat - //instance = new BigCat(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of BigCat - /// - [Fact] - public void BigCatInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" BigCat - //Assert.IsInstanceOfType (instance, "variable 'instance' is a BigCat"); - } - - - /// - /// Test the property 'Kind' - /// - [Fact] - public void KindTest() - { - // TODO unit test for the property 'Kind' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 006dbfb657b..185c83666fc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Capitalization @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void CapitalizationInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Capitalization - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Capitalization"); + // TODO uncomment below to test "IsType" Capitalization + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs index 68b84d01ba6..fb51c28489c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CatAllOfTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing CatAllOf @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void CatAllOfInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" CatAllOf - //Assert.IsInstanceOfType (instance, "variable 'instance' is a CatAllOf"); + // TODO uncomment below to test "IsType" CatAllOf + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CatTests.cs index 466be23b55d..701ba760282 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Cat @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void CatInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Cat - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Cat"); + // TODO uncomment below to test "IsType" Cat + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index b7f7d7a8e9b..6ce48e601e4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Category @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void CategoryInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Category - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Category"); + // TODO uncomment below to test "IsType" Category + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs index 99647a66d62..49a53932490 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ChildCatAllOfTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ChildCatAllOf @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ChildCatAllOfInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ChildCatAllOf - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ChildCatAllOf"); + // TODO uncomment below to test "IsType" ChildCatAllOf + //Assert.IsType(instance); } @@ -64,6 +64,14 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'Name' } + /// + /// Test the property 'PetType' + /// + [Fact] + public void PetTypeTest() + { + // TODO unit test for the property 'PetType' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index ea933f02e05..68566fd8d56 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ChildCat @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ChildCatInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ChildCat - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ChildCat"); + // TODO uncomment below to test "IsType" ChildCat + //Assert.IsType(instance); } @@ -64,6 +64,14 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'Name' } + /// + /// Test the property 'PetType' + /// + [Fact] + public void PetTypeTest() + { + // TODO unit test for the property 'PetType' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index ee76348d664..d29472e83aa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ClassModel @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ClassModelInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ClassModel - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ClassModel"); + // TODO uncomment below to test "IsType" ClassModel + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index 1ca093e7d1b..b3529280c8d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ComplexQuadrilateral @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ComplexQuadrilateralInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ComplexQuadrilateral - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ComplexQuadrilateral"); + // TODO uncomment below to test "IsType" ComplexQuadrilateral + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index fd7376630f4..572d9bffa79 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing DanishPig @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void DanishPigInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" DanishPig - //Assert.IsInstanceOfType (instance, "variable 'instance' is a DanishPig"); + // TODO uncomment below to test "IsType" DanishPig + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs index 76905852d43..b22a4442096 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DogAllOfTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing DogAllOf @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void DogAllOfInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" DogAllOf - //Assert.IsInstanceOfType (instance, "variable 'instance' is a DogAllOf"); + // TODO uncomment below to test "IsType" DogAllOf + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DogTests.cs index c3520c9cb5c..992f93a51fd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Dog @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void DogInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Dog - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Dog"); + // TODO uncomment below to test "IsType" Dog + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 8c0c605a5a4..0709ad9eeb3 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Drawing @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void DrawingInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Drawing - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Drawing"); + // TODO uncomment below to test "IsType" Drawing + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index a525a8908b0..5779ca29477 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing EnumArrays @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void EnumArraysInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" EnumArrays - //Assert.IsInstanceOfType (instance, "variable 'instance' is a EnumArrays"); + // TODO uncomment below to test "IsType" EnumArrays + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index 14a9b8174e7..a17738c5cbc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing EnumClass @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void EnumClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" EnumClass - //Assert.IsInstanceOfType (instance, "variable 'instance' is a EnumClass"); + // TODO uncomment below to test "IsType" EnumClass + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 65695bc71f3..4f81b845d49 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing EnumTest @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void EnumTestInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" EnumTest - //Assert.IsInstanceOfType (instance, "variable 'instance' is a EnumTest"); + // TODO uncomment below to test "IsType" EnumTest + //Assert.IsType(instance); } @@ -82,6 +81,14 @@ namespace Org.OpenAPITools.Test // TODO unit test for the property 'EnumInteger' } /// + /// Test the property 'EnumIntegerOnly' + /// + [Fact] + public void EnumIntegerOnlyTest() + { + // TODO unit test for the property 'EnumIntegerOnly' + } + /// /// Test the property 'EnumNumber' /// [Fact] @@ -97,6 +104,30 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'OuterEnum' } + /// + /// Test the property 'OuterEnumInteger' + /// + [Fact] + public void OuterEnumIntegerTest() + { + // TODO unit test for the property 'OuterEnumInteger' + } + /// + /// Test the property 'OuterEnumDefaultValue' + /// + [Fact] + public void OuterEnumDefaultValueTest() + { + // TODO unit test for the property 'OuterEnumDefaultValue' + } + /// + /// Test the property 'OuterEnumIntegerDefaultValue' + /// + [Fact] + public void OuterEnumIntegerDefaultValueTest() + { + // TODO unit test for the property 'OuterEnumIntegerDefaultValue' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index e3062e1ed4f..4663cb667de 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing EquilateralTriangle @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void EquilateralTriangleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" EquilateralTriangle - //Assert.IsInstanceOfType (instance, "variable 'instance' is a EquilateralTriangle"); + // TODO uncomment below to test "IsType" EquilateralTriangle + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index cc0f3dcefe8..9f45b4fe89d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing FileSchemaTestClass @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FileSchemaTestClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" FileSchemaTestClass - //Assert.IsInstanceOfType (instance, "variable 'instance' is a FileSchemaTestClass"); + // TODO uncomment below to test "IsType" FileSchemaTestClass + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FileTests.cs index ed014dd754a..761bb72a844 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing File @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FileInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" File - //Assert.IsInstanceOfType (instance, "variable 'instance' is a File"); + // TODO uncomment below to test "IsType" File + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FooTests.cs index 87c424c85bb..0b6ed52edbd 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Foo @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FooInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Foo - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Foo"); + // TODO uncomment below to test "IsType" Foo + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 169d4277d69..97332800e9a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing FormatTest @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FormatTestInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" FormatTest - //Assert.IsInstanceOfType (instance, "variable 'instance' is a FormatTest"); + // TODO uncomment below to test "IsType" FormatTest + //Assert.IsType(instance); } @@ -106,6 +105,14 @@ namespace Org.OpenAPITools.Test // TODO unit test for the property 'Double' } /// + /// Test the property 'Decimal' + /// + [Fact] + public void DecimalTest() + { + // TODO unit test for the property 'Decimal' + } + /// /// Test the property 'String' /// [Fact] @@ -161,6 +168,22 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'Password' } + /// + /// Test the property 'PatternWithDigits' + /// + [Fact] + public void PatternWithDigitsTest() + { + // TODO unit test for the property 'PatternWithDigits' + } + /// + /// Test the property 'PatternWithDigitsAndDelimiter' + /// + [Fact] + public void PatternWithDigitsAndDelimiterTest() + { + // TODO unit test for the property 'PatternWithDigitsAndDelimiter' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 1a6d4087801..5ea9e3ffc1d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing FruitReq @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FruitReqInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" FruitReq - //Assert.IsInstanceOfType (instance, "variable 'instance' is a FruitReq"); + // TODO uncomment below to test "IsType" FruitReq + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FruitTests.cs index b1bc9f600d0..91e069bb42f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Fruit @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void FruitInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Fruit - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Fruit"); + // TODO uncomment below to test "IsType" Fruit + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index a1bba753a58..08fb0e07a1c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing GmFruit @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void GmFruitInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" GmFruit - //Assert.IsInstanceOfType (instance, "variable 'instance' is a GmFruit"); + // TODO uncomment below to test "IsType" GmFruit + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index fd9552c597c..faa4930944b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing GrandparentAnimal @@ -51,19 +51,10 @@ namespace Org.OpenAPITools.Test [Fact] public void GrandparentAnimalInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" GrandparentAnimal - //Assert.IsInstanceOfType (instance, "variable 'instance' is a GrandparentAnimal"); + // TODO uncomment below to test "IsType" GrandparentAnimal + //Assert.IsType(instance); } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Fact] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsInstanceOf(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } /// /// Test deserialize a ChildCat from type ParentPet /// @@ -71,7 +62,16 @@ namespace Org.OpenAPITools.Test public void ChildCatDeserializeFromParentPetTest() { // TODO uncomment below to test deserialize a ChildCat from type ParentPet - //Assert.IsInstanceOf(JsonConvert.DeserializeObject(new ChildCat().ToJson())); + //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); + } + /// + /// Test deserialize a ParentPet from type GrandparentAnimal + /// + [Fact] + public void ParentPetDeserializeFromGrandparentAnimalTest() + { + // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal + //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 45cf05b3c7f..651a9f0ce30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing HasOnlyReadOnly @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void HasOnlyReadOnlyInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" HasOnlyReadOnly - //Assert.IsInstanceOfType (instance, "variable 'instance' is a HasOnlyReadOnly"); + // TODO uncomment below to test "IsType" HasOnlyReadOnly + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index d9986a9d836..857190a3334 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing HealthCheckResult @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void HealthCheckResultInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" HealthCheckResult - //Assert.IsInstanceOfType (instance, "variable 'instance' is a HealthCheckResult"); + // TODO uncomment below to test "IsType" HealthCheckResult + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs deleted file mode 100644 index d1e0f45aa34..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject1 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject1Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject1 - //private InlineObject1 instance; - - public InlineObject1Tests() - { - // TODO uncomment below to create an instance of InlineObject1 - //instance = new InlineObject1(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject1 - /// - [Fact] - public void InlineObject1InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject1 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject1"); - } - - - /// - /// Test the property 'AdditionalMetadata' - /// - [Fact] - public void AdditionalMetadataTest() - { - // TODO unit test for the property 'AdditionalMetadata' - } - /// - /// Test the property 'File' - /// - [Fact] - public void FileTest() - { - // TODO unit test for the property 'File' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs deleted file mode 100644 index 8e2c754e285..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject2 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject2Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject2 - //private InlineObject2 instance; - - public InlineObject2Tests() - { - // TODO uncomment below to create an instance of InlineObject2 - //instance = new InlineObject2(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject2 - /// - [Fact] - public void InlineObject2InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject2 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject2"); - } - - - /// - /// Test the property 'EnumFormStringArray' - /// - [Fact] - public void EnumFormStringArrayTest() - { - // TODO unit test for the property 'EnumFormStringArray' - } - /// - /// Test the property 'EnumFormString' - /// - [Fact] - public void EnumFormStringTest() - { - // TODO unit test for the property 'EnumFormString' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs deleted file mode 100644 index 6f74ebdf63c..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs +++ /dev/null @@ -1,175 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject3 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject3Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject3 - //private InlineObject3 instance; - - public InlineObject3Tests() - { - // TODO uncomment below to create an instance of InlineObject3 - //instance = new InlineObject3(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject3 - /// - [Fact] - public void InlineObject3InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject3 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject3"); - } - - - /// - /// Test the property 'Integer' - /// - [Fact] - public void IntegerTest() - { - // TODO unit test for the property 'Integer' - } - /// - /// Test the property 'Int32' - /// - [Fact] - public void Int32Test() - { - // TODO unit test for the property 'Int32' - } - /// - /// Test the property 'Int64' - /// - [Fact] - public void Int64Test() - { - // TODO unit test for the property 'Int64' - } - /// - /// Test the property 'Number' - /// - [Fact] - public void NumberTest() - { - // TODO unit test for the property 'Number' - } - /// - /// Test the property 'Float' - /// - [Fact] - public void FloatTest() - { - // TODO unit test for the property 'Float' - } - /// - /// Test the property 'Double' - /// - [Fact] - public void DoubleTest() - { - // TODO unit test for the property 'Double' - } - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - /// - /// Test the property 'PatternWithoutDelimiter' - /// - [Fact] - public void PatternWithoutDelimiterTest() - { - // TODO unit test for the property 'PatternWithoutDelimiter' - } - /// - /// Test the property 'Byte' - /// - [Fact] - public void ByteTest() - { - // TODO unit test for the property 'Byte' - } - /// - /// Test the property 'Binary' - /// - [Fact] - public void BinaryTest() - { - // TODO unit test for the property 'Binary' - } - /// - /// Test the property 'Date' - /// - [Fact] - public void DateTest() - { - // TODO unit test for the property 'Date' - } - /// - /// Test the property 'DateTime' - /// - [Fact] - public void DateTimeTest() - { - // TODO unit test for the property 'DateTime' - } - /// - /// Test the property 'Password' - /// - [Fact] - public void PasswordTest() - { - // TODO unit test for the property 'Password' - } - /// - /// Test the property 'Callback' - /// - [Fact] - public void CallbackTest() - { - // TODO unit test for the property 'Callback' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs deleted file mode 100644 index c3702936bc2..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject4 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject4Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject4 - //private InlineObject4 instance; - - public InlineObject4Tests() - { - // TODO uncomment below to create an instance of InlineObject4 - //instance = new InlineObject4(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject4 - /// - [Fact] - public void InlineObject4InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject4 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject4"); - } - - - /// - /// Test the property 'Param' - /// - [Fact] - public void ParamTest() - { - // TODO unit test for the property 'Param' - } - /// - /// Test the property 'Param2' - /// - [Fact] - public void Param2Test() - { - // TODO unit test for the property 'Param2' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs deleted file mode 100644 index d0bb987e46e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject5 - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObject5Tests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject5 - //private InlineObject5 instance; - - public InlineObject5Tests() - { - // TODO uncomment below to create an instance of InlineObject5 - //instance = new InlineObject5(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject5 - /// - [Fact] - public void InlineObject5InstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject5 - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject5"); - } - - - /// - /// Test the property 'AdditionalMetadata' - /// - [Fact] - public void AdditionalMetadataTest() - { - // TODO unit test for the property 'AdditionalMetadata' - } - /// - /// Test the property 'RequiredFile' - /// - [Fact] - public void RequiredFileTest() - { - // TODO unit test for the property 'RequiredFile' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs deleted file mode 100644 index ec9a5708f27..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineObject - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineObjectTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineObject - //private InlineObject instance; - - public InlineObjectTests() - { - // TODO uncomment below to create an instance of InlineObject - //instance = new InlineObject(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineObject - /// - [Fact] - public void InlineObjectInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineObject - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineObject"); - } - - - /// - /// Test the property 'Name' - /// - [Fact] - public void NameTest() - { - // TODO unit test for the property 'Name' - } - /// - /// Test the property 'Status' - /// - [Fact] - public void StatusTest() - { - // TODO unit test for the property 'Status' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs deleted file mode 100644 index 5c20d30a69e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -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 InlineResponseDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class InlineResponseDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for InlineResponseDefault - //private InlineResponseDefault instance; - - public InlineResponseDefaultTests() - { - // TODO uncomment below to create an instance of InlineResponseDefault - //instance = new InlineResponseDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of InlineResponseDefault - /// - [Fact] - public void InlineResponseDefaultInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" InlineResponseDefault - //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineResponseDefault"); - } - - - /// - /// Test the property 'String' - /// - [Fact] - public void StringTest() - { - // TODO unit test for the property 'String' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 00d5d08cc55..755c417cc54 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing IsoscelesTriangle @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void IsoscelesTriangleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" IsoscelesTriangle - //Assert.IsInstanceOfType (instance, "variable 'instance' is a IsoscelesTriangle"); + // TODO uncomment below to test "IsType" IsoscelesTriangle + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ListTests.cs index b779b3b13fa..2ed828d0520 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing List @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ListInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" List - //Assert.IsInstanceOfType (instance, "variable 'instance' is a List"); + // TODO uncomment below to test "IsType" List + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 76466113c58..7b46cbf0645 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Mammal @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void MammalInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Mammal - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Mammal"); + // TODO uncomment below to test "IsType" Mammal + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 2b6c365c396..20036e1c905 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing MapTest @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void MapTestInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" MapTest - //Assert.IsInstanceOfType (instance, "variable 'instance' is a MapTest"); + // TODO uncomment below to test "IsType" MapTest + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index 61cd08e2d86..f56cd715f45 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing MixedPropertiesAndAdditionalPropertiesClass @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" MixedPropertiesAndAdditionalPropertiesClass - //Assert.IsInstanceOfType (instance, "variable 'instance' is a MixedPropertiesAndAdditionalPropertiesClass"); + // TODO uncomment below to test "IsType" MixedPropertiesAndAdditionalPropertiesClass + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index 3af4348b640..e25478618f2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Model200Response @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void Model200ResponseInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Model200Response - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Model200Response"); + // TODO uncomment below to test "IsType" Model200Response + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index b4644ef02bf..24a9e263158 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ModelClient @@ -52,18 +51,18 @@ namespace Org.OpenAPITools.Test [Fact] public void ModelClientInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ModelClient - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ModelClient"); + // TODO uncomment below to test "IsType" ModelClient + //Assert.IsType(instance); } /// - /// Test the property '__Client' + /// Test the property '_Client' /// [Fact] - public void __ClientTest() + public void _ClientTest() { - // TODO unit test for the property '__Client' + // TODO unit test for the property '_Client' } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NameTests.cs index 940465046c7..c390049e66d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Name @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void NameInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Name - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Name"); + // TODO uncomment below to test "IsType" Name + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index d1c6b143431..8f00505612a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing NullableClass @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void NullableClassInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" NullableClass - //Assert.IsInstanceOfType (instance, "variable 'instance' is a NullableClass"); + // TODO uncomment below to test "IsType" NullableClass + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index b663af5b6e6..5662f91d6e6 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing NullableShape @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void NullableShapeInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" NullableShape - //Assert.IsInstanceOfType (instance, "variable 'instance' is a NullableShape"); + // TODO uncomment below to test "IsType" NullableShape + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index b166001e800..3a06cb020b2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing NumberOnly @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void NumberOnlyInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" NumberOnly - //Assert.IsInstanceOfType (instance, "variable 'instance' is a NumberOnly"); + // TODO uncomment below to test "IsType" NumberOnly + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OrderTests.cs index 43e1c8371c5..cf5c561c547 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Order @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OrderInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Order - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Order"); + // TODO uncomment below to test "IsType" Order + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 0b6b81edeb3..2efda0db59c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterComposite @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterCompositeInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterComposite - //Assert.IsInstanceOfType (instance, "variable 'instance' is a OuterComposite"); + // TODO uncomment below to test "IsType" OuterComposite + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 9c77453021f..986fff774c4 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterEnumDefaultValue @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterEnumDefaultValueInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterEnumDefaultValue - //Assert.IsInstanceOfType (instance, "variable 'instance' is a OuterEnumDefaultValue"); + // TODO uncomment below to test "IsType" OuterEnumDefaultValue + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index d797bc954cc..015d5dab945 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterEnumIntegerDefaultValue @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterEnumIntegerDefaultValueInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterEnumIntegerDefaultValue - //Assert.IsInstanceOfType (instance, "variable 'instance' is a OuterEnumIntegerDefaultValue"); + // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index acd34b46be4..385e899110a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterEnumInteger @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterEnumIntegerInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterEnumInteger - //Assert.IsInstanceOfType (instance, "variable 'instance' is a OuterEnumInteger"); + // TODO uncomment below to test "IsType" OuterEnumInteger + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index 6fc33f0d80b..f47304767b9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing OuterEnum @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void OuterEnumInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" OuterEnum - //Assert.IsInstanceOfType (instance, "variable 'instance' is a OuterEnum"); + // TODO uncomment below to test "IsType" OuterEnum + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 76db9ecf3a5..1e17568ed33 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ParentPet @@ -51,10 +51,19 @@ namespace Org.OpenAPITools.Test [Fact] public void ParentPetInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ParentPet - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ParentPet"); + // TODO uncomment below to test "IsType" ParentPet + //Assert.IsType(instance); } + /// + /// Test deserialize a ChildCat from type ParentPet + /// + [Fact] + public void ChildCatDeserializeFromParentPetTest() + { + // TODO uncomment below to test deserialize a ChildCat from type ParentPet + //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/PetTests.cs index 69ee044f537..154e66f8dfc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Pet @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void PetInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Pet - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Pet"); + // TODO uncomment below to test "IsType" Pet + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/PigTests.cs index 7497d47b784..55cf2189046 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Pig @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void PigInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Pig - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Pig"); + // TODO uncomment below to test "IsType" Pig + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 09b365a5f1d..6eef9f4c816 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing QuadrilateralInterface @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void QuadrilateralInterfaceInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" QuadrilateralInterface - //Assert.IsInstanceOfType (instance, "variable 'instance' is a QuadrilateralInterface"); + // TODO uncomment below to test "IsType" QuadrilateralInterface + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index fea00bcd6e2..26826681a47 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Quadrilateral @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void QuadrilateralInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Quadrilateral - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Quadrilateral"); + // TODO uncomment below to test "IsType" Quadrilateral + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index eaf0f7cd4d4..dc3d0fad54c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ReadOnlyFirst @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ReadOnlyFirstInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ReadOnlyFirst - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReadOnlyFirst"); + // TODO uncomment below to test "IsType" ReadOnlyFirst + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index cc0784b9b06..c8c1d6510d2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Return @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ReturnInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Return - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Return"); + // TODO uncomment below to test "IsType" Return + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 5170070bf44..04cb9f1ab6b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ScaleneTriangle @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ScaleneTriangleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ScaleneTriangle - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ScaleneTriangle"); + // TODO uncomment below to test "IsType" ScaleneTriangle + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 4ee56a550df..7bd0bc86f96 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ShapeInterface @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ShapeInterfaceInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ShapeInterface - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ShapeInterface"); + // TODO uncomment below to test "IsType" ShapeInterface + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index eb229415ae1..d0af114157c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ShapeOrNull @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ShapeOrNullInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ShapeOrNull - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ShapeOrNull"); + // TODO uncomment below to test "IsType" ShapeOrNull + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index d2c4f924620..b01bd531f85 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Shape @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ShapeInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Shape - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Shape"); + // TODO uncomment below to test "IsType" Shape + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index db78f9c542d..6648e980928 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing SimpleQuadrilateral @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void SimpleQuadrilateralInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" SimpleQuadrilateral - //Assert.IsInstanceOfType (instance, "variable 'instance' is a SimpleQuadrilateral"); + // TODO uncomment below to test "IsType" SimpleQuadrilateral + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 3c078f18a41..0f0e1ff12a9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing SpecialModelName @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void SpecialModelNameInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" SpecialModelName - //Assert.IsInstanceOfType (instance, "variable 'instance' is a SpecialModelName"); + // TODO uncomment below to test "IsType" SpecialModelName + //Assert.IsType(instance); } @@ -65,6 +64,14 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'SpecialPropertyName' } + /// + /// Test the property '_SpecialModelName' + /// + [Fact] + public void _SpecialModelNameTest() + { + // TODO unit test for the property '_SpecialModelName' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TagTests.cs index f7249595357..6d56232d0a7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Tag @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void TagInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Tag - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Tag"); + // TODO uncomment below to test "IsType" Tag + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index f75f2a14a6e..fba65470bee 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing TriangleInterface @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void TriangleInterfaceInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" TriangleInterface - //Assert.IsInstanceOfType (instance, "variable 'instance' is a TriangleInterface"); + // TODO uncomment below to test "IsType" TriangleInterface + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index 2f3f3d284fe..bdaab0b4796 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Triangle @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void TriangleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Triangle - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Triangle"); + // TODO uncomment below to test "IsType" Triangle + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs deleted file mode 100644 index 06a678c0ef2..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs +++ /dev/null @@ -1,103 +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 Xunit; - -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 TypeHolderDefault - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class TypeHolderDefaultTests : IDisposable - { - // TODO uncomment below to declare an instance variable for TypeHolderDefault - //private TypeHolderDefault instance; - - public TypeHolderDefaultTests() - { - // TODO uncomment below to create an instance of TypeHolderDefault - //instance = new TypeHolderDefault(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of TypeHolderDefault - /// - [Fact] - public void TypeHolderDefaultInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" TypeHolderDefault - //Assert.IsInstanceOfType (instance, "variable 'instance' is a TypeHolderDefault"); - } - - - /// - /// Test the property 'StringItem' - /// - [Fact] - public void StringItemTest() - { - // TODO unit test for the property 'StringItem' - } - /// - /// Test the property 'NumberItem' - /// - [Fact] - public void NumberItemTest() - { - // TODO unit test for the property 'NumberItem' - } - /// - /// Test the property 'IntegerItem' - /// - [Fact] - public void IntegerItemTest() - { - // TODO unit test for the property 'IntegerItem' - } - /// - /// Test the property 'BoolItem' - /// - [Fact] - public void BoolItemTest() - { - // TODO unit test for the property 'BoolItem' - } - /// - /// Test the property 'ArrayItem' - /// - [Fact] - public void ArrayItemTest() - { - // TODO unit test for the property 'ArrayItem' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs deleted file mode 100644 index 0b48fb2c73b..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs +++ /dev/null @@ -1,103 +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 Xunit; - -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 TypeHolderExample - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class TypeHolderExampleTests : IDisposable - { - // TODO uncomment below to declare an instance variable for TypeHolderExample - //private TypeHolderExample instance; - - public TypeHolderExampleTests() - { - // TODO uncomment below to create an instance of TypeHolderExample - //instance = new TypeHolderExample(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of TypeHolderExample - /// - [Fact] - public void TypeHolderExampleInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" TypeHolderExample - //Assert.IsInstanceOfType (instance, "variable 'instance' is a TypeHolderExample"); - } - - - /// - /// Test the property 'StringItem' - /// - [Fact] - public void StringItemTest() - { - // TODO unit test for the property 'StringItem' - } - /// - /// Test the property 'NumberItem' - /// - [Fact] - public void NumberItemTest() - { - // TODO unit test for the property 'NumberItem' - } - /// - /// Test the property 'IntegerItem' - /// - [Fact] - public void IntegerItemTest() - { - // TODO unit test for the property 'IntegerItem' - } - /// - /// Test the property 'BoolItem' - /// - [Fact] - public void BoolItemTest() - { - // TODO unit test for the property 'BoolItem' - } - /// - /// Test the property 'ArrayItem' - /// - [Fact] - public void ArrayItemTest() - { - // TODO unit test for the property 'ArrayItem' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/UserTests.cs index 9a86e5f0fae..a7b095e4c28 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -1,10 +1,9 @@ -/* +/* * 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 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing User @@ -52,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void UserInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" User - //Assert.IsInstanceOfType (instance, "variable 'instance' is a User"); + // TODO uncomment below to test "IsType" User + //Assert.IsType(instance); } @@ -121,6 +120,38 @@ namespace Org.OpenAPITools.Test { // TODO unit test for the property 'UserStatus' } + /// + /// Test the property 'ObjectWithNoDeclaredProps' + /// + [Fact] + public void ObjectWithNoDeclaredPropsTest() + { + // TODO unit test for the property 'ObjectWithNoDeclaredProps' + } + /// + /// Test the property 'ObjectWithNoDeclaredPropsNullable' + /// + [Fact] + public void ObjectWithNoDeclaredPropsNullableTest() + { + // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' + } + /// + /// Test the property 'AnyTypeProp' + /// + [Fact] + public void AnyTypePropTest() + { + // TODO unit test for the property 'AnyTypeProp' + } + /// + /// Test the property 'AnyTypePropNullable' + /// + [Fact] + public void AnyTypePropNullableTest() + { + // TODO unit test for the property 'AnyTypePropNullable' + } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index d6d8d009a0b..09610791943 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Whale @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void WhaleInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Whale - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Whale"); + // TODO uncomment below to test "IsType" Whale + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs deleted file mode 100644 index 2e14da3de26..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/XmlItemTests.cs +++ /dev/null @@ -1,295 +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 Xunit; - -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 XmlItem - /// - /// - /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). - /// Please update the test case below to test the model. - /// - public class XmlItemTests : IDisposable - { - // TODO uncomment below to declare an instance variable for XmlItem - //private XmlItem instance; - - public XmlItemTests() - { - // TODO uncomment below to create an instance of XmlItem - //instance = new XmlItem(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of XmlItem - /// - [Fact] - public void XmlItemInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" XmlItem - //Assert.IsInstanceOfType (instance, "variable 'instance' is a XmlItem"); - } - - - /// - /// Test the property 'AttributeString' - /// - [Fact] - public void AttributeStringTest() - { - // TODO unit test for the property 'AttributeString' - } - /// - /// Test the property 'AttributeNumber' - /// - [Fact] - public void AttributeNumberTest() - { - // TODO unit test for the property 'AttributeNumber' - } - /// - /// Test the property 'AttributeInteger' - /// - [Fact] - public void AttributeIntegerTest() - { - // TODO unit test for the property 'AttributeInteger' - } - /// - /// Test the property 'AttributeBoolean' - /// - [Fact] - public void AttributeBooleanTest() - { - // TODO unit test for the property 'AttributeBoolean' - } - /// - /// Test the property 'WrappedArray' - /// - [Fact] - public void WrappedArrayTest() - { - // TODO unit test for the property 'WrappedArray' - } - /// - /// Test the property 'NameString' - /// - [Fact] - public void NameStringTest() - { - // TODO unit test for the property 'NameString' - } - /// - /// Test the property 'NameNumber' - /// - [Fact] - public void NameNumberTest() - { - // TODO unit test for the property 'NameNumber' - } - /// - /// Test the property 'NameInteger' - /// - [Fact] - public void NameIntegerTest() - { - // TODO unit test for the property 'NameInteger' - } - /// - /// Test the property 'NameBoolean' - /// - [Fact] - public void NameBooleanTest() - { - // TODO unit test for the property 'NameBoolean' - } - /// - /// Test the property 'NameArray' - /// - [Fact] - public void NameArrayTest() - { - // TODO unit test for the property 'NameArray' - } - /// - /// Test the property 'NameWrappedArray' - /// - [Fact] - public void NameWrappedArrayTest() - { - // TODO unit test for the property 'NameWrappedArray' - } - /// - /// Test the property 'PrefixString' - /// - [Fact] - public void PrefixStringTest() - { - // TODO unit test for the property 'PrefixString' - } - /// - /// Test the property 'PrefixNumber' - /// - [Fact] - public void PrefixNumberTest() - { - // TODO unit test for the property 'PrefixNumber' - } - /// - /// Test the property 'PrefixInteger' - /// - [Fact] - public void PrefixIntegerTest() - { - // TODO unit test for the property 'PrefixInteger' - } - /// - /// Test the property 'PrefixBoolean' - /// - [Fact] - public void PrefixBooleanTest() - { - // TODO unit test for the property 'PrefixBoolean' - } - /// - /// Test the property 'PrefixArray' - /// - [Fact] - public void PrefixArrayTest() - { - // TODO unit test for the property 'PrefixArray' - } - /// - /// Test the property 'PrefixWrappedArray' - /// - [Fact] - public void PrefixWrappedArrayTest() - { - // TODO unit test for the property 'PrefixWrappedArray' - } - /// - /// Test the property 'NamespaceString' - /// - [Fact] - public void NamespaceStringTest() - { - // TODO unit test for the property 'NamespaceString' - } - /// - /// Test the property 'NamespaceNumber' - /// - [Fact] - public void NamespaceNumberTest() - { - // TODO unit test for the property 'NamespaceNumber' - } - /// - /// Test the property 'NamespaceInteger' - /// - [Fact] - public void NamespaceIntegerTest() - { - // TODO unit test for the property 'NamespaceInteger' - } - /// - /// Test the property 'NamespaceBoolean' - /// - [Fact] - public void NamespaceBooleanTest() - { - // TODO unit test for the property 'NamespaceBoolean' - } - /// - /// Test the property 'NamespaceArray' - /// - [Fact] - public void NamespaceArrayTest() - { - // TODO unit test for the property 'NamespaceArray' - } - /// - /// Test the property 'NamespaceWrappedArray' - /// - [Fact] - public void NamespaceWrappedArrayTest() - { - // TODO unit test for the property 'NamespaceWrappedArray' - } - /// - /// Test the property 'PrefixNsString' - /// - [Fact] - public void PrefixNsStringTest() - { - // TODO unit test for the property 'PrefixNsString' - } - /// - /// Test the property 'PrefixNsNumber' - /// - [Fact] - public void PrefixNsNumberTest() - { - // TODO unit test for the property 'PrefixNsNumber' - } - /// - /// Test the property 'PrefixNsInteger' - /// - [Fact] - public void PrefixNsIntegerTest() - { - // TODO unit test for the property 'PrefixNsInteger' - } - /// - /// Test the property 'PrefixNsBoolean' - /// - [Fact] - public void PrefixNsBooleanTest() - { - // TODO unit test for the property 'PrefixNsBoolean' - } - /// - /// Test the property 'PrefixNsArray' - /// - [Fact] - public void PrefixNsArrayTest() - { - // TODO unit test for the property 'PrefixNsArray' - } - /// - /// Test the property 'PrefixNsWrappedArray' - /// - [Fact] - public void PrefixNsWrappedArrayTest() - { - // TODO unit test for the property 'PrefixNsWrappedArray' - } - - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index 84ebb849aa0..f44e9213140 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -20,7 +20,7 @@ using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Zebra @@ -51,8 +51,8 @@ namespace Org.OpenAPITools.Test [Fact] public void ZebraInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Zebra - //Assert.IsInstanceOfType (instance, "variable 'instance' is a Zebra"); + // TODO uncomment below to test "IsType" Zebra + //Assert.IsType(instance); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesAnyType.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesAnyType.cs deleted file mode 100644 index fe9de3aa27c..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesAnyType.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// AdditionalPropertiesAnyType - /// - [DataContract] - public partial class AdditionalPropertiesAnyType : Dictionary, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - public AdditionalPropertiesAnyType(string name = default(string)) : base() - { - this.Name = name; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalPropertiesAnyType {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).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 OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesAnyType).AreEqual; - } - - /// - /// Returns true if AdditionalPropertiesAnyType instances are equal - /// - /// Instance of AdditionalPropertiesAnyType to be compared - /// Boolean - public bool Equals(AdditionalPropertiesAnyType input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesArray.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesArray.cs deleted file mode 100644 index 46e6973df03..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesArray.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// AdditionalPropertiesArray - /// - [DataContract] - public partial class AdditionalPropertiesArray : Dictionary, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - public AdditionalPropertiesArray(string name = default(string)) : base() - { - this.Name = name; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalPropertiesArray {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).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 OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesArray).AreEqual; - } - - /// - /// Returns true if AdditionalPropertiesArray instances are equal - /// - /// Instance of AdditionalPropertiesArray to be compared - /// Boolean - public bool Equals(AdditionalPropertiesArray input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesBoolean.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesBoolean.cs deleted file mode 100644 index e21c5085cef..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesBoolean.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// AdditionalPropertiesBoolean - /// - [DataContract] - public partial class AdditionalPropertiesBoolean : Dictionary, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - public AdditionalPropertiesBoolean(string name = default(string)) : base() - { - this.Name = name; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalPropertiesBoolean {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).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 OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesBoolean).AreEqual; - } - - /// - /// Returns true if AdditionalPropertiesBoolean instances are equal - /// - /// Instance of AdditionalPropertiesBoolean to be compared - /// Boolean - public bool Equals(AdditionalPropertiesBoolean input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesInteger.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesInteger.cs deleted file mode 100644 index ceff9d7354e..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesInteger.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// AdditionalPropertiesInteger - /// - [DataContract] - public partial class AdditionalPropertiesInteger : Dictionary, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - public AdditionalPropertiesInteger(string name = default(string)) : base() - { - this.Name = name; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalPropertiesInteger {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).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 OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesInteger).AreEqual; - } - - /// - /// Returns true if AdditionalPropertiesInteger instances are equal - /// - /// Instance of AdditionalPropertiesInteger to be compared - /// Boolean - public bool Equals(AdditionalPropertiesInteger input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesNumber.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesNumber.cs deleted file mode 100644 index db37cf7ce65..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesNumber.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// AdditionalPropertiesNumber - /// - [DataContract] - public partial class AdditionalPropertiesNumber : Dictionary, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - public AdditionalPropertiesNumber(string name = default(string)) : base() - { - this.Name = name; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalPropertiesNumber {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).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 OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesNumber).AreEqual; - } - - /// - /// Returns true if AdditionalPropertiesNumber instances are equal - /// - /// Instance of AdditionalPropertiesNumber to be compared - /// Boolean - public bool Equals(AdditionalPropertiesNumber input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesObject.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesObject.cs deleted file mode 100644 index ee5b67b2ebd..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesObject.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// AdditionalPropertiesObject - /// - [DataContract] - public partial class AdditionalPropertiesObject : Dictionary>, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - public AdditionalPropertiesObject(string name = default(string)) : base() - { - this.Name = name; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalPropertiesObject {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).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 OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesObject).AreEqual; - } - - /// - /// Returns true if AdditionalPropertiesObject instances are equal - /// - /// Instance of AdditionalPropertiesObject to be compared - /// Boolean - public bool Equals(AdditionalPropertiesObject input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesString.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesString.cs deleted file mode 100644 index 29dbad58cac..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/AdditionalPropertiesString.cs +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// AdditionalPropertiesString - /// - [DataContract] - public partial class AdditionalPropertiesString : Dictionary, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - public AdditionalPropertiesString(string name = default(string)) : base() - { - this.Name = name; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdditionalPropertiesString {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).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 OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesString).AreEqual; - } - - /// - /// Returns true if AdditionalPropertiesString instances are equal - /// - /// Instance of AdditionalPropertiesString to be compared - /// Boolean - public bool Equals(AdditionalPropertiesString input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/BigCat.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/BigCat.cs deleted file mode 100644 index 2fd960256c4..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/BigCat.cs +++ /dev/null @@ -1,158 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// BigCat - /// - [DataContract] - public partial class BigCat : Cat, IEquatable, IValidatableObject - { - /// - /// Defines Kind - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum KindEnum - { - /// - /// Enum Lions for value: lions - /// - [EnumMember(Value = "lions")] - Lions = 1, - - /// - /// Enum Tigers for value: tigers - /// - [EnumMember(Value = "tigers")] - Tigers = 2, - - /// - /// Enum Leopards for value: leopards - /// - [EnumMember(Value = "leopards")] - Leopards = 3, - - /// - /// Enum Jaguars for value: jaguars - /// - [EnumMember(Value = "jaguars")] - Jaguars = 4 - - } - - /// - /// Gets or Sets Kind - /// - [DataMember(Name="kind", EmitDefaultValue=false)] - public KindEnum? Kind { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BigCat() { } - /// - /// Initializes a new instance of the class. - /// - /// kind. - /// className (required). - /// color (default to "red"). - /// declawed. - public BigCat(KindEnum? kind = default(KindEnum?), string className = default(string), string color = "red", bool declawed = default(bool)) : base(declawed) - { - this.Kind = kind; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BigCat {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override 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 OpenAPIClientUtils.compareLogic.Compare(this, input as BigCat).AreEqual; - } - - /// - /// Returns true if BigCat instances are equal - /// - /// Instance of BigCat to be compared - /// Boolean - public bool Equals(BigCat input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - hashCode = hashCode * 59 + this.Kind.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/BigCatAllOf.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/BigCatAllOf.cs deleted file mode 100644 index 5244a8f3488..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/BigCatAllOf.cs +++ /dev/null @@ -1,148 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// BigCatAllOf - /// - [DataContract] - public partial class BigCatAllOf : IEquatable, IValidatableObject - { - /// - /// Defines Kind - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum KindEnum - { - /// - /// Enum Lions for value: lions - /// - [EnumMember(Value = "lions")] - Lions = 1, - - /// - /// Enum Tigers for value: tigers - /// - [EnumMember(Value = "tigers")] - Tigers = 2, - - /// - /// Enum Leopards for value: leopards - /// - [EnumMember(Value = "leopards")] - Leopards = 3, - - /// - /// Enum Jaguars for value: jaguars - /// - [EnumMember(Value = "jaguars")] - Jaguars = 4 - - } - - /// - /// Gets or Sets Kind - /// - [DataMember(Name="kind", EmitDefaultValue=false)] - public KindEnum? Kind { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// kind. - public BigCatAllOf(KindEnum? kind = default(KindEnum?)) - { - this.Kind = kind; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BigCatAllOf {\n"); - sb.Append(" Kind: ").Append(Kind).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual 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 OpenAPIClientUtils.compareLogic.Compare(this, input as BigCatAllOf).AreEqual; - } - - /// - /// Returns true if BigCatAllOf instances are equal - /// - /// Instance of BigCatAllOf to be compared - /// Boolean - public bool Equals(BigCatAllOf input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = hashCode * 59 + this.Kind.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject.cs deleted file mode 100644 index c7a72be0c93..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject.cs +++ /dev/null @@ -1,131 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject - /// - [DataContract(Name = "inline_object")] - public partial class InlineObject : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Updated name of the pet. - /// Updated status of the pet. - public InlineObject(string name = default(string), string status = default(string)) - { - this.Name = name; - this.Status = status; - } - - /// - /// Updated name of the pet - /// - /// Updated name of the pet - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - - /// - /// Updated status of the pet - /// - /// Updated status of the pet - [DataMember(Name = "status", EmitDefaultValue = false)] - public string Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject).AreEqual; - } - - /// - /// Returns true if InlineObject instances are equal - /// - /// Instance of InlineObject to be compared - /// Boolean - public bool Equals(InlineObject input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject1.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject1.cs deleted file mode 100644 index e887fa228f4..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject1.cs +++ /dev/null @@ -1,131 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject1 - /// - [DataContract(Name = "inline_object_1")] - public partial class InlineObject1 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// Additional data to pass to server. - /// file to upload. - public InlineObject1(string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) - { - this.AdditionalMetadata = additionalMetadata; - this.File = file; - } - - /// - /// Additional data to pass to server - /// - /// Additional data to pass to server - [DataMember(Name = "additionalMetadata", EmitDefaultValue = false)] - public string AdditionalMetadata { get; set; } - - /// - /// file to upload - /// - /// file to upload - [DataMember(Name = "file", EmitDefaultValue = false)] - public System.IO.Stream File { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject1 {\n"); - sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n"); - sb.Append(" File: ").Append(File).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject1).AreEqual; - } - - /// - /// Returns true if InlineObject1 instances are equal - /// - /// Instance of InlineObject1 to be compared - /// Boolean - public bool Equals(InlineObject1 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AdditionalMetadata != null) - hashCode = hashCode * 59 + this.AdditionalMetadata.GetHashCode(); - if (this.File != null) - hashCode = hashCode * 59 + this.File.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject2.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject2.cs deleted file mode 100644 index f0cf3a5071d..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject2.cs +++ /dev/null @@ -1,175 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject2 - /// - [DataContract(Name = "inline_object_2")] - public partial class InlineObject2 : IEquatable, IValidatableObject - { - /// - /// Defines EnumFormStringArray - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum EnumFormStringArrayEnum - { - /// - /// Enum GreaterThan for value: > - /// - [EnumMember(Value = ">")] - GreaterThan = 1, - - /// - /// Enum Dollar for value: $ - /// - [EnumMember(Value = "$")] - Dollar = 2 - - } - - - /// - /// Form parameter enum test (string array) - /// - /// Form parameter enum test (string array) - [DataMember(Name = "enum_form_string_array", EmitDefaultValue = false)] - public List EnumFormStringArray { get; set; } - /// - /// Form parameter enum test (string) - /// - /// Form parameter enum test (string) - [JsonConverter(typeof(StringEnumConverter))] - public enum EnumFormStringEnum - { - /// - /// Enum Abc for value: _abc - /// - [EnumMember(Value = "_abc")] - Abc = 1, - - /// - /// Enum Efg for value: -efg - /// - [EnumMember(Value = "-efg")] - Efg = 2, - - /// - /// Enum Xyz for value: (xyz) - /// - [EnumMember(Value = "(xyz)")] - Xyz = 3 - - } - - /// - /// Form parameter enum test (string) - /// - /// Form parameter enum test (string) - [DataMember(Name = "enum_form_string", EmitDefaultValue = false)] - public EnumFormStringEnum? EnumFormString { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// Form parameter enum test (string array). - /// Form parameter enum test (string) (default to EnumFormStringEnum.Efg). - public InlineObject2(List enumFormStringArray = default(List), EnumFormStringEnum? enumFormString = EnumFormStringEnum.Efg) - { - this.EnumFormStringArray = enumFormStringArray; - this.EnumFormString = enumFormString; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject2 {\n"); - sb.Append(" EnumFormStringArray: ").Append(EnumFormStringArray).Append("\n"); - sb.Append(" EnumFormString: ").Append(EnumFormString).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject2).AreEqual; - } - - /// - /// Returns true if InlineObject2 instances are equal - /// - /// Instance of InlineObject2 to be compared - /// Boolean - public bool Equals(InlineObject2 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = hashCode * 59 + this.EnumFormStringArray.GetHashCode(); - hashCode = hashCode * 59 + this.EnumFormString.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject3.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject3.cs deleted file mode 100644 index 8e94dc81146..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject3.cs +++ /dev/null @@ -1,357 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject3 - /// - [DataContract(Name = "inline_object_3")] - public partial class InlineObject3 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject3() { } - /// - /// Initializes a new instance of the class. - /// - /// None. - /// None. - /// None. - /// None (required). - /// None. - /// None (required). - /// None. - /// None (required). - /// None (required). - /// None. - /// None. - /// None (default to "2010-02-01T10:20:10.111110+01:00"). - /// None. - /// None. - public InlineObject3(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), string _string = default(string), string patternWithoutDelimiter = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string)) - { - this.Number = number; - this.Double = _double; - // to ensure "patternWithoutDelimiter" is required (not null) - this.PatternWithoutDelimiter = patternWithoutDelimiter ?? throw new ArgumentNullException("patternWithoutDelimiter is a required property for InlineObject3 and cannot be null"); - // to ensure "_byte" is required (not null) - this.Byte = _byte ?? throw new ArgumentNullException("_byte is a required property for InlineObject3 and cannot be null"); - this.Integer = integer; - this.Int32 = int32; - this.Int64 = int64; - this.Float = _float; - this.String = _string; - this.Binary = binary; - this.Date = date; - this.DateTime = dateTime; - this.Password = password; - this.Callback = callback; - } - - /// - /// None - /// - /// None - [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = false)] - public decimal Number { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "double", IsRequired = true, EmitDefaultValue = false)] - public double Double { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "pattern_without_delimiter", IsRequired = true, EmitDefaultValue = false)] - public string PatternWithoutDelimiter { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "byte", IsRequired = true, EmitDefaultValue = false)] - public byte[] Byte { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "binary", EmitDefaultValue = false)] - public System.IO.Stream Binary { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "date", EmitDefaultValue = false)] - [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime Date { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "password", EmitDefaultValue = false)] - public string Password { get; set; } - - /// - /// None - /// - /// None - [DataMember(Name = "callback", EmitDefaultValue = false)] - public string Callback { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject3 {\n"); - sb.Append(" Integer: ").Append(Integer).Append("\n"); - sb.Append(" Int32: ").Append(Int32).Append("\n"); - sb.Append(" Int64: ").Append(Int64).Append("\n"); - sb.Append(" Number: ").Append(Number).Append("\n"); - sb.Append(" Float: ").Append(Float).Append("\n"); - sb.Append(" Double: ").Append(Double).Append("\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append(" PatternWithoutDelimiter: ").Append(PatternWithoutDelimiter).Append("\n"); - sb.Append(" Byte: ").Append(Byte).Append("\n"); - sb.Append(" Binary: ").Append(Binary).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" DateTime: ").Append(DateTime).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Callback: ").Append(Callback).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject3).AreEqual; - } - - /// - /// Returns true if InlineObject3 instances are equal - /// - /// Instance of InlineObject3 to be compared - /// Boolean - public bool Equals(InlineObject3 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = hashCode * 59 + this.Integer.GetHashCode(); - hashCode = hashCode * 59 + this.Int32.GetHashCode(); - hashCode = hashCode * 59 + this.Int64.GetHashCode(); - hashCode = hashCode * 59 + this.Number.GetHashCode(); - hashCode = hashCode * 59 + this.Float.GetHashCode(); - hashCode = hashCode * 59 + this.Double.GetHashCode(); - if (this.String != null) - hashCode = hashCode * 59 + this.String.GetHashCode(); - if (this.PatternWithoutDelimiter != null) - hashCode = hashCode * 59 + this.PatternWithoutDelimiter.GetHashCode(); - if (this.Byte != null) - hashCode = hashCode * 59 + this.Byte.GetHashCode(); - if (this.Binary != null) - hashCode = hashCode * 59 + this.Binary.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.DateTime != null) - hashCode = hashCode * 59 + this.DateTime.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Callback != null) - hashCode = hashCode * 59 + this.Callback.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - // Integer (int) maximum - if(this.Integer > (int)100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); - } - - // Integer (int) minimum - if(this.Integer < (int)10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); - } - - // Int32 (int) maximum - if(this.Int32 > (int)200) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); - } - - // Int32 (int) minimum - if(this.Int32 < (int)20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); - } - - // Number (decimal) maximum - if(this.Number > (decimal)543.2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" }); - } - - // Number (decimal) minimum - if(this.Number < (decimal)32.1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); - } - - // Float (float) maximum - if(this.Float > (float)987.6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); - } - - // Double (double) maximum - if(this.Double > (double)123.4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); - } - - // Double (double) minimum - if(this.Double < (double)67.8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); - } - - // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (false == regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } - - // PatternWithoutDelimiter (string) pattern - Regex regexPatternWithoutDelimiter = new Regex(@"^[A-Z].*", RegexOptions.CultureInvariant); - if (false == regexPatternWithoutDelimiter.Match(this.PatternWithoutDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithoutDelimiter, must match a pattern of " + regexPatternWithoutDelimiter, new [] { "PatternWithoutDelimiter" }); - } - - // Password (string) maxLength - if(this.Password != null && this.Password.Length > 64) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be less than 64.", new [] { "Password" }); - } - - // Password (string) minLength - if(this.Password != null && this.Password.Length < 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be greater than 10.", new [] { "Password" }); - } - - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject4.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject4.cs deleted file mode 100644 index eef39beea9b..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject4.cs +++ /dev/null @@ -1,138 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject4 - /// - [DataContract(Name = "inline_object_4")] - public partial class InlineObject4 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject4() { } - /// - /// Initializes a new instance of the class. - /// - /// field1 (required). - /// field2 (required). - public InlineObject4(string param = default(string), string param2 = default(string)) - { - // to ensure "param" is required (not null) - this.Param = param ?? throw new ArgumentNullException("param is a required property for InlineObject4 and cannot be null"); - // to ensure "param2" is required (not null) - this.Param2 = param2 ?? throw new ArgumentNullException("param2 is a required property for InlineObject4 and cannot be null"); - } - - /// - /// field1 - /// - /// field1 - [DataMember(Name = "param", IsRequired = true, EmitDefaultValue = false)] - public string Param { get; set; } - - /// - /// field2 - /// - /// field2 - [DataMember(Name = "param2", IsRequired = true, EmitDefaultValue = false)] - public string Param2 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject4 {\n"); - sb.Append(" Param: ").Append(Param).Append("\n"); - sb.Append(" Param2: ").Append(Param2).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject4).AreEqual; - } - - /// - /// Returns true if InlineObject4 instances are equal - /// - /// Instance of InlineObject4 to be compared - /// Boolean - public bool Equals(InlineObject4 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Param != null) - hashCode = hashCode * 59 + this.Param.GetHashCode(); - if (this.Param2 != null) - hashCode = hashCode * 59 + this.Param2.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject5.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject5.cs deleted file mode 100644 index d88814fa4b6..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineObject5.cs +++ /dev/null @@ -1,137 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineObject5 - /// - [DataContract(Name = "inline_object_5")] - public partial class InlineObject5 : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected InlineObject5() { } - /// - /// Initializes a new instance of the class. - /// - /// Additional data to pass to server. - /// file to upload (required). - public InlineObject5(string additionalMetadata = default(string), System.IO.Stream requiredFile = default(System.IO.Stream)) - { - // to ensure "requiredFile" is required (not null) - this.RequiredFile = requiredFile ?? throw new ArgumentNullException("requiredFile is a required property for InlineObject5 and cannot be null"); - this.AdditionalMetadata = additionalMetadata; - } - - /// - /// Additional data to pass to server - /// - /// Additional data to pass to server - [DataMember(Name = "additionalMetadata", EmitDefaultValue = false)] - public string AdditionalMetadata { get; set; } - - /// - /// file to upload - /// - /// file to upload - [DataMember(Name = "requiredFile", IsRequired = true, EmitDefaultValue = false)] - public System.IO.Stream RequiredFile { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InlineObject5 {\n"); - sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n"); - sb.Append(" RequiredFile: ").Append(RequiredFile).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject5).AreEqual; - } - - /// - /// Returns true if InlineObject5 instances are equal - /// - /// Instance of InlineObject5 to be compared - /// Boolean - public bool Equals(InlineObject5 input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AdditionalMetadata != null) - hashCode = hashCode * 59 + this.AdditionalMetadata.GetHashCode(); - if (this.RequiredFile != null) - hashCode = hashCode * 59 + this.RequiredFile.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineResponseDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineResponseDefault.cs deleted file mode 100644 index 755f9aebc70..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/InlineResponseDefault.cs +++ /dev/null @@ -1,120 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// InlineResponseDefault - /// - [DataContract(Name = "inline_response_default")] - public partial class InlineResponseDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _string. - public InlineResponseDefault(Foo _string = default(Foo)) - { - this.String = _string; - } - - /// - /// Gets or Sets String - /// - [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class InlineResponseDefault {\n"); - sb.Append(" String: ").Append(String).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual; - } - - /// - /// Returns true if InlineResponseDefault instances are equal - /// - /// Instance of InlineResponseDefault to be compared - /// Boolean - public bool Equals(InlineResponseDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.String != null) - { - hashCode = (hashCode * 59) + this.String.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderDefault.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderDefault.cs deleted file mode 100644 index c7034a2edda..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderDefault.cs +++ /dev/null @@ -1,166 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// TypeHolderDefault - /// - [DataContract] - public partial class TypeHolderDefault : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected TypeHolderDefault() { } - /// - /// Initializes a new instance of the class. - /// - /// stringItem (required) (default to "what"). - /// numberItem (required). - /// integerItem (required). - /// boolItem (required) (default to true). - /// arrayItem (required). - public TypeHolderDefault(string stringItem = "what", decimal numberItem = default(decimal), int integerItem = default(int), bool boolItem = true, List arrayItem = default(List)) - { - // to ensure "stringItem" is required (not null) - this.StringItem = stringItem ?? throw new ArgumentNullException("stringItem is a required property for TypeHolderDefault and cannot be null"); - this.NumberItem = numberItem; - this.IntegerItem = integerItem; - this.BoolItem = boolItem; - // to ensure "arrayItem" is required (not null) - this.ArrayItem = arrayItem ?? throw new ArgumentNullException("arrayItem is a required property for TypeHolderDefault and cannot be null"); - } - - /// - /// Gets or Sets StringItem - /// - [DataMember(Name="string_item", EmitDefaultValue=false)] - public string StringItem { get; set; } - - /// - /// Gets or Sets NumberItem - /// - [DataMember(Name="number_item", EmitDefaultValue=false)] - public decimal NumberItem { get; set; } - - /// - /// Gets or Sets IntegerItem - /// - [DataMember(Name="integer_item", EmitDefaultValue=false)] - public int IntegerItem { get; set; } - - /// - /// Gets or Sets BoolItem - /// - [DataMember(Name="bool_item", EmitDefaultValue=false)] - public bool BoolItem { get; set; } - - /// - /// Gets or Sets ArrayItem - /// - [DataMember(Name="array_item", EmitDefaultValue=false)] - public List ArrayItem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TypeHolderDefault {\n"); - sb.Append(" StringItem: ").Append(StringItem).Append("\n"); - sb.Append(" NumberItem: ").Append(NumberItem).Append("\n"); - sb.Append(" IntegerItem: ").Append(IntegerItem).Append("\n"); - sb.Append(" BoolItem: ").Append(BoolItem).Append("\n"); - sb.Append(" ArrayItem: ").Append(ArrayItem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual 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 OpenAPIClientUtils.compareLogic.Compare(this, input as TypeHolderDefault).AreEqual; - } - - /// - /// Returns true if TypeHolderDefault instances are equal - /// - /// Instance of TypeHolderDefault to be compared - /// Boolean - public bool Equals(TypeHolderDefault input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StringItem != null) - hashCode = hashCode * 59 + this.StringItem.GetHashCode(); - hashCode = hashCode * 59 + this.NumberItem.GetHashCode(); - hashCode = hashCode * 59 + this.IntegerItem.GetHashCode(); - hashCode = hashCode * 59 + this.BoolItem.GetHashCode(); - if (this.ArrayItem != null) - hashCode = hashCode * 59 + this.ArrayItem.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderExample.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderExample.cs deleted file mode 100644 index e69ce97ac71..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderExample.cs +++ /dev/null @@ -1,176 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// TypeHolderExample - /// - [DataContract] - public partial class TypeHolderExample : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected TypeHolderExample() { } - /// - /// Initializes a new instance of the class. - /// - /// stringItem (required). - /// numberItem (required). - /// floatItem (required). - /// integerItem (required). - /// boolItem (required). - /// arrayItem (required). - public TypeHolderExample(string stringItem = default(string), decimal numberItem = default(decimal), float floatItem = default(float), int integerItem = default(int), bool boolItem = default(bool), List arrayItem = default(List)) - { - // to ensure "stringItem" is required (not null) - this.StringItem = stringItem ?? throw new ArgumentNullException("stringItem is a required property for TypeHolderExample and cannot be null"); - this.NumberItem = numberItem; - this.FloatItem = floatItem; - this.IntegerItem = integerItem; - this.BoolItem = boolItem; - // to ensure "arrayItem" is required (not null) - this.ArrayItem = arrayItem ?? throw new ArgumentNullException("arrayItem is a required property for TypeHolderExample and cannot be null"); - } - - /// - /// Gets or Sets StringItem - /// - [DataMember(Name="string_item", EmitDefaultValue=false)] - public string StringItem { get; set; } - - /// - /// Gets or Sets NumberItem - /// - [DataMember(Name="number_item", EmitDefaultValue=false)] - public decimal NumberItem { get; set; } - - /// - /// Gets or Sets FloatItem - /// - [DataMember(Name="float_item", EmitDefaultValue=false)] - public float FloatItem { get; set; } - - /// - /// Gets or Sets IntegerItem - /// - [DataMember(Name="integer_item", EmitDefaultValue=false)] - public int IntegerItem { get; set; } - - /// - /// Gets or Sets BoolItem - /// - [DataMember(Name="bool_item", EmitDefaultValue=false)] - public bool BoolItem { get; set; } - - /// - /// Gets or Sets ArrayItem - /// - [DataMember(Name="array_item", EmitDefaultValue=false)] - public List ArrayItem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TypeHolderExample {\n"); - sb.Append(" StringItem: ").Append(StringItem).Append("\n"); - sb.Append(" NumberItem: ").Append(NumberItem).Append("\n"); - sb.Append(" FloatItem: ").Append(FloatItem).Append("\n"); - sb.Append(" IntegerItem: ").Append(IntegerItem).Append("\n"); - sb.Append(" BoolItem: ").Append(BoolItem).Append("\n"); - sb.Append(" ArrayItem: ").Append(ArrayItem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual 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 OpenAPIClientUtils.compareLogic.Compare(this, input as TypeHolderExample).AreEqual; - } - - /// - /// Returns true if TypeHolderExample instances are equal - /// - /// Instance of TypeHolderExample to be compared - /// Boolean - public bool Equals(TypeHolderExample input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StringItem != null) - hashCode = hashCode * 59 + this.StringItem.GetHashCode(); - hashCode = hashCode * 59 + this.NumberItem.GetHashCode(); - hashCode = hashCode * 59 + this.FloatItem.GetHashCode(); - hashCode = hashCode * 59 + this.IntegerItem.GetHashCode(); - hashCode = hashCode * 59 + this.BoolItem.GetHashCode(); - if (this.ArrayItem != null) - hashCode = hashCode * 59 + this.ArrayItem.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-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/XmlItem.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/XmlItem.cs deleted file mode 100644 index 8f204d8814f..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/XmlItem.cs +++ /dev/null @@ -1,411 +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: \" \\ - * - * The version of the OpenAPI document: 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; -using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils; - -namespace Org.OpenAPITools.Model -{ - /// - /// XmlItem - /// - [DataContract] - public partial class XmlItem : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributeString. - /// attributeNumber. - /// attributeInteger. - /// attributeBoolean. - /// wrappedArray. - /// nameString. - /// nameNumber. - /// nameInteger. - /// nameBoolean. - /// nameArray. - /// nameWrappedArray. - /// prefixString. - /// prefixNumber. - /// prefixInteger. - /// prefixBoolean. - /// prefixArray. - /// prefixWrappedArray. - /// namespaceString. - /// namespaceNumber. - /// namespaceInteger. - /// namespaceBoolean. - /// namespaceArray. - /// namespaceWrappedArray. - /// prefixNsString. - /// prefixNsNumber. - /// prefixNsInteger. - /// prefixNsBoolean. - /// prefixNsArray. - /// prefixNsWrappedArray. - public XmlItem(string attributeString = default(string), decimal attributeNumber = default(decimal), int attributeInteger = default(int), bool attributeBoolean = default(bool), List wrappedArray = default(List), string nameString = default(string), decimal nameNumber = default(decimal), int nameInteger = default(int), bool nameBoolean = default(bool), List nameArray = default(List), List nameWrappedArray = default(List), string prefixString = default(string), decimal prefixNumber = default(decimal), int prefixInteger = default(int), bool prefixBoolean = default(bool), List prefixArray = default(List), List prefixWrappedArray = default(List), string namespaceString = default(string), decimal namespaceNumber = default(decimal), int namespaceInteger = default(int), bool namespaceBoolean = default(bool), List namespaceArray = default(List), List namespaceWrappedArray = default(List), string prefixNsString = default(string), decimal prefixNsNumber = default(decimal), int prefixNsInteger = default(int), bool prefixNsBoolean = default(bool), List prefixNsArray = default(List), List prefixNsWrappedArray = default(List)) - { - this.AttributeString = attributeString; - this.AttributeNumber = attributeNumber; - this.AttributeInteger = attributeInteger; - this.AttributeBoolean = attributeBoolean; - this.WrappedArray = wrappedArray; - this.NameString = nameString; - this.NameNumber = nameNumber; - this.NameInteger = nameInteger; - this.NameBoolean = nameBoolean; - this.NameArray = nameArray; - this.NameWrappedArray = nameWrappedArray; - this.PrefixString = prefixString; - this.PrefixNumber = prefixNumber; - this.PrefixInteger = prefixInteger; - this.PrefixBoolean = prefixBoolean; - this.PrefixArray = prefixArray; - this.PrefixWrappedArray = prefixWrappedArray; - this.NamespaceString = namespaceString; - this.NamespaceNumber = namespaceNumber; - this.NamespaceInteger = namespaceInteger; - this.NamespaceBoolean = namespaceBoolean; - this.NamespaceArray = namespaceArray; - this.NamespaceWrappedArray = namespaceWrappedArray; - this.PrefixNsString = prefixNsString; - this.PrefixNsNumber = prefixNsNumber; - this.PrefixNsInteger = prefixNsInteger; - this.PrefixNsBoolean = prefixNsBoolean; - this.PrefixNsArray = prefixNsArray; - this.PrefixNsWrappedArray = prefixNsWrappedArray; - } - - /// - /// Gets or Sets AttributeString - /// - [DataMember(Name="attribute_string", EmitDefaultValue=false)] - public string AttributeString { get; set; } - - /// - /// Gets or Sets AttributeNumber - /// - [DataMember(Name="attribute_number", EmitDefaultValue=false)] - public decimal AttributeNumber { get; set; } - - /// - /// Gets or Sets AttributeInteger - /// - [DataMember(Name="attribute_integer", EmitDefaultValue=false)] - public int AttributeInteger { get; set; } - - /// - /// Gets or Sets AttributeBoolean - /// - [DataMember(Name="attribute_boolean", EmitDefaultValue=false)] - public bool AttributeBoolean { get; set; } - - /// - /// Gets or Sets WrappedArray - /// - [DataMember(Name="wrapped_array", EmitDefaultValue=false)] - public List WrappedArray { get; set; } - - /// - /// Gets or Sets NameString - /// - [DataMember(Name="name_string", EmitDefaultValue=false)] - public string NameString { get; set; } - - /// - /// Gets or Sets NameNumber - /// - [DataMember(Name="name_number", EmitDefaultValue=false)] - public decimal NameNumber { get; set; } - - /// - /// Gets or Sets NameInteger - /// - [DataMember(Name="name_integer", EmitDefaultValue=false)] - public int NameInteger { get; set; } - - /// - /// Gets or Sets NameBoolean - /// - [DataMember(Name="name_boolean", EmitDefaultValue=false)] - public bool NameBoolean { get; set; } - - /// - /// Gets or Sets NameArray - /// - [DataMember(Name="name_array", EmitDefaultValue=false)] - public List NameArray { get; set; } - - /// - /// Gets or Sets NameWrappedArray - /// - [DataMember(Name="name_wrapped_array", EmitDefaultValue=false)] - public List NameWrappedArray { get; set; } - - /// - /// Gets or Sets PrefixString - /// - [DataMember(Name="prefix_string", EmitDefaultValue=false)] - public string PrefixString { get; set; } - - /// - /// Gets or Sets PrefixNumber - /// - [DataMember(Name="prefix_number", EmitDefaultValue=false)] - public decimal PrefixNumber { get; set; } - - /// - /// Gets or Sets PrefixInteger - /// - [DataMember(Name="prefix_integer", EmitDefaultValue=false)] - public int PrefixInteger { get; set; } - - /// - /// Gets or Sets PrefixBoolean - /// - [DataMember(Name="prefix_boolean", EmitDefaultValue=false)] - public bool PrefixBoolean { get; set; } - - /// - /// Gets or Sets PrefixArray - /// - [DataMember(Name="prefix_array", EmitDefaultValue=false)] - public List PrefixArray { get; set; } - - /// - /// Gets or Sets PrefixWrappedArray - /// - [DataMember(Name="prefix_wrapped_array", EmitDefaultValue=false)] - public List PrefixWrappedArray { get; set; } - - /// - /// Gets or Sets NamespaceString - /// - [DataMember(Name="namespace_string", EmitDefaultValue=false)] - public string NamespaceString { get; set; } - - /// - /// Gets or Sets NamespaceNumber - /// - [DataMember(Name="namespace_number", EmitDefaultValue=false)] - public decimal NamespaceNumber { get; set; } - - /// - /// Gets or Sets NamespaceInteger - /// - [DataMember(Name="namespace_integer", EmitDefaultValue=false)] - public int NamespaceInteger { get; set; } - - /// - /// Gets or Sets NamespaceBoolean - /// - [DataMember(Name="namespace_boolean", EmitDefaultValue=false)] - public bool NamespaceBoolean { get; set; } - - /// - /// Gets or Sets NamespaceArray - /// - [DataMember(Name="namespace_array", EmitDefaultValue=false)] - public List NamespaceArray { get; set; } - - /// - /// Gets or Sets NamespaceWrappedArray - /// - [DataMember(Name="namespace_wrapped_array", EmitDefaultValue=false)] - public List NamespaceWrappedArray { get; set; } - - /// - /// Gets or Sets PrefixNsString - /// - [DataMember(Name="prefix_ns_string", EmitDefaultValue=false)] - public string PrefixNsString { get; set; } - - /// - /// Gets or Sets PrefixNsNumber - /// - [DataMember(Name="prefix_ns_number", EmitDefaultValue=false)] - public decimal PrefixNsNumber { get; set; } - - /// - /// Gets or Sets PrefixNsInteger - /// - [DataMember(Name="prefix_ns_integer", EmitDefaultValue=false)] - public int PrefixNsInteger { get; set; } - - /// - /// Gets or Sets PrefixNsBoolean - /// - [DataMember(Name="prefix_ns_boolean", EmitDefaultValue=false)] - public bool PrefixNsBoolean { get; set; } - - /// - /// Gets or Sets PrefixNsArray - /// - [DataMember(Name="prefix_ns_array", EmitDefaultValue=false)] - public List PrefixNsArray { get; set; } - - /// - /// Gets or Sets PrefixNsWrappedArray - /// - [DataMember(Name="prefix_ns_wrapped_array", EmitDefaultValue=false)] - public List PrefixNsWrappedArray { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class XmlItem {\n"); - sb.Append(" AttributeString: ").Append(AttributeString).Append("\n"); - sb.Append(" AttributeNumber: ").Append(AttributeNumber).Append("\n"); - sb.Append(" AttributeInteger: ").Append(AttributeInteger).Append("\n"); - sb.Append(" AttributeBoolean: ").Append(AttributeBoolean).Append("\n"); - sb.Append(" WrappedArray: ").Append(WrappedArray).Append("\n"); - sb.Append(" NameString: ").Append(NameString).Append("\n"); - sb.Append(" NameNumber: ").Append(NameNumber).Append("\n"); - sb.Append(" NameInteger: ").Append(NameInteger).Append("\n"); - sb.Append(" NameBoolean: ").Append(NameBoolean).Append("\n"); - sb.Append(" NameArray: ").Append(NameArray).Append("\n"); - sb.Append(" NameWrappedArray: ").Append(NameWrappedArray).Append("\n"); - sb.Append(" PrefixString: ").Append(PrefixString).Append("\n"); - sb.Append(" PrefixNumber: ").Append(PrefixNumber).Append("\n"); - sb.Append(" PrefixInteger: ").Append(PrefixInteger).Append("\n"); - sb.Append(" PrefixBoolean: ").Append(PrefixBoolean).Append("\n"); - sb.Append(" PrefixArray: ").Append(PrefixArray).Append("\n"); - sb.Append(" PrefixWrappedArray: ").Append(PrefixWrappedArray).Append("\n"); - sb.Append(" NamespaceString: ").Append(NamespaceString).Append("\n"); - sb.Append(" NamespaceNumber: ").Append(NamespaceNumber).Append("\n"); - sb.Append(" NamespaceInteger: ").Append(NamespaceInteger).Append("\n"); - sb.Append(" NamespaceBoolean: ").Append(NamespaceBoolean).Append("\n"); - sb.Append(" NamespaceArray: ").Append(NamespaceArray).Append("\n"); - sb.Append(" NamespaceWrappedArray: ").Append(NamespaceWrappedArray).Append("\n"); - sb.Append(" PrefixNsString: ").Append(PrefixNsString).Append("\n"); - sb.Append(" PrefixNsNumber: ").Append(PrefixNsNumber).Append("\n"); - sb.Append(" PrefixNsInteger: ").Append(PrefixNsInteger).Append("\n"); - sb.Append(" PrefixNsBoolean: ").Append(PrefixNsBoolean).Append("\n"); - sb.Append(" PrefixNsArray: ").Append(PrefixNsArray).Append("\n"); - sb.Append(" PrefixNsWrappedArray: ").Append(PrefixNsWrappedArray).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual 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 OpenAPIClientUtils.compareLogic.Compare(this, input as XmlItem).AreEqual; - } - - /// - /// Returns true if XmlItem instances are equal - /// - /// Instance of XmlItem to be compared - /// Boolean - public bool Equals(XmlItem input) - { - return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual; - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.AttributeString != null) - hashCode = hashCode * 59 + this.AttributeString.GetHashCode(); - hashCode = hashCode * 59 + this.AttributeNumber.GetHashCode(); - hashCode = hashCode * 59 + this.AttributeInteger.GetHashCode(); - hashCode = hashCode * 59 + this.AttributeBoolean.GetHashCode(); - if (this.WrappedArray != null) - hashCode = hashCode * 59 + this.WrappedArray.GetHashCode(); - if (this.NameString != null) - hashCode = hashCode * 59 + this.NameString.GetHashCode(); - hashCode = hashCode * 59 + this.NameNumber.GetHashCode(); - hashCode = hashCode * 59 + this.NameInteger.GetHashCode(); - hashCode = hashCode * 59 + this.NameBoolean.GetHashCode(); - if (this.NameArray != null) - hashCode = hashCode * 59 + this.NameArray.GetHashCode(); - if (this.NameWrappedArray != null) - hashCode = hashCode * 59 + this.NameWrappedArray.GetHashCode(); - if (this.PrefixString != null) - hashCode = hashCode * 59 + this.PrefixString.GetHashCode(); - hashCode = hashCode * 59 + this.PrefixNumber.GetHashCode(); - hashCode = hashCode * 59 + this.PrefixInteger.GetHashCode(); - hashCode = hashCode * 59 + this.PrefixBoolean.GetHashCode(); - if (this.PrefixArray != null) - hashCode = hashCode * 59 + this.PrefixArray.GetHashCode(); - if (this.PrefixWrappedArray != null) - hashCode = hashCode * 59 + this.PrefixWrappedArray.GetHashCode(); - if (this.NamespaceString != null) - hashCode = hashCode * 59 + this.NamespaceString.GetHashCode(); - hashCode = hashCode * 59 + this.NamespaceNumber.GetHashCode(); - hashCode = hashCode * 59 + this.NamespaceInteger.GetHashCode(); - hashCode = hashCode * 59 + this.NamespaceBoolean.GetHashCode(); - if (this.NamespaceArray != null) - hashCode = hashCode * 59 + this.NamespaceArray.GetHashCode(); - if (this.NamespaceWrappedArray != null) - hashCode = hashCode * 59 + this.NamespaceWrappedArray.GetHashCode(); - if (this.PrefixNsString != null) - hashCode = hashCode * 59 + this.PrefixNsString.GetHashCode(); - hashCode = hashCode * 59 + this.PrefixNsNumber.GetHashCode(); - hashCode = hashCode * 59 + this.PrefixNsInteger.GetHashCode(); - hashCode = hashCode * 59 + this.PrefixNsBoolean.GetHashCode(); - if (this.PrefixNsArray != null) - hashCode = hashCode * 59 + this.PrefixNsArray.GetHashCode(); - if (this.PrefixNsWrappedArray != null) - hashCode = hashCode * 59 + this.PrefixNsWrappedArray.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -}