[csharp] update sample after #2528 (#2550)

* [csharp] update sample after #2528

* [csharp] update sample after #2528

* [csharp] update sample after #2528
This commit is contained in:
Vincent Devos 2019-03-30 09:53:50 +01:00 committed by William Cheng
parent 8977d7b366
commit 976ab4fd0f
52 changed files with 437 additions and 656 deletions

View File

@ -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)

View File

@ -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)

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing AnotherFakeApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
@ -65,14 +65,14 @@ namespace Org.OpenAPITools.Test
/// <summary>
/// Test TestSpecialTags
/// Test Call123TestSpecialTags
/// </summary>
[Test]
public void TestSpecialTagsTest()
public void Call123TestSpecialTagsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//ModelClient modelClient = null;
//var response = instance.TestSpecialTags(modelClient);
//ModelClient body = null;
//var response = instance.Call123TestSpecialTags(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing FakeApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
@ -64,6 +64,18 @@ namespace Org.OpenAPITools.Test
}
/// <summary>
/// Test CreateXmlItem
/// </summary>
[Test]
public void CreateXmlItemTest()
{
// TODO uncomment below to test the method and replace null with proper value
//XmlItem xmlItem = null;
//instance.CreateXmlItem(xmlItem);
}
/// <summary>
/// Test FakeOuterBooleanSerialize
/// </summary>
@ -83,8 +95,8 @@ namespace Org.OpenAPITools.Test
public void FakeOuterCompositeSerializeTest()
{
// TODO uncomment below to test the method and replace null with proper value
//OuterComposite outerComposite = null;
//var response = instance.FakeOuterCompositeSerialize(outerComposite);
//OuterComposite body = null;
//var response = instance.FakeOuterCompositeSerialize(body);
//Assert.IsInstanceOf<OuterComposite> (response, "response is OuterComposite");
}
@ -112,6 +124,18 @@ namespace Org.OpenAPITools.Test
//Assert.IsInstanceOf<string> (response, "response is string");
}
/// <summary>
/// Test TestBodyWithFileSchema
/// </summary>
[Test]
public void TestBodyWithFileSchemaTest()
{
// TODO uncomment below to test the method and replace null with proper value
//FileSchemaTestClass body = null;
//instance.TestBodyWithFileSchema(body);
}
/// <summary>
/// Test TestBodyWithQueryParams
/// </summary>
@ -120,8 +144,8 @@ namespace Org.OpenAPITools.Test
{
// TODO uncomment below to test the method and replace null with proper value
//string query = null;
//User user = null;
//instance.TestBodyWithQueryParams(query, user);
//User body = null;
//instance.TestBodyWithQueryParams(query, body);
}
@ -132,8 +156,8 @@ namespace Org.OpenAPITools.Test
public void TestClientModelTest()
{
// TODO uncomment below to test the method and replace null with proper value
//ModelClient modelClient = null;
//var response = instance.TestClientModel(modelClient);
//ModelClient body = null;
//var response = instance.TestClientModel(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}
@ -181,6 +205,23 @@ namespace Org.OpenAPITools.Test
}
/// <summary>
/// Test TestGroupParameters
/// </summary>
[Test]
public void TestGroupParametersTest()
{
// TODO uncomment below to test the method and replace null with proper value
//int? requiredStringGroup = null;
//bool? requiredBooleanGroup = null;
//long? requiredInt64Group = null;
//int? stringGroup = null;
//bool? booleanGroup = null;
//long? int64Group = null;
//instance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
/// <summary>
/// Test TestInlineAdditionalProperties
/// </summary>
@ -188,8 +229,8 @@ namespace Org.OpenAPITools.Test
public void TestInlineAdditionalPropertiesTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string requestBody = null;
//instance.TestInlineAdditionalProperties(requestBody);
//Dictionary<string, string> param = null;
//instance.TestInlineAdditionalProperties(param);
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing FakeClassnameTags123Api
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
@ -71,8 +71,8 @@ namespace Org.OpenAPITools.Test
public void TestClassnameTest()
{
// TODO uncomment below to test the method and replace null with proper value
//ModelClient modelClient = null;
//var response = instance.TestClassname(modelClient);
//ModelClient body = null;
//var response = instance.TestClassname(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing StoreApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Test
public void PlaceOrderTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Order order = null;
//var response = instance.PlaceOrder(order);
//Order body = null;
//var response = instance.PlaceOrder(body);
//Assert.IsInstanceOf<Order> (response, "response is Order");
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing UserApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
@ -71,8 +71,8 @@ namespace Org.OpenAPITools.Test
public void CreateUserTest()
{
// TODO uncomment below to test the method and replace null with proper value
//User user = null;
//instance.CreateUser(user);
//User body = null;
//instance.CreateUser(body);
}
@ -83,8 +83,8 @@ namespace Org.OpenAPITools.Test
public void CreateUsersWithArrayInputTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<User> user = null;
//instance.CreateUsersWithArrayInput(user);
//List<User> body = null;
//instance.CreateUsersWithArrayInput(body);
}
@ -95,8 +95,8 @@ namespace Org.OpenAPITools.Test
public void CreateUsersWithListInputTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<User> user = null;
//instance.CreateUsersWithListInput(user);
//List<User> body = null;
//instance.CreateUsersWithListInput(body);
}
@ -156,8 +156,8 @@ namespace Org.OpenAPITools.Test
{
// TODO uncomment below to test the method and replace null with proper value
//string username = null;
//User user = null;
//instance.UpdateUser(username, user);
//User body = null;
//instance.UpdateUser(username, body);
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing AdditionalPropertiesClass
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
@ -67,20 +67,92 @@ namespace Org.OpenAPITools.Test
/// <summary>
/// Test the property 'MapProperty'
/// Test the property 'MapString'
/// </summary>
[Test]
public void MapPropertyTest()
public void MapStringTest()
{
// TODO unit test for the property 'MapProperty'
// TODO unit test for the property 'MapString'
}
/// <summary>
/// Test the property 'MapOfMapProperty'
/// Test the property 'MapNumber'
/// </summary>
[Test]
public void MapOfMapPropertyTest()
public void MapNumberTest()
{
// TODO unit test for the property 'MapOfMapProperty'
// TODO unit test for the property 'MapNumber'
}
/// <summary>
/// Test the property 'MapInteger'
/// </summary>
[Test]
public void MapIntegerTest()
{
// TODO unit test for the property 'MapInteger'
}
/// <summary>
/// Test the property 'MapBoolean'
/// </summary>
[Test]
public void MapBooleanTest()
{
// TODO unit test for the property 'MapBoolean'
}
/// <summary>
/// Test the property 'MapArrayInteger'
/// </summary>
[Test]
public void MapArrayIntegerTest()
{
// TODO unit test for the property 'MapArrayInteger'
}
/// <summary>
/// Test the property 'MapArrayAnytype'
/// </summary>
[Test]
public void MapArrayAnytypeTest()
{
// TODO unit test for the property 'MapArrayAnytype'
}
/// <summary>
/// Test the property 'MapMapString'
/// </summary>
[Test]
public void MapMapStringTest()
{
// TODO unit test for the property 'MapMapString'
}
/// <summary>
/// Test the property 'MapMapAnytype'
/// </summary>
[Test]
public void MapMapAnytypeTest()
{
// TODO unit test for the property 'MapMapAnytype'
}
/// <summary>
/// Test the property 'Anytype1'
/// </summary>
[Test]
public void Anytype1Test()
{
// TODO unit test for the property 'Anytype1'
}
/// <summary>
/// Test the property 'Anytype2'
/// </summary>
[Test]
public void Anytype2Test()
{
// TODO unit test for the property 'Anytype2'
}
/// <summary>
/// Test the property 'Anytype3'
/// </summary>
[Test]
public void Anytype3Test()
{
// TODO unit test for the property 'Anytype3'
}
}

