forked from loafle/openapi-generator-original
* [csharp] update sample after #2528 * [csharp] update sample after #2528 * [csharp] update sample after #2528
This commit is contained in:
committed by
William Cheng
parent
8977d7b366
commit
976ab4fd0f
@@ -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)
|
|
||||||
|
|
||||||
@@ -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)
|
|
||||||
|
|
||||||
@@ -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: \" \\
|
* 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
|
* 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;
|
using System;
|
||||||
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
|
|||||||
/// Class for testing AnotherFakeApi
|
/// Class for testing AnotherFakeApi
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the API endpoint.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
@@ -65,14 +65,14 @@ namespace Org.OpenAPITools.Test
|
|||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test TestSpecialTags
|
/// Test Call123TestSpecialTags
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void TestSpecialTagsTest()
|
public void Call123TestSpecialTagsTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//ModelClient modelClient = null;
|
//ModelClient body = null;
|
||||||
//var response = instance.TestSpecialTags(modelClient);
|
//var response = instance.Call123TestSpecialTags(body);
|
||||||
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
|
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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;
|
using System;
|
||||||
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
|
|||||||
/// Class for testing FakeApi
|
/// Class for testing FakeApi
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the API endpoint.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[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>
|
/// <summary>
|
||||||
/// Test FakeOuterBooleanSerialize
|
/// Test FakeOuterBooleanSerialize
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -83,8 +95,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
public void FakeOuterCompositeSerializeTest()
|
public void FakeOuterCompositeSerializeTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//OuterComposite outerComposite = null;
|
//OuterComposite body = null;
|
||||||
//var response = instance.FakeOuterCompositeSerialize(outerComposite);
|
//var response = instance.FakeOuterCompositeSerialize(body);
|
||||||
//Assert.IsInstanceOf<OuterComposite> (response, "response is OuterComposite");
|
//Assert.IsInstanceOf<OuterComposite> (response, "response is OuterComposite");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,6 +124,18 @@ namespace Org.OpenAPITools.Test
|
|||||||
//Assert.IsInstanceOf<string> (response, "response is string");
|
//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>
|
/// <summary>
|
||||||
/// Test TestBodyWithQueryParams
|
/// Test TestBodyWithQueryParams
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -120,8 +144,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//string query = null;
|
//string query = null;
|
||||||
//User user = null;
|
//User body = null;
|
||||||
//instance.TestBodyWithQueryParams(query, user);
|
//instance.TestBodyWithQueryParams(query, body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,8 +156,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
public void TestClientModelTest()
|
public void TestClientModelTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//ModelClient modelClient = null;
|
//ModelClient body = null;
|
||||||
//var response = instance.TestClientModel(modelClient);
|
//var response = instance.TestClientModel(body);
|
||||||
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
|
//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>
|
/// <summary>
|
||||||
/// Test TestInlineAdditionalProperties
|
/// Test TestInlineAdditionalProperties
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -188,8 +229,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
public void TestInlineAdditionalPropertiesTest()
|
public void TestInlineAdditionalPropertiesTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//string requestBody = null;
|
//Dictionary<string, string> param = null;
|
||||||
//instance.TestInlineAdditionalProperties(requestBody);
|
//instance.TestInlineAdditionalProperties(param);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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;
|
using System;
|
||||||
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
|
|||||||
/// Class for testing FakeClassnameTags123Api
|
/// Class for testing FakeClassnameTags123Api
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the API endpoint.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
@@ -71,8 +71,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
public void TestClassnameTest()
|
public void TestClassnameTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//ModelClient modelClient = null;
|
//ModelClient body = null;
|
||||||
//var response = instance.TestClassname(modelClient);
|
//var response = instance.TestClassname(body);
|
||||||
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
|
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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;
|
using System;
|
||||||
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
|
|||||||
/// Class for testing StoreApi
|
/// Class for testing StoreApi
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the API endpoint.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
@@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
public void PlaceOrderTest()
|
public void PlaceOrderTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//Order order = null;
|
//Order body = null;
|
||||||
//var response = instance.PlaceOrder(order);
|
//var response = instance.PlaceOrder(body);
|
||||||
//Assert.IsInstanceOf<Order> (response, "response is Order");
|
//Assert.IsInstanceOf<Order> (response, "response is Order");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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;
|
using System;
|
||||||
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Test
|
|||||||
/// Class for testing UserApi
|
/// Class for testing UserApi
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the API endpoint.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
@@ -71,8 +71,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
public void CreateUserTest()
|
public void CreateUserTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//User user = null;
|
//User body = null;
|
||||||
//instance.CreateUser(user);
|
//instance.CreateUser(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,8 +83,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
public void CreateUsersWithArrayInputTest()
|
public void CreateUsersWithArrayInputTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//List<User> user = null;
|
//List<User> body = null;
|
||||||
//instance.CreateUsersWithArrayInput(user);
|
//instance.CreateUsersWithArrayInput(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -95,8 +95,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
public void CreateUsersWithListInputTest()
|
public void CreateUsersWithListInputTest()
|
||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//List<User> user = null;
|
//List<User> body = null;
|
||||||
//instance.CreateUsersWithListInput(user);
|
//instance.CreateUsersWithListInput(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,8 +156,8 @@ namespace Org.OpenAPITools.Test
|
|||||||
{
|
{
|
||||||
// TODO uncomment below to test the method and replace null with proper value
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
//string username = null;
|
//string username = null;
|
||||||
//User user = null;
|
//User body = null;
|
||||||
//instance.UpdateUser(username, user);
|
//instance.UpdateUser(username, body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing AdditionalPropertiesClass
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
@@ -67,20 +67,92 @@ namespace Org.OpenAPITools.Test
|
|||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'MapProperty'
|
/// Test the property 'MapString'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void MapPropertyTest()
|
public void MapStringTest()
|
||||||
{
|
{
|
||||||
// TODO unit test for the property 'MapProperty'
|
// TODO unit test for the property 'MapString'
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'MapOfMapProperty'
|
/// Test the property 'MapNumber'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[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'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Animal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing ApiResponse
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing ArrayOfArrayOfNumberOnly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing ArrayOfNumberOnly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing ArrayTest
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Capitalization
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Cat
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Category
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing ClassModel
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Dog
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing EnumArrays
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing EnumClass
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing EnumTest
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing FormatTest
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing HasOnlyReadOnly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing List
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing MapTest
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
@@ -82,6 +82,22 @@ namespace Org.OpenAPITools.Test
|
|||||||
{
|
{
|
||||||
// TODO unit test for the property 'MapOfEnumString'
|
// 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'
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing MixedPropertiesAndAdditionalPropertiesClass
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Model200Response
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing ModelClient
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Name
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing NumberOnly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Order
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing OuterComposite
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing OuterEnum
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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 NUnit.Framework;
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
@@ -12,95 +23,96 @@ using Newtonsoft.Json;
|
|||||||
|
|
||||||
namespace Org.OpenAPITools.Test
|
namespace Org.OpenAPITools.Test
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class for testing Pet
|
/// Class for testing Pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class PetTests
|
public class PetTests
|
||||||
{
|
{
|
||||||
private Pet instance;
|
private Pet instance;
|
||||||
|
|
||||||
private long petId = 11088;
|
private long petId = 11088;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setup before each test
|
/// Setup before each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
instance = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
|
instance = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up after each test
|
/// Clean up after each test
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[TearDown]
|
[TearDown]
|
||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test an instance of Pet
|
/// Test an instance of Pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PetInstanceTest()
|
public void PetInstanceTest()
|
||||||
{
|
{
|
||||||
Assert.IsInstanceOfType(typeof(Pet), instance);
|
Assert.IsInstanceOfType(typeof(Pet), instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Test the property 'Id'
|
/// <summary>
|
||||||
/// </summary>
|
/// Test the property 'Id'
|
||||||
[Test]
|
/// </summary>
|
||||||
public void IdTest()
|
[Test]
|
||||||
{
|
public void IdTest()
|
||||||
// TODO: unit test for the property 'Id'
|
{
|
||||||
}
|
// TODO unit test for the property 'Id'
|
||||||
/// <summary>
|
}
|
||||||
/// Test the property 'Category'
|
/// <summary>
|
||||||
/// </summary>
|
/// Test the property 'Category'
|
||||||
[Test]
|
/// </summary>
|
||||||
public void CategoryTest()
|
[Test]
|
||||||
{
|
public void CategoryTest()
|
||||||
// TODO: unit test for the property 'Category'
|
{
|
||||||
}
|
// TODO unit test for the property 'Category'
|
||||||
/// <summary>
|
}
|
||||||
/// Test the property 'Name'
|
/// <summary>
|
||||||
/// </summary>
|
/// Test the property 'Name'
|
||||||
[Test]
|
/// </summary>
|
||||||
public void NameTest()
|
[Test]
|
||||||
{
|
public void NameTest()
|
||||||
// TODO: unit test for the property 'Name'
|
{
|
||||||
}
|
// TODO unit test for the property 'Name'
|
||||||
/// <summary>
|
}
|
||||||
/// Test the property 'PhotoUrls'
|
/// <summary>
|
||||||
/// </summary>
|
/// Test the property 'PhotoUrls'
|
||||||
[Test]
|
/// </summary>
|
||||||
public void PhotoUrlsTest()
|
[Test]
|
||||||
{
|
public void PhotoUrlsTest()
|
||||||
// TODO: unit test for the property 'PhotoUrls'
|
{
|
||||||
}
|
// TODO unit test for the property 'PhotoUrls'
|
||||||
/// <summary>
|
}
|
||||||
/// Test the property 'Tags'
|
/// <summary>
|
||||||
/// </summary>
|
/// Test the property 'Tags'
|
||||||
[Test]
|
/// </summary>
|
||||||
public void TagsTest()
|
[Test]
|
||||||
{
|
public void TagsTest()
|
||||||
// TODO: unit test for the property 'Tags'
|
{
|
||||||
}
|
// TODO unit test for the property 'Tags'
|
||||||
/// <summary>
|
}
|
||||||
/// Test the property 'Status'
|
/// <summary>
|
||||||
/// </summary>
|
/// Test the property 'Status'
|
||||||
[Test]
|
/// </summary>
|
||||||
public void StatusTest()
|
[Test]
|
||||||
{
|
public void StatusTest()
|
||||||
// TODO: unit test for the property 'Status'
|
{
|
||||||
}
|
// TODO unit test for the property 'Status'
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test serialization
|
/// Test serialization
|
||||||
@@ -178,4 +190,4 @@ namespace Org.OpenAPITools.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing ReadOnlyFirst
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Return
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing SpecialModelName
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing Tag
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -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: \" \\
|
* 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
|
* 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
|
/// Class for testing User
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// Please update the test case below to test the model.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
|
|||||||
@@ -251,52 +251,52 @@ namespace Org.OpenAPITools.Test
|
|||||||
// TODO unit test for the property 'NamespaceWrappedArray'
|
// TODO unit test for the property 'NamespaceWrappedArray'
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PrefixNamespaceString'
|
/// Test the property 'PrefixNsString'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PrefixNamespaceStringTest()
|
public void PrefixNsStringTest()
|
||||||
{
|
{
|
||||||
// TODO unit test for the property 'PrefixNamespaceString'
|
// TODO unit test for the property 'PrefixNsString'
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PrefixNamespaceNumber'
|
/// Test the property 'PrefixNsNumber'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PrefixNamespaceNumberTest()
|
public void PrefixNsNumberTest()
|
||||||
{
|
{
|
||||||
// TODO unit test for the property 'PrefixNamespaceNumber'
|
// TODO unit test for the property 'PrefixNsNumber'
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PrefixNamespaceInteger'
|
/// Test the property 'PrefixNsInteger'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PrefixNamespaceIntegerTest()
|
public void PrefixNsIntegerTest()
|
||||||
{
|
{
|
||||||
// TODO unit test for the property 'PrefixNamespaceInteger'
|
// TODO unit test for the property 'PrefixNsInteger'
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PrefixNamespaceBoolean'
|
/// Test the property 'PrefixNsBoolean'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PrefixNamespaceBooleanTest()
|
public void PrefixNsBooleanTest()
|
||||||
{
|
{
|
||||||
// TODO unit test for the property 'PrefixNamespaceBoolean'
|
// TODO unit test for the property 'PrefixNsBoolean'
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PrefixNamespaceArray'
|
/// Test the property 'PrefixNsArray'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PrefixNamespaceArrayTest()
|
public void PrefixNsArrayTest()
|
||||||
{
|
{
|
||||||
// TODO unit test for the property 'PrefixNamespaceArray'
|
// TODO unit test for the property 'PrefixNsArray'
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test the property 'PrefixNamespaceWrappedArray'
|
/// Test the property 'PrefixNsWrappedArray'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void PrefixNamespaceWrappedArrayTest()
|
public void PrefixNsWrappedArrayTest()
|
||||||
{
|
{
|
||||||
// TODO unit test for the property 'PrefixNamespaceWrappedArray'
|
// TODO unit test for the property 'PrefixNsWrappedArray'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.ClassName = className;
|
this.ClassName = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
// use default value if no "color" provided
|
// use default value if no "color" provided
|
||||||
if (color == null)
|
if (color == null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,110 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
*
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
*
|
|
||||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Runtime.Serialization;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using Newtonsoft.Json.Converters;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
|
||||||
|
|
||||||
namespace Org.OpenAPITools.Model
|
|
||||||
{
|
|
||||||
/// <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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -51,6 +51,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Name = name;
|
this.Name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Id = id;
|
this.Id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.EnumStringRequired = enumStringRequired;
|
this.EnumStringRequired = enumStringRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.EnumString = enumString;
|
this.EnumString = enumString;
|
||||||
this.EnumInteger = enumInteger;
|
this.EnumInteger = enumInteger;
|
||||||
this.EnumNumber = enumNumber;
|
this.EnumNumber = enumNumber;
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Number = number;
|
this.Number = number;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "_byte" is required (not null)
|
// to ensure "_byte" is required (not null)
|
||||||
if (_byte == null)
|
if (_byte == null)
|
||||||
{
|
{
|
||||||
@@ -71,6 +72,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Byte = _byte;
|
this.Byte = _byte;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "date" is required (not null)
|
// to ensure "date" is required (not null)
|
||||||
if (date == null)
|
if (date == null)
|
||||||
{
|
{
|
||||||
@@ -80,6 +82,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Date = date;
|
this.Date = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "password" is required (not null)
|
// to ensure "password" is required (not null)
|
||||||
if (password == null)
|
if (password == null)
|
||||||
{
|
{
|
||||||
@@ -89,6 +92,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Password = password;
|
this.Password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Integer = integer;
|
this.Integer = integer;
|
||||||
this.Int32 = int32;
|
this.Int32 = int32;
|
||||||
this.Int64 = int64;
|
this.Int64 = int64;
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this._Name = name;
|
this._Name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Property = property;
|
this.Property = property;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Name = name;
|
this.Name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "photoUrls" is required (not null)
|
// to ensure "photoUrls" is required (not null)
|
||||||
if (photoUrls == null)
|
if (photoUrls == null)
|
||||||
{
|
{
|
||||||
@@ -97,6 +98,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.PhotoUrls = photoUrls;
|
this.PhotoUrls = photoUrls;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Id = id;
|
this.Id = id;
|
||||||
this.Category = category;
|
this.Category = category;
|
||||||
this.Tags = tags;
|
this.Tags = tags;
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -54,6 +54,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.StringItem = stringItem;
|
this.StringItem = stringItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "numberItem" is required (not null)
|
// to ensure "numberItem" is required (not null)
|
||||||
if (numberItem == null)
|
if (numberItem == null)
|
||||||
{
|
{
|
||||||
@@ -63,6 +64,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.NumberItem = numberItem;
|
this.NumberItem = numberItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "integerItem" is required (not null)
|
// to ensure "integerItem" is required (not null)
|
||||||
if (integerItem == null)
|
if (integerItem == null)
|
||||||
{
|
{
|
||||||
@@ -72,6 +74,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.IntegerItem = integerItem;
|
this.IntegerItem = integerItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "boolItem" is required (not null)
|
// to ensure "boolItem" is required (not null)
|
||||||
if (boolItem == null)
|
if (boolItem == null)
|
||||||
{
|
{
|
||||||
@@ -81,6 +84,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.BoolItem = boolItem;
|
this.BoolItem = boolItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "arrayItem" is required (not null)
|
// to ensure "arrayItem" is required (not null)
|
||||||
if (arrayItem == null)
|
if (arrayItem == null)
|
||||||
{
|
{
|
||||||
@@ -90,6 +94,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.ArrayItem = arrayItem;
|
this.ArrayItem = arrayItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.StringItem = stringItem;
|
this.StringItem = stringItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "numberItem" is required (not null)
|
// to ensure "numberItem" is required (not null)
|
||||||
if (numberItem == null)
|
if (numberItem == null)
|
||||||
{
|
{
|
||||||
@@ -63,6 +64,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.NumberItem = numberItem;
|
this.NumberItem = numberItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "integerItem" is required (not null)
|
// to ensure "integerItem" is required (not null)
|
||||||
if (integerItem == null)
|
if (integerItem == null)
|
||||||
{
|
{
|
||||||
@@ -72,6 +74,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.IntegerItem = integerItem;
|
this.IntegerItem = integerItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "boolItem" is required (not null)
|
// to ensure "boolItem" is required (not null)
|
||||||
if (boolItem == null)
|
if (boolItem == null)
|
||||||
{
|
{
|
||||||
@@ -81,6 +84,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.BoolItem = boolItem;
|
this.BoolItem = boolItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to ensure "arrayItem" is required (not null)
|
// to ensure "arrayItem" is required (not null)
|
||||||
if (arrayItem == null)
|
if (arrayItem == null)
|
||||||
{
|
{
|
||||||
@@ -90,6 +94,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.ArrayItem = arrayItem;
|
this.ArrayItem = arrayItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user