View File

@ -1,72 +0,0 @@
/*
* Swagger Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using NUnit.Framework;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test
{
/// <summary>
/// Class for testing AnimalFarm
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AnimalFarmTests
{
// TODO uncomment below to declare an instance variable for AnimalFarm
//private AnimalFarm instance;
/// <summary>
/// Setup before each test
/// </summary>
[SetUp]
public void Init()
{
// TODO uncomment below to create an instance of AnimalFarm
//instance = new AnimalFarm();
}
/// <summary>
/// Clean up after each test
/// </summary>
[TearDown]
public void Cleanup()
{
}
/// <summary>
/// Test an instance of AnimalFarm
/// </summary>
[Test]
public void AnimalFarmInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AnimalFarm
//Assert.IsInstanceOfType<AnimalFarm> (instance, "variable 'instance' is a AnimalFarm");
}
}
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Animal
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing ApiResponse
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing ArrayOfArrayOfNumberOnly
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing ArrayOfNumberOnly
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing ArrayTest
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Capitalization
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Cat
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Category
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing ClassModel
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Dog
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing EnumArrays
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing EnumClass
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing EnumTest
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing FormatTest
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing HasOnlyReadOnly
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing List
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing MapTest
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
@ -82,6 +82,22 @@ namespace Org.OpenAPITools.Test
{
// TODO unit test for the property 'MapOfEnumString'
}
/// <summary>
/// Test the property 'DirectMap'
/// </summary>
[Test]
public void DirectMapTest()
{
// TODO unit test for the property 'DirectMap'
}
/// <summary>
/// Test the property 'IndirectMap'
/// </summary>
[Test]
public void IndirectMapTest()
{
// TODO unit test for the property 'IndirectMap'
}
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing MixedPropertiesAndAdditionalPropertiesClass
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Model200Response
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing ModelClient
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Name
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing NumberOnly
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Order
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing OuterComposite
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing OuterEnum
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,3 +1,14 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using NUnit.Framework;
using System;
@ -12,95 +23,96 @@ using Newtonsoft.Json;
namespace Org.OpenAPITools.Test
{
/// <summary>
/// Class for testing Pet
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class PetTests
{
private Pet instance;
/// <summary>
/// Class for testing Pet
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class PetTests
{
private Pet instance;
private long petId = 11088;
private long petId = 11088;
/// <summary>
/// Setup before each test
/// </summary>
[SetUp]
public void Init()
{
instance = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
}
/// <summary>
/// Setup before each test
/// </summary>
[SetUp]
public void Init()
{
instance = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
}
/// <summary>
/// Clean up after each test
/// </summary>
[TearDown]
public void Cleanup()
{
/// <summary>
/// Clean up after each test
/// </summary>
[TearDown]
public void Cleanup()
{
}
}
/// <summary>
/// Test an instance of Pet
/// </summary>
[Test]
public void PetInstanceTest()
{
Assert.IsInstanceOfType(typeof(Pet), instance);
}
/// <summary>
/// Test an instance of Pet
/// </summary>
[Test]
public void PetInstanceTest()
{
Assert.IsInstanceOfType(typeof(Pet), instance);
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Test]
public void IdTest()
{
// TODO: unit test for the property 'Id'
}
/// <summary>
/// Test the property 'Category'
/// </summary>
[Test]
public void CategoryTest()
{
// TODO: unit test for the property 'Category'
}
/// <summary>
/// Test the property 'Name'
/// </summary>
[Test]
public void NameTest()
{
// TODO: unit test for the property 'Name'
}
/// <summary>
/// Test the property 'PhotoUrls'
/// </summary>
[Test]
public void PhotoUrlsTest()
{
// TODO: unit test for the property 'PhotoUrls'
}
/// <summary>
/// Test the property 'Tags'
/// </summary>
[Test]
public void TagsTest()
{
// TODO: unit test for the property 'Tags'
}
/// <summary>
/// Test the property 'Status'
/// </summary>
[Test]
public void StatusTest()
{
// TODO: unit test for the property 'Status'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Test]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'Category'
/// </summary>
[Test]
public void CategoryTest()
{
// TODO unit test for the property 'Category'
}
/// <summary>
/// Test the property 'Name'
/// </summary>
[Test]
public void NameTest()
{
// TODO unit test for the property 'Name'
}
/// <summary>
/// Test the property 'PhotoUrls'
/// </summary>
[Test]
public void PhotoUrlsTest()
{
// TODO unit test for the property 'PhotoUrls'
}
/// <summary>
/// Test the property 'Tags'
/// </summary>
[Test]
public void TagsTest()
{
// TODO unit test for the property 'Tags'
}
/// <summary>
/// Test the property 'Status'
/// </summary>
[Test]
public void StatusTest()
{
// TODO unit test for the property 'Status'
}
/// <summary>
/// Test serialization
@ -178,4 +190,4 @@ namespace Org.OpenAPITools.Test
}
}
}
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing ReadOnlyFirst
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Return
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing SpecialModelName
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,72 +0,0 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using NUnit.Framework;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test
{
/// <summary>
/// Class for testing StringBooleanMap
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class StringBooleanMapTests
{
// TODO uncomment below to declare an instance variable for StringBooleanMap
//private StringBooleanMap instance;
/// <summary>
/// Setup before each test
/// </summary>
[SetUp]
public void Init()
{
// TODO uncomment below to create an instance of StringBooleanMap
//instance = new StringBooleanMap();
}
/// <summary>
/// Clean up after each test
/// </summary>
[TearDown]
public void Cleanup()
{
}
/// <summary>
/// Test an instance of StringBooleanMap
/// </summary>
[Test]
public void StringBooleanMapInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" StringBooleanMap
//Assert.IsInstanceOfType<StringBooleanMap> (instance, "variable 'instance' is a StringBooleanMap");
}
}
}

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing Tag
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -1,11 +1,11 @@
/*
* Swagger Petstore
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
/// Class for testing User
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]

View File

@ -251,52 +251,52 @@ namespace Org.OpenAPITools.Test
// TODO unit test for the property 'NamespaceWrappedArray'
}
/// <summary>
/// Test the property 'PrefixNamespaceString'
/// Test the property 'PrefixNsString'
/// </summary>
[Test]
public void PrefixNamespaceStringTest()
public void PrefixNsStringTest()
{
// TODO unit test for the property 'PrefixNamespaceString'
// TODO unit test for the property 'PrefixNsString'
}
/// <summary>
/// Test the property 'PrefixNamespaceNumber'
/// Test the property 'PrefixNsNumber'
/// </summary>
[Test]
public void PrefixNamespaceNumberTest()
public void PrefixNsNumberTest()
{
// TODO unit test for the property 'PrefixNamespaceNumber'
// TODO unit test for the property 'PrefixNsNumber'
}
/// <summary>
/// Test the property 'PrefixNamespaceInteger'
/// Test the property 'PrefixNsInteger'
/// </summary>
[Test]
public void PrefixNamespaceIntegerTest()
public void PrefixNsIntegerTest()
{
// TODO unit test for the property 'PrefixNamespaceInteger'
// TODO unit test for the property 'PrefixNsInteger'
}
/// <summary>
/// Test the property 'PrefixNamespaceBoolean'
/// Test the property 'PrefixNsBoolean'
/// </summary>
[Test]
public void PrefixNamespaceBooleanTest()
public void PrefixNsBooleanTest()
{
// TODO unit test for the property 'PrefixNamespaceBoolean'
// TODO unit test for the property 'PrefixNsBoolean'
}
/// <summary>
/// Test the property 'PrefixNamespaceArray'
/// Test the property 'PrefixNsArray'
/// </summary>
[Test]
public void PrefixNamespaceArrayTest()
public void PrefixNsArrayTest()
{
// TODO unit test for the property 'PrefixNamespaceArray'
// TODO unit test for the property 'PrefixNsArray'
}
/// <summary>
/// Test the property 'PrefixNamespaceWrappedArray'
/// Test the property 'PrefixNsWrappedArray'
/// </summary>
[Test]
public void PrefixNamespaceWrappedArrayTest()
public void PrefixNsWrappedArrayTest()
{
// TODO unit test for the property 'PrefixNamespaceWrappedArray'
// TODO unit test for the property 'PrefixNsWrappedArray'
}
}

View File

@ -55,6 +55,7 @@ namespace Org.OpenAPITools.Model
{
this.ClassName = className;
}
// use default value if no "color" provided
if (color == null)
{

View File

@ -1,110 +0,0 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// AnimalFarm
/// </summary>
[DataContract]
public partial class AnimalFarm : List<Animal>, IEquatable<AnimalFarm>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="AnimalFarm" /> class.
/// </summary>
[JsonConstructorAttribute]
public AnimalFarm() : base()
{
}
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AnimalFarm {\n");
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as AnimalFarm);
}
/// <summary>
/// Returns true if AnimalFarm instances are equal
/// </summary>
/// <param name="input">Instance of AnimalFarm to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(AnimalFarm input)
{
if (input == null)
return false;
return base.Equals(input);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = base.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -51,6 +51,7 @@ namespace Org.OpenAPITools.Model
{
this.Name = name;
}
this.Id = id;
}

View File

@ -163,6 +163,7 @@ namespace Org.OpenAPITools.Model
{
this.EnumStringRequired = enumStringRequired;
}
this.EnumString = enumString;
this.EnumInteger = enumInteger;
this.EnumNumber = enumNumber;

View File

@ -62,6 +62,7 @@ namespace Org.OpenAPITools.Model
{
this.Number = number;
}
// to ensure "_byte" is required (not null)
if (_byte == null)
{
@ -71,6 +72,7 @@ namespace Org.OpenAPITools.Model
{
this.Byte = _byte;
}
// to ensure "date" is required (not null)
if (date == null)
{
@ -80,6 +82,7 @@ namespace Org.OpenAPITools.Model
{
this.Date = date;
}
// to ensure "password" is required (not null)
if (password == null)
{
@ -89,6 +92,7 @@ namespace Org.OpenAPITools.Model
{
this.Password = password;
}
this.Integer = integer;
this.Int32 = int32;
this.Int64 = int64;

View File

@ -51,6 +51,7 @@ namespace Org.OpenAPITools.Model
{
this._Name = name;
}
this.Property = property;
}

View File

@ -88,6 +88,7 @@ namespace Org.OpenAPITools.Model
{
this.Name = name;
}
// to ensure "photoUrls" is required (not null)
if (photoUrls == null)
{
@ -97,6 +98,7 @@ namespace Org.OpenAPITools.Model
{
this.PhotoUrls = photoUrls;
}
this.Id = id;
this.Category = category;
this.Tags = tags;

View File

@ -1,110 +0,0 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// StringBooleanMap
/// </summary>
[DataContract]
public partial class StringBooleanMap : Dictionary<String, bool?>, IEquatable<StringBooleanMap>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="StringBooleanMap" /> class.
/// </summary>
[JsonConstructorAttribute]
public StringBooleanMap() : base()
{
}
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class StringBooleanMap {\n");
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as StringBooleanMap);
}
/// <summary>
/// Returns true if StringBooleanMap instances are equal
/// </summary>
/// <param name="input">Instance of StringBooleanMap to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(StringBooleanMap input)
{
if (input == null)
return false;
return base.Equals(input);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = base.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -54,6 +54,7 @@ namespace Org.OpenAPITools.Model
{
this.StringItem = stringItem;
}
// to ensure "numberItem" is required (not null)
if (numberItem == null)
{
@ -63,6 +64,7 @@ namespace Org.OpenAPITools.Model
{
this.NumberItem = numberItem;
}
// to ensure "integerItem" is required (not null)
if (integerItem == null)
{
@ -72,6 +74,7 @@ namespace Org.OpenAPITools.Model
{
this.IntegerItem = integerItem;
}
// to ensure "boolItem" is required (not null)
if (boolItem == null)
{
@ -81,6 +84,7 @@ namespace Org.OpenAPITools.Model
{
this.BoolItem = boolItem;
}
// to ensure "arrayItem" is required (not null)
if (arrayItem == null)
{
@ -90,6 +94,7 @@ namespace Org.OpenAPITools.Model
{
this.ArrayItem = arrayItem;
}
}
/// <summary>

View File

@ -54,6 +54,7 @@ namespace Org.OpenAPITools.Model
{
this.StringItem = stringItem;
}
// to ensure "numberItem" is required (not null)
if (numberItem == null)
{
@ -63,6 +64,7 @@ namespace Org.OpenAPITools.Model
{
this.NumberItem = numberItem;
}
// to ensure "integerItem" is required (not null)
if (integerItem == null)
{
@ -72,6 +74,7 @@ namespace Org.OpenAPITools.Model
{
this.IntegerItem = integerItem;
}
// to ensure "boolItem" is required (not null)
if (boolItem == null)
{
@ -81,6 +84,7 @@ namespace Org.OpenAPITools.Model
{
this.BoolItem = boolItem;
}
// to ensure "arrayItem" is required (not null)
if (arrayItem == null)
{
@ -90,6 +94,7 @@ namespace Org.OpenAPITools.Model
{
this.ArrayItem = arrayItem;
}
}
/// <summary>