[c-sharp] generator added CancellationToken to async api calls (#6243)

* csharp generator CancellationToken added to async methods

* update samples
This commit is contained in:
DK99 2020-05-11 05:55:48 +02:00 committed by GitHub
parent 57c986f7fa
commit 5693cb9863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
503 changed files with 28055 additions and 6908 deletions

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Org.OpenAPITools.Test")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Org.OpenAPITools.Test")]
[assembly: System.Reflection.AssemblyTitleAttribute("Org.OpenAPITools.Test")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Org.OpenAPITools.Test")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Org.OpenAPITools.Test")]
[assembly: System.Reflection.AssemblyTitleAttribute("Org.OpenAPITools.Test")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
using System.IO;
using System.Threading;
{{^netStandard}}
{{^supportsUWP}}
using System.Web;
@ -235,19 +236,20 @@ namespace {{packageName}}.Client
/// <param name="fileParams">File parameters.</param>
/// <param name="pathParams">Path parameters.</param>
/// <param name="contentType">Content type.</param>
/// <param name="cancellationToken">Cancellation Token.</param>
/// <returns>The Task instance.</returns>
public async System.Threading.Tasks.Task<Object> CallApiAsync(
String path, {{^netStandard}}RestSharp.{{/netStandard}}Method method, List<KeyValuePair<String, String>> queryParams, Object postBody,
Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
Dictionary<String, FileParameter> fileParams, Dictionary<String, String> pathParams,
String contentType)
String contentType, CancellationToken cancellationToken)
{
var request = PrepareRequest(
path, method, queryParams, postBody, headerParams, formParams, fileParams,
pathParams, contentType);
RestClient.UserAgent = Configuration.UserAgent;
InterceptRequest(request);
var response = await RestClient.Execute{{^netStandard}}TaskAsync{{/netStandard}}(request);
var response = await RestClient.Execute{{^netStandard}}TaskAsync{{/netStandard}}(request, cancellationToken);
InterceptResponse(request, response);
return (Object)response;
}{{/supportsAsync}}

View File

@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
{{#netStandard}}
using RestSharp.Portable;
{{/netStandard}}
@ -57,8 +58,9 @@ namespace {{packageName}}.{{apiPackage}}
/// </remarks>
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns>
{{#returnType}}System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{/allParams}}/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns>
{{#returnType}}System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// {{summary}}
@ -68,8 +70,9 @@ namespace {{packageName}}.{{apiPackage}}
/// </remarks>
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{/allParams}}/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}CancellationToken cancellationToken = default(CancellationToken));
{{/operation}}
#endregion Asynchronous Operations
{{/supportsAsync}}
@ -333,11 +336,12 @@ namespace {{packageName}}.{{apiPackage}}
/// </summary>
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns>
{{#returnType}}public async System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{{/allParams}}/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns>
{{#returnType}}public async System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}CancellationToken cancellationToken = default(CancellationToken))
{
{{#returnType}}ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/returnType}}
{{#returnType}}ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken);
return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken);{{/returnType}}
}
@ -346,8 +350,9 @@ namespace {{packageName}}.{{apiPackage}}
/// </summary>
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
public async System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{{/allParams}}/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
public async System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}CancellationToken cancellationToken = default(CancellationToken))
{
{{#allParams}}
{{#required}}
@ -450,7 +455,7 @@ namespace {{packageName}}.{{apiPackage}}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.{{httpMethod}}, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;

View File

@ -21,5 +21,3 @@
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -58,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' AnotherFakeApi
//Assert.IsInstanceOfType(typeof(AnotherFakeApi), instance, "instance is a AnotherFakeApi");
// TODO uncomment below to test 'IsInstanceOf' AnotherFakeApi
//Assert.IsInstanceOf(typeof(AnotherFakeApi), instance);
}
@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//ModelClient body = null;
//var response = instance.Call123TestSpecialTags(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
}
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -58,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' FakeApi
//Assert.IsInstanceOfType(typeof(FakeApi), instance, "instance is a FakeApi");
// TODO uncomment below to test 'IsInstanceOf' FakeApi
//Assert.IsInstanceOf(typeof(FakeApi), instance);
}
@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//bool? body = null;
//var response = instance.FakeOuterBooleanSerialize(body);
//Assert.IsInstanceOf<bool?> (response, "response is bool?");
//Assert.IsInstanceOf(typeof(bool), response, "response is bool");
}
/// <summary>
@ -96,7 +96,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//OuterComposite body = null;
//var response = instance.FakeOuterCompositeSerialize(body);
//Assert.IsInstanceOf<OuterComposite> (response, "response is OuterComposite");
//Assert.IsInstanceOf(typeof(OuterComposite), response, "response is OuterComposite");
}
/// <summary>
@ -108,7 +108,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//decimal? body = null;
//var response = instance.FakeOuterNumberSerialize(body);
//Assert.IsInstanceOf<decimal?> (response, "response is decimal?");
//Assert.IsInstanceOf(typeof(decimal), response, "response is decimal");
}
/// <summary>
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//string body = null;
//var response = instance.FakeOuterStringSerialize(body);
//Assert.IsInstanceOf<string> (response, "response is string");
//Assert.IsInstanceOf(typeof(string), response, "response is string");
}
/// <summary>
@ -157,7 +157,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//ModelClient body = null;
//var response = instance.TestClientModel(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
}
/// <summary>
@ -167,8 +167,8 @@ namespace Org.OpenAPITools.Test
public void TestEndpointParametersTest()
{
// TODO uncomment below to test the method and replace null with proper value
//decimal? number = null;
//double? _double = null;
//decimal number = null;
//double _double = null;
//string patternWithoutDelimiter = null;
//byte[] _byte = null;
//int? integer = null;
@ -211,9 +211,9 @@ namespace Org.OpenAPITools.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 requiredStringGroup = null;
//bool requiredBooleanGroup = null;
//long requiredInt64Group = null;
//int? stringGroup = null;
//bool? booleanGroup = null;
//long? int64Group = null;
@ -246,6 +246,22 @@ namespace Org.OpenAPITools.Test
}
/// <summary>
/// Test TestQueryParameterCollectionFormat
/// </summary>
[Test]
public void TestQueryParameterCollectionFormatTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<string> pipe = null;
//List<string> ioutil = null;
//List<string> http = null;
//List<string> url = null;
//List<string> context = null;
//instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
}
}
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -58,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' FakeClassnameTags123Api
//Assert.IsInstanceOfType(typeof(FakeClassnameTags123Api), instance, "instance is a FakeClassnameTags123Api");
// TODO uncomment below to test 'IsInstanceOf' FakeClassnameTags123Api
//Assert.IsInstanceOf(typeof(FakeClassnameTags123Api), instance);
}
@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//ModelClient body = null;
//var response = instance.TestClassname(body);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
}
}

View File

@ -1,4 +1,14 @@
using System;
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.IO;
using System.Collections.Generic;
using System.Collections.ObjectModel;
@ -13,311 +23,161 @@ using Org.OpenAPITools.Model;
namespace Org.OpenAPITools.Test
{
/// <summary>
/// Class for testing PetApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// Please update the test case below to test the API endpoint.
/// </remarks>
public class PetApiTests
{
private PetApi instance;
/// <summary>
/// Class for testing PetApi
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
public class PetApiTests
{
private PetApi instance;
private long petId = 11088;
/// <summary>
/// Setup before each unit test
/// </summary>
[SetUp]
public void Init()
{
instance = new PetApi();
}
/// <summary>
/// Create a Pet object
/// </summary>
private Pet createPet()
{
// create pet
Pet p = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
p.Id = petId;
//p.Name = "Csharp test";
p.Status = Pet.StatusEnum.Available;
// create Category object
Category category = new Category();
category.Id = 56;
category.Name = "sample category name2";
List<String> photoUrls = new List<String>(new String[] { "sample photoUrls" });
// create Tag object
Tag tag = new Tag();
tag.Id = petId;
tag.Name = "csharp sample tag name1";
List<Tag> tags = new List<Tag>(new Tag[] { tag });
p.Tags = tags;
p.Category = category;
p.PhotoUrls = photoUrls;
/// <summary>
/// Clean up after each unit test
/// </summary>
[TearDown]
public void Cleanup()
{
return p;
}
}
/// <summary>
/// Convert string to byte array
/// </summary>
private byte[] GetBytes(string str)
{
byte[] bytes = new byte[str.Length * sizeof(char)];
System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length);
return bytes;
}
/// <summary>
/// Test an instance of PetApi
/// </summary>
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOf' PetApi
//Assert.IsInstanceOf(typeof(PetApi), instance);
}
/// <summary>
/// Setup before each unit test
/// </summary>
[SetUp]
public void Init()
{
instance = new PetApi();
/// <summary>
/// Test AddPet
/// </summary>
[Test]
public void AddPetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Pet body = null;
//instance.AddPet(body);
}
/// <summary>
/// Test DeletePet
/// </summary>
[Test]
public void DeletePetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long petId = null;
//string apiKey = null;
//instance.DeletePet(petId, apiKey);
}
/// <summary>
/// Test FindPetsByStatus
/// </summary>
[Test]
public void FindPetsByStatusTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<string> status = null;
//var response = instance.FindPetsByStatus(status);
//Assert.IsInstanceOf(typeof(List<Pet>), response, "response is List<Pet>");
}
/// <summary>
/// Test FindPetsByTags
/// </summary>
[Test]
public void FindPetsByTagsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<string> tags = null;
//var response = instance.FindPetsByTags(tags);
//Assert.IsInstanceOf(typeof(List<Pet>), response, "response is List<Pet>");
}
/// <summary>
/// Test GetPetById
/// </summary>
[Test]
public void GetPetByIdTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long petId = null;
//var response = instance.GetPetById(petId);
//Assert.IsInstanceOf(typeof(Pet), response, "response is Pet");
}
/// <summary>
/// Test UpdatePet
/// </summary>
[Test]
public void UpdatePetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Pet body = null;
//instance.UpdatePet(body);
}
/// <summary>
/// Test UpdatePetWithForm
/// </summary>
[Test]
public void UpdatePetWithFormTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long petId = null;
//string name = null;
//string status = null;
//instance.UpdatePetWithForm(petId, name, status);
}
/// <summary>
/// Test UploadFile
/// </summary>
[Test]
public void UploadFileTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long petId = null;
//string additionalMetadata = null;
//System.IO.Stream file = null;
//var response = instance.UploadFile(petId, additionalMetadata, file);
//Assert.IsInstanceOf(typeof(ApiResponse), response, "response is ApiResponse");
}
/// <summary>
/// Test UploadFileWithRequiredFile
/// </summary>
[Test]
public void UploadFileWithRequiredFileTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long petId = null;
//System.IO.Stream requiredFile = null;
//string additionalMetadata = null;
//var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
//Assert.IsInstanceOf(typeof(ApiResponse), response, "response is ApiResponse");
}
}
// create pet
Pet p = createPet();
// add pet before testing
PetApi petApi = new PetApi("http://petstore.swagger.io/v2/");
petApi.AddPet(p);
}
/// <summary>
/// Clean up after each unit test
/// </summary>
[TearDown]
public void Cleanup()
{
// remove the pet after testing
PetApi petApi = new PetApi();
petApi.DeletePet(petId, "test key");
}
/// <summary>
/// Test an instance of PetApi
/// </summary>
[Test]
public void InstanceTest()
{
Assert.IsInstanceOf(typeof(PetApi), instance);
}
/// <summary>
/// Test AddPet
/// </summary>
[Test]
public void AddPetTest()
{
// create pet
Pet p = createPet();
instance.AddPet(p);
}
/// <summary>
/// Test DeletePet
/// </summary>
[Test]
public void DeletePetTest()
{
// no need to test as it'c covered by Cleanup() already
}
/// <summary>
/// Test FindPetsByStatus
/// </summary>
[Test]
public void FindPetsByStatusTest()
{
PetApi petApi = new PetApi();
List<String> tagsList = new List<String>(new String[] { "available" });
List<Pet> listPet = petApi.FindPetsByTags(tagsList);
foreach (Pet pet in listPet) // Loop through List with foreach.
{
Assert.IsInstanceOf(typeof(Pet), pet);
Assert.AreEqual("csharp sample tag name1", pet.Tags[0]);
}
}
/// <summary>
/// Test FindPetsByTags
/// </summary>
[Test]
public void FindPetsByTagsTest()
{
List<string> tags = new List<String>(new String[] { "pet" });
var response = instance.FindPetsByTags(tags);
Assert.IsInstanceOf(typeof(List<Pet>), response);
}
/// <summary>
/// Test GetPetById
/// </summary>
[Test]
public void GetPetByIdTest()
{
// set timeout to 10 seconds
Configuration c1 = new Configuration();
c1.Timeout = 10000;
c1.UserAgent = "TEST_USER_AGENT";
PetApi petApi = new PetApi(c1);
Pet response = petApi.GetPetById(petId);
Assert.IsInstanceOf(typeof(Pet), response);
Assert.AreEqual("Csharp test", response.Name);
Assert.AreEqual(Pet.StatusEnum.Available, response.Status);
Assert.IsInstanceOf(typeof(List<Tag>), response.Tags);
Assert.AreEqual(petId, response.Tags[0].Id);
Assert.AreEqual("csharp sample tag name1", response.Tags[0].Name);
Assert.IsInstanceOf(typeof(List<String>), response.PhotoUrls);
Assert.AreEqual("sample photoUrls", response.PhotoUrls[0]);
Assert.IsInstanceOf(typeof(Category), response.Category);
Assert.AreEqual(56, response.Category.Id);
Assert.AreEqual("sample category name2", response.Category.Name);
}
/// <summary>
/// Test GetPetByIdAsync
/// </summary>
[Test()]
public void TestGetPetByIdAsync()
{
PetApi petApi = new PetApi();
var task = petApi.GetPetByIdAsync(petId);
Pet response = task.Result;
Assert.IsInstanceOf(typeof(Pet), response);
Assert.AreEqual("Csharp test", response.Name);
Assert.AreEqual(Pet.StatusEnum.Available, response.Status);
Assert.IsInstanceOf(typeof(List<Tag>), response.Tags);
Assert.AreEqual(petId, response.Tags[0].Id);
Assert.AreEqual("csharp sample tag name1", response.Tags[0].Name);
Assert.IsInstanceOf(typeof(List<String>), response.PhotoUrls);
Assert.AreEqual("sample photoUrls", response.PhotoUrls[0]);
Assert.IsInstanceOf(typeof(Category), response.Category);
Assert.AreEqual(56, response.Category.Id);
Assert.AreEqual("sample category name2", response.Category.Name);
}
/// <summary>
/// Test GetPetByIdAsyncWithHttpInfo
/// </summary>
[Test()]
public void TestGetPetByIdAsyncWithHttpInfo()
{
PetApi petApi = new PetApi();
var task = petApi.GetPetByIdAsyncWithHttpInfo(petId);
Assert.AreEqual(200, task.Result.StatusCode);
Assert.IsTrue(task.Result.Headers.ContainsKey("Content-Type"));
Assert.AreEqual(task.Result.Headers["Content-Type"], "application/json");
Pet response = task.Result.Data;
Assert.IsInstanceOf(typeof(Pet), response);
Assert.AreEqual("Csharp test", response.Name);
Assert.AreEqual(Pet.StatusEnum.Available, response.Status);
Assert.IsInstanceOf(typeof(List<Tag>), response.Tags);
Assert.AreEqual(petId, response.Tags[0].Id);
Assert.AreEqual("csharp sample tag name1", response.Tags[0].Name);
Assert.IsInstanceOf(typeof(List<String>), response.PhotoUrls);
Assert.AreEqual("sample photoUrls", response.PhotoUrls[0]);
Assert.IsInstanceOf(typeof(Category), response.Category);
Assert.AreEqual(56, response.Category.Id);
Assert.AreEqual("sample category name2", response.Category.Name);
}
/// <summary>
/// Test UpdatePet
/// </summary>
[Test]
public void UpdatePetTest()
{
// create pet
Pet p = createPet();
instance.UpdatePet(p);
}
/// <summary>
/// Test UpdatePetWithForm
/// </summary>
[Test]
public void UpdatePetWithFormTest()
{
PetApi petApi = new PetApi();
petApi.UpdatePetWithForm(petId, "new form name", "pending");
Pet response = petApi.GetPetById(petId);
Assert.IsInstanceOf(typeof(Pet), response);
Assert.IsInstanceOf(typeof(Category), response.Category);
Assert.IsInstanceOf(typeof(List<Tag>), response.Tags);
Assert.AreEqual("new form name", response.Name);
Assert.AreEqual(Pet.StatusEnum.Pending, response.Status);
Assert.AreEqual(petId, response.Tags[0].Id);
Assert.AreEqual(56, response.Category.Id);
// test optional parameter
petApi.UpdatePetWithForm(petId, "new form name2");
Pet response2 = petApi.GetPetById(petId);
Assert.AreEqual("new form name2", response2.Name);
}
/// <summary>
/// Test UploadFile
/// </summary>
[Test]
public void UploadFileTest()
{
Assembly _assembly = Assembly.GetExecutingAssembly();
Stream _imageStream = _assembly.GetManifestResourceStream("Org.OpenAPITools.Test.linux-logo.png");
PetApi petApi = new PetApi();
// test file upload with form parameters
petApi.UploadFile(petId, "new form name", _imageStream);
// test file upload without any form parameters
// using optional parameter syntax introduced at .net 4.0
petApi.UploadFile(petId: petId, file: _imageStream);
}
/// <summary>
/// Test status code
/// </summary>
[Test()]
public void TestStatusCodeAndHeader()
{
PetApi petApi = new PetApi();
var response = petApi.GetPetByIdWithHttpInfo(petId);
Assert.AreEqual(response.StatusCode, 200);
Assert.IsTrue(response.Headers.ContainsKey("Content-Type"));
Assert.AreEqual(response.Headers["Content-Type"], "application/json");
}
/// <summary>
/// Test default header (should be deprecated
/// </summary>
[Test()]
public void TestDefaultHeader()
{
PetApi petApi = new PetApi();
// commented out the warning test below as it's confirmed the warning is working as expected
// there should be a warning for using AddDefaultHeader (deprecated) below
//petApi.AddDefaultHeader ("header_key", "header_value");
// the following should be used instead as suggested in the doc
petApi.Configuration.AddDefaultHeader("header_key2", "header_value2");
}
}
}
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -58,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' StoreApi
//Assert.IsInstanceOfType(typeof(StoreApi), instance, "instance is a StoreApi");
// TODO uncomment below to test 'IsInstanceOf' StoreApi
//Assert.IsInstanceOf(typeof(StoreApi), instance);
}
@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Test
{
// TODO uncomment below to test the method and replace null with proper value
//var response = instance.GetInventory();
//Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>");
//Assert.IsInstanceOf(typeof(Dictionary<string, int>), response, "response is Dictionary<string, int>");
}
/// <summary>
@ -93,9 +93,9 @@ namespace Org.OpenAPITools.Test
public void GetOrderByIdTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long? orderId = null;
//long orderId = null;
//var response = instance.GetOrderById(orderId);
//Assert.IsInstanceOf<Order> (response, "response is Order");
//Assert.IsInstanceOf(typeof(Order), response, "response is Order");
}
/// <summary>
@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//Order body = null;
//var response = instance.PlaceOrder(body);
//Assert.IsInstanceOf<Order> (response, "response is Order");
//Assert.IsInstanceOf(typeof(Order), response, "response is Order");
}
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -58,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' UserApi
//Assert.IsInstanceOfType(typeof(UserApi), instance, "instance is a UserApi");
// TODO uncomment below to test 'IsInstanceOf' UserApi
//Assert.IsInstanceOf(typeof(UserApi), instance);
}
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//string username = null;
//var response = instance.GetUserByName(username);
//Assert.IsInstanceOf<User> (response, "response is User");
//Assert.IsInstanceOf(typeof(User), response, "response is User");
}
/// <summary>
@ -133,7 +133,7 @@ namespace Org.OpenAPITools.Test
//string username = null;
//string password = null;
//var response = instance.LoginUser(username, password);
//Assert.IsInstanceOf<string> (response, "response is string");
//Assert.IsInstanceOf(typeof(string), response, "response is string");
}
/// <summary>

View File

@ -1,139 +0,0 @@
using NUnit.Framework;
using System;
using System.Collections.Generic;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
namespace Org.OpenAPITools.Test
{
public class ApiClientTests
{
public ApiClientTests()
{
}
[TearDown()]
public void TearDown()
{
// Reset to default, just in case
Configuration.Default.DateTimeFormat = "o";
}
/// <summary>
/// Test SelectHeaderContentType
/// </summary>
[Test()]
public void TestSelectHeaderContentType()
{
ApiClient api = new ApiClient();
String[] contentTypes = new String[] { "application/json", "application/xml" };
Assert.AreEqual("application/json", api.SelectHeaderContentType(contentTypes));
contentTypes = new String[] { "application/xml" };
Assert.AreEqual("application/xml", api.SelectHeaderContentType(contentTypes));
contentTypes = new String[] { };
Assert.AreEqual("application/json", api.SelectHeaderContentType(contentTypes));
}
/// <summary>
/// Test ParameterToString
/// </summary>
[Test()]
public void TestParameterToString()
{
ApiClient api = new ApiClient();
// test array of string
List<string> statusList = new List<String>(new String[] { "available", "sold" });
Assert.AreEqual("available,sold", api.ParameterToString(statusList));
// test array of int
List<int> numList = new List<int>(new int[] { 1, 37 });
Assert.AreEqual("1,37", api.ParameterToString(numList));
}
[Test()]
public void TestParameterToStringForDateTime()
{
ApiClient api = new ApiClient();
// test datetime
DateTime dateUtc = DateTime.Parse("2008-04-10T13:30:00.0000000z", null, System.Globalization.DateTimeStyles.RoundtripKind);
Assert.AreEqual("2008-04-10T13:30:00.0000000Z", api.ParameterToString(dateUtc));
// test datetime with no timezone
DateTime dateWithNoTz = DateTime.Parse("2008-04-10T13:30:00.000", null, System.Globalization.DateTimeStyles.RoundtripKind);
Assert.AreEqual("2008-04-10T13:30:00.0000000", api.ParameterToString(dateWithNoTz));
}
// The test below only passes when running at -04:00 timezone
[Ignore("The test below only passes when running at -04:00 timezone")]
public void TestParameterToStringWithTimeZoneForDateTime()
{
ApiClient api = new ApiClient();
// test datetime with a time zone
DateTimeOffset dateWithTz = DateTimeOffset.Parse("2008-04-10T13:30:00.0000000-04:00", null, System.Globalization.DateTimeStyles.RoundtripKind);
Assert.AreEqual("2008-04-10T13:30:00.0000000-04:00", api.ParameterToString(dateWithTz));
}
[Test()]
public void TestParameterToStringForDateTimeWithUFormat()
{
// Setup the DateTimeFormat across all of the calls
Configuration.Default.DateTimeFormat = "u";
ApiClient api = new ApiClient();
// test datetime
DateTime dateUtc = DateTime.Parse("2009-06-15 20:45:30Z", null, System.Globalization.DateTimeStyles.RoundtripKind);
Assert.AreEqual("2009-06-15 20:45:30Z", api.ParameterToString(dateUtc));
}
[Test()]
public void TestParameterToStringForDateTimeWithCustomFormat()
{
// Setup the DateTimeFormat across all of the calls
Configuration.Default.DateTimeFormat = "dd/MM/yy HH:mm:ss";
ApiClient api = new ApiClient();
// test datetime
DateTime dateUtc = DateTime.Parse("2009-06-15 20:45:30Z", null, System.Globalization.DateTimeStyles.RoundtripKind);
Assert.AreEqual("15/06/09 20:45:30", api.ParameterToString(dateUtc));
}
[Test()]
public void TestSanitizeFilename()
{
Assert.AreEqual("sun.gif", ApiClient.SanitizeFilename("sun.gif"));
Assert.AreEqual("sun.gif", ApiClient.SanitizeFilename("../sun.gif"));
Assert.AreEqual("sun.gif", ApiClient.SanitizeFilename("/var/tmp/sun.gif"));
Assert.AreEqual("sun.gif", ApiClient.SanitizeFilename("./sun.gif"));
Assert.AreEqual("sun", ApiClient.SanitizeFilename("sun"));
Assert.AreEqual("sun.gif", ApiClient.SanitizeFilename("..\\sun.gif"));
Assert.AreEqual("sun.gif", ApiClient.SanitizeFilename("\\var\\tmp\\sun.gif"));
Assert.AreEqual("sun.gif", ApiClient.SanitizeFilename("c:\\var\\tmp\\sun.gif"));
Assert.AreEqual("sun.gif", ApiClient.SanitizeFilename(".\\sun.gif"));
}
[Test()]
public void TestApiClientInstance()
{
PetApi p1 = new PetApi();
PetApi p2 = new PetApi();
Configuration c1 = new Configuration(); // using default ApiClient
PetApi p3 = new PetApi(c1);
// ensure both using the same default ApiClient
Assert.AreSame(p1.Configuration.ApiClient, p2.Configuration.ApiClient);
Assert.AreSame(p1.Configuration.ApiClient, Configuration.Default.ApiClient);
// ensure both using the same default ApiClient
Assert.AreSame(p3.Configuration.ApiClient, c1.ApiClient);
}
}
}

View File

@ -1,111 +0,0 @@
using NUnit.Framework;
using System;
using System.Collections.Generic;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
namespace Org.OpenAPITools.Test
{
public class ConfigurationTests
{
public ConfigurationTests()
{
}
[TearDown()]
public void TearDown()
{
// Reset to default, just in case
Configuration.Default.DateTimeFormat = "o";
}
[Test()]
public void TestAuthentication()
{
Configuration c = new Configuration();
c.Username = "test_username";
c.Password = "test_password";
c.ApiKey["api_key_identifier"] = "1233456778889900";
c.ApiKeyPrefix["api_key_identifier"] = "PREFIX";
Assert.AreEqual(c.GetApiKeyWithPrefix("api_key_identifier"), "PREFIX 1233456778889900");
}
[Test()]
public void TestBasePath()
{
PetApi p = new PetApi("http://new-basepath.com");
Assert.AreEqual(p.Configuration.ApiClient.RestClient.BaseUrl, "http://new-basepath.com");
// Given that PetApi is initailized with a base path, a new configuration (with a new ApiClient)
// is created by default
Assert.AreNotSame(p.Configuration, Configuration.Default);
}
[Test()]
public void TestDateTimeFormat_Default()
{
// Should default to the Round-trip Format Specifier - "o"
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
Assert.AreEqual("o", Configuration.Default.DateTimeFormat);
}
[Test()]
public void TestDateTimeFormat_UType()
{
Configuration.Default.DateTimeFormat = "u";
Assert.AreEqual("u", Configuration.Default.DateTimeFormat);
}
[Test()]
public void TestDefautlConfiguration()
{
PetApi p1 = new PetApi();
PetApi p2 = new PetApi();
Assert.AreSame(p1.Configuration, p2.Configuration);
// same as the default
Assert.AreSame(p1.Configuration, Configuration.Default);
Configuration c = new Configuration();
Assert.AreNotSame(c, p1.Configuration);
PetApi p3 = new PetApi(c);
// same as c
Assert.AreSame(p3.Configuration, c);
// not same as default
Assert.AreNotSame(p3.Configuration, p1.Configuration);
}
[Test()]
public void TestUsage()
{
// basic use case using default base URL
PetApi p1 = new PetApi();
Assert.AreSame(p1.Configuration, Configuration.Default, "PetApi should use default configuration");
// using a different base URL
PetApi p2 = new PetApi("http://new-base-url.com/");
Assert.AreEqual(p2.Configuration.ApiClient.RestClient.BaseUrl.ToString(), "http://new-base-url.com/");
// using a different configuration
Configuration c1 = new Configuration();
PetApi p3 = new PetApi(c1);
Assert.AreSame(p3.Configuration, c1);
}
[Test()]
public void TestTimeout()
{
Configuration c1 = new Configuration();
Assert.AreEqual(100000, c1.Timeout); // default vaue
c1.Timeout = 50000;
Assert.AreEqual(50000, c1.Timeout);
}
}
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesAnyTypeInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesAnyType
//Assert.IsInstanceOfType<AdditionalPropertiesAnyType> (instance, "variable 'instance' is a AdditionalPropertiesAnyType");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesAnyType
//Assert.IsInstanceOf(typeof(AdditionalPropertiesAnyType), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesArrayInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesArray
//Assert.IsInstanceOfType<AdditionalPropertiesArray> (instance, "variable 'instance' is a AdditionalPropertiesArray");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesArray
//Assert.IsInstanceOf(typeof(AdditionalPropertiesArray), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesBooleanInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesBoolean
//Assert.IsInstanceOfType<AdditionalPropertiesBoolean> (instance, "variable 'instance' is a AdditionalPropertiesBoolean");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesBoolean
//Assert.IsInstanceOf(typeof(AdditionalPropertiesBoolean), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesClassInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesClass
//Assert.IsInstanceOfType<AdditionalPropertiesClass> (instance, "variable 'instance' is a AdditionalPropertiesClass");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesClass
//Assert.IsInstanceOf(typeof(AdditionalPropertiesClass), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesIntegerInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesInteger
//Assert.IsInstanceOfType<AdditionalPropertiesInteger> (instance, "variable 'instance' is a AdditionalPropertiesInteger");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesInteger
//Assert.IsInstanceOf(typeof(AdditionalPropertiesInteger), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesNumberInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesNumber
//Assert.IsInstanceOfType<AdditionalPropertiesNumber> (instance, "variable 'instance' is a AdditionalPropertiesNumber");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesNumber
//Assert.IsInstanceOf(typeof(AdditionalPropertiesNumber), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesObjectInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesObject
//Assert.IsInstanceOfType<AdditionalPropertiesObject> (instance, "variable 'instance' is a AdditionalPropertiesObject");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesObject
//Assert.IsInstanceOf(typeof(AdditionalPropertiesObject), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesStringInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesString
//Assert.IsInstanceOfType<AdditionalPropertiesString> (instance, "variable 'instance' is a AdditionalPropertiesString");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesString
//Assert.IsInstanceOf(typeof(AdditionalPropertiesString), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AnimalInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Animal
//Assert.IsInstanceOfType<Animal> (instance, "variable 'instance' is a Animal");
// TODO uncomment below to test "IsInstanceOf" Animal
//Assert.IsInstanceOf(typeof(Animal), instance);
}
/// <summary>
@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Test
public void DogDeserializeFromAnimalTest()
{
// TODO uncomment below to test deserialize a Dog from type Animal
//Assert.IsInstanceOf<Animal>(JsonConvert.DeserializeObject<Animal>(new Dog().ToJson()));
//Assert.IsInstanceOf(typeof(Animal), JsonConvert.DeserializeObject<Animal>(new Dog().ToJson()));
}
/// <summary>
/// Test deserialize a Cat from type Animal
@ -80,7 +80,16 @@ namespace Org.OpenAPITools.Test
public void CatDeserializeFromAnimalTest()
{
// TODO uncomment below to test deserialize a Cat from type Animal
//Assert.IsInstanceOf<Animal>(JsonConvert.DeserializeObject<Animal>(new Cat().ToJson()));
//Assert.IsInstanceOf(typeof(Animal), JsonConvert.DeserializeObject<Animal>(new Cat().ToJson()));
}
/// <summary>
/// Test deserialize a BigCat from type Cat
/// </summary>
[Test]
public void BigCatDeserializeFromCatTest()
{
// TODO uncomment below to test deserialize a BigCat from type Cat
//Assert.IsInstanceOf(typeof(Cat), JsonConvert.DeserializeObject<Cat>(new BigCat().ToJson()));
}
/// <summary>

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ApiResponseInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ApiResponse
//Assert.IsInstanceOfType<ApiResponse> (instance, "variable 'instance' is a ApiResponse");
// TODO uncomment below to test "IsInstanceOf" ApiResponse
//Assert.IsInstanceOf(typeof(ApiResponse), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ArrayOfArrayOfNumberOnlyInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ArrayOfArrayOfNumberOnly
//Assert.IsInstanceOfType<ArrayOfArrayOfNumberOnly> (instance, "variable 'instance' is a ArrayOfArrayOfNumberOnly");
// TODO uncomment below to test "IsInstanceOf" ArrayOfArrayOfNumberOnly
//Assert.IsInstanceOf(typeof(ArrayOfArrayOfNumberOnly), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ArrayOfNumberOnlyInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ArrayOfNumberOnly
//Assert.IsInstanceOfType<ArrayOfNumberOnly> (instance, "variable 'instance' is a ArrayOfNumberOnly");
// TODO uncomment below to test "IsInstanceOf" ArrayOfNumberOnly
//Assert.IsInstanceOf(typeof(ArrayOfNumberOnly), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ArrayTestInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ArrayTest
//Assert.IsInstanceOfType<ArrayTest> (instance, "variable 'instance' is a ArrayTest");
// TODO uncomment below to test "IsInstanceOf" ArrayTest
//Assert.IsInstanceOf(typeof(ArrayTest), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void CapitalizationInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Capitalization
//Assert.IsInstanceOfType<Capitalization> (instance, "variable 'instance' is a Capitalization");
// TODO uncomment below to test "IsInstanceOf" Capitalization
//Assert.IsInstanceOf(typeof(Capitalization), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class CatAllOfTests
{
// TODO uncomment below to declare an instance variable for CatAllOf
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void CatAllOfInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" CatAllOf
//Assert.IsInstanceOfType<CatAllOf> (instance, "variable 'instance' is a CatAllOf");
// TODO uncomment below to test "IsInstanceOf" CatAllOf
//Assert.IsInstanceOf(typeof(CatAllOf), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void CatInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Cat
//Assert.IsInstanceOfType<Cat> (instance, "variable 'instance' is a Cat");
// TODO uncomment below to test "IsInstanceOf" Cat
//Assert.IsInstanceOf(typeof(Cat), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void CategoryInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Category
//Assert.IsInstanceOfType<Category> (instance, "variable 'instance' is a Category");
// TODO uncomment below to test "IsInstanceOf" Category
//Assert.IsInstanceOf(typeof(Category), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ClassModelInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ClassModel
//Assert.IsInstanceOfType<ClassModel> (instance, "variable 'instance' is a ClassModel");
// TODO uncomment below to test "IsInstanceOf" ClassModel
//Assert.IsInstanceOf(typeof(ClassModel), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class DogAllOfTests
{
// TODO uncomment below to declare an instance variable for DogAllOf
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void DogAllOfInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" DogAllOf
//Assert.IsInstanceOfType<DogAllOf> (instance, "variable 'instance' is a DogAllOf");
// TODO uncomment below to test "IsInstanceOf" DogAllOf
//Assert.IsInstanceOf(typeof(DogAllOf), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void DogInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Dog
//Assert.IsInstanceOfType<Dog> (instance, "variable 'instance' is a Dog");
// TODO uncomment below to test "IsInstanceOf" Dog
//Assert.IsInstanceOf(typeof(Dog), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void EnumArraysInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" EnumArrays
//Assert.IsInstanceOfType<EnumArrays> (instance, "variable 'instance' is a EnumArrays");
// TODO uncomment below to test "IsInstanceOf" EnumArrays
//Assert.IsInstanceOf(typeof(EnumArrays), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void EnumClassInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" EnumClass
//Assert.IsInstanceOfType<EnumClass> (instance, "variable 'instance' is a EnumClass");
// TODO uncomment below to test "IsInstanceOf" EnumClass
//Assert.IsInstanceOf(typeof(EnumClass), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void EnumTestInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" EnumTest
//Assert.IsInstanceOfType<EnumTest> (instance, "variable 'instance' is a EnumTest");
// TODO uncomment below to test "IsInstanceOf" EnumTest
//Assert.IsInstanceOf(typeof(EnumTest), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void FileSchemaTestClassInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" FileSchemaTestClass
//Assert.IsInstanceOfType<FileSchemaTestClass> (instance, "variable 'instance' is a FileSchemaTestClass");
// TODO uncomment below to test "IsInstanceOf" FileSchemaTestClass
//Assert.IsInstanceOf(typeof(FileSchemaTestClass), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void FileInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" File
//Assert.IsInstanceOfType<File> (instance, "variable 'instance' is a File");
// TODO uncomment below to test "IsInstanceOf" File
//Assert.IsInstanceOf(typeof(File), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void FormatTestInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" FormatTest
//Assert.IsInstanceOfType<FormatTest> (instance, "variable 'instance' is a FormatTest");
// TODO uncomment below to test "IsInstanceOf" FormatTest
//Assert.IsInstanceOf(typeof(FormatTest), instance);
}
@ -169,6 +169,14 @@ namespace Org.OpenAPITools.Test
{
// TODO unit test for the property 'Password'
}
/// <summary>
/// Test the property 'BigDecimal'
/// </summary>
[Test]
public void BigDecimalTest()
{
// TODO unit test for the property 'BigDecimal'
}
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void HasOnlyReadOnlyInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" HasOnlyReadOnly
//Assert.IsInstanceOfType<HasOnlyReadOnly> (instance, "variable 'instance' is a HasOnlyReadOnly");
// TODO uncomment below to test "IsInstanceOf" HasOnlyReadOnly
//Assert.IsInstanceOf(typeof(HasOnlyReadOnly), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ListInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" List
//Assert.IsInstanceOfType<List> (instance, "variable 'instance' is a List");
// TODO uncomment below to test "IsInstanceOf" List
//Assert.IsInstanceOf(typeof(List), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void MapTestInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" MapTest
//Assert.IsInstanceOfType<MapTest> (instance, "variable 'instance' is a MapTest");
// TODO uncomment below to test "IsInstanceOf" MapTest
//Assert.IsInstanceOf(typeof(MapTest), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" MixedPropertiesAndAdditionalPropertiesClass
//Assert.IsInstanceOfType<MixedPropertiesAndAdditionalPropertiesClass> (instance, "variable 'instance' is a MixedPropertiesAndAdditionalPropertiesClass");
// TODO uncomment below to test "IsInstanceOf" MixedPropertiesAndAdditionalPropertiesClass
//Assert.IsInstanceOf(typeof(MixedPropertiesAndAdditionalPropertiesClass), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void Model200ResponseInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Model200Response
//Assert.IsInstanceOfType<Model200Response> (instance, "variable 'instance' is a Model200Response");
// TODO uncomment below to test "IsInstanceOf" Model200Response
//Assert.IsInstanceOf(typeof(Model200Response), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ModelClientInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ModelClient
//Assert.IsInstanceOfType<ModelClient> (instance, "variable 'instance' is a ModelClient");
// TODO uncomment below to test "IsInstanceOf" ModelClient
//Assert.IsInstanceOf(typeof(ModelClient), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void NameInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Name
//Assert.IsInstanceOfType<Name> (instance, "variable 'instance' is a Name");
// TODO uncomment below to test "IsInstanceOf" Name
//Assert.IsInstanceOf(typeof(Name), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void NumberOnlyInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" NumberOnly
//Assert.IsInstanceOfType<NumberOnly> (instance, "variable 'instance' is a NumberOnly");
// TODO uncomment below to test "IsInstanceOf" NumberOnly
//Assert.IsInstanceOf(typeof(NumberOnly), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void OrderInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Order
//Assert.IsInstanceOfType<Order> (instance, "variable 'instance' is a Order");
// TODO uncomment below to test "IsInstanceOf" Order
//Assert.IsInstanceOf(typeof(Order), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void OuterCompositeInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" OuterComposite
//Assert.IsInstanceOfType<OuterComposite> (instance, "variable 'instance' is a OuterComposite");
// TODO uncomment below to test "IsInstanceOf" OuterComposite
//Assert.IsInstanceOf(typeof(OuterComposite), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void OuterEnumInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" OuterEnum
//Assert.IsInstanceOfType<OuterEnum> (instance, "variable 'instance' is a OuterEnum");
// TODO uncomment below to test "IsInstanceOf" OuterEnum
//Assert.IsInstanceOf(typeof(OuterEnum), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -32,9 +32,8 @@ namespace Org.OpenAPITools.Test
/// </remarks>
public class PetTests
{
private Pet instance;
private long petId = 11088;
// TODO uncomment below to declare an instance variable for Pet
//private Pet instance;
/// <summary>
/// Setup before each test
@ -42,7 +41,8 @@ namespace Org.OpenAPITools.Test
[SetUp]
public void Init()
{
instance = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
// TODO uncomment below to create an instance of Pet
//instance = new Pet();
}
/// <summary>
@ -60,7 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void PetInstanceTest()
{
Assert.IsInstanceOf(typeof(Pet), instance);
// TODO uncomment below to test "IsInstanceOf" Pet
//Assert.IsInstanceOf(typeof(Pet), instance);
}
@ -113,80 +114,6 @@ namespace Org.OpenAPITools.Test
// TODO unit test for the property 'Status'
}
/// <summary>
/// Test serialization
/// </summary>
[Test()]
public void TestSerialization()
{
// create pet
Pet p1 = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
Assert.AreEqual("{\"name\":\"Csharp test\",\"photoUrls\":[\"http://petstore.com/csharp_test\"]}", JsonConvert.SerializeObject(p1));
}
/// <summary>
/// Test Equal
/// </summary>
[Test()]
public void TestEqual()
{
// create pet
Pet p1 = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
p1.Id = petId;
//p1.Name = "Csharp test";
p1.Status = Pet.StatusEnum.Available;
// create Category object
Category category1 = new Category();
category1.Id = 56;
category1.Name = "sample category name2";
List<String> photoUrls1 = new List<String>(new String[] { "sample photoUrls" });
// create Tag object
Tag tag1 = new Tag();
tag1.Id = petId;
tag1.Name = "csharp sample tag name1";
List<Tag> tags1 = new List<Tag>(new Tag[] { tag1 });
p1.Tags = tags1;
p1.Category = category1;
p1.PhotoUrls = photoUrls1;
// create pet 2
Pet p2 = new Pet(name: "Csharp test", photoUrls: new List<string> { "http://petstore.com/csharp_test" });
p2.Id = petId;
p2.Name = "Csharp test";
p2.Status = Pet.StatusEnum.Available;
// create Category object
Category category2 = new Category();
category2.Id = 56;
category2.Name = "sample category name2";
List<String> photoUrls2 = new List<String>(new String[] { "sample photoUrls" });
// create Tag object
Tag tag2 = new Tag();
tag2.Id = petId;
tag2.Name = "csharp sample tag name1";
List<Tag> tags2 = new List<Tag>(new Tag[] { tag2 });
p2.Tags = tags2;
p2.Category = category2;
p2.PhotoUrls = photoUrls2;
// p1 and p2 should be equal (both object and attribute level)
Assert.IsTrue(category1.Equals(category2));
Assert.IsTrue(tags1.SequenceEqual(tags2));
Assert.IsTrue(p1.PhotoUrls.SequenceEqual(p2.PhotoUrls));
Assert.IsTrue(p1.Equals(p2));
// update attribute to that p1 and p2 are not equal
category2.Name = "new category name";
Assert.IsFalse(category1.Equals(category2));
tags2 = new List<Tag>();
Assert.IsFalse(tags1.SequenceEqual(tags2));
// photoUrls has not changed so it should be equal
Assert.IsTrue(p1.PhotoUrls.SequenceEqual(p2.PhotoUrls));
Assert.IsFalse(p1.Equals(p2));
}
}
}
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ReadOnlyFirstInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ReadOnlyFirst
//Assert.IsInstanceOfType<ReadOnlyFirst> (instance, "variable 'instance' is a ReadOnlyFirst");
// TODO uncomment below to test "IsInstanceOf" ReadOnlyFirst
//Assert.IsInstanceOf(typeof(ReadOnlyFirst), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ReturnInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Return
//Assert.IsInstanceOfType<Return> (instance, "variable 'instance' is a Return");
// TODO uncomment below to test "IsInstanceOf" Return
//Assert.IsInstanceOf(typeof(Return), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void SpecialModelNameInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" SpecialModelName
//Assert.IsInstanceOfType<SpecialModelName> (instance, "variable 'instance' is a SpecialModelName");
// TODO uncomment below to test "IsInstanceOf" SpecialModelName
//Assert.IsInstanceOf(typeof(SpecialModelName), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void TagInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Tag
//Assert.IsInstanceOfType<Tag> (instance, "variable 'instance' is a Tag");
// TODO uncomment below to test "IsInstanceOf" Tag
//Assert.IsInstanceOf(typeof(Tag), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void TypeHolderDefaultInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" TypeHolderDefault
//Assert.IsInstanceOfType<TypeHolderDefault> (instance, "variable 'instance' is a TypeHolderDefault");
// TODO uncomment below to test "IsInstanceOf" TypeHolderDefault
//Assert.IsInstanceOf(typeof(TypeHolderDefault), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void TypeHolderExampleInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" TypeHolderExample
//Assert.IsInstanceOfType<TypeHolderExample> (instance, "variable 'instance' is a TypeHolderExample");
// TODO uncomment below to test "IsInstanceOf" TypeHolderExample
//Assert.IsInstanceOf(typeof(TypeHolderExample), instance);
}
@ -82,6 +82,14 @@ namespace Org.OpenAPITools.Test
// TODO unit test for the property 'NumberItem'
}
/// <summary>
/// Test the property 'FloatItem'
/// </summary>
[Test]
public void FloatItemTest()
{
// TODO unit test for the property 'FloatItem'
}
/// <summary>
/// Test the property 'IntegerItem'
/// </summary>
[Test]

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void UserInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" User
//Assert.IsInstanceOfType<User> (instance, "variable 'instance' is a User");
// TODO uncomment below to test "IsInstanceOf" User
//Assert.IsInstanceOf(typeof(User), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -60,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void XmlItemInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" XmlItem
//Assert.IsInstanceOfType<XmlItem> (instance, "variable 'instance' is a XmlItem");
// TODO uncomment below to test "IsInstanceOf" XmlItem
//Assert.IsInstanceOf(typeof(XmlItem), instance);
}

View File

@ -12,6 +12,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using RestSharp;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
@ -55,8 +56,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body);
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// To test special tags
@ -66,8 +68,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ModelClient)</returns>
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body);
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body, CancellationToken cancellationToken = default(CancellationToken));
#endregion Asynchronous Operations
}
@ -258,10 +261,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ModelClient</returns>
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body)
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(body);
ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(body, cancellationToken);
return localVarResponse.Data;
}
@ -271,8 +275,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ModelClient)</returns>
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body)
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -313,7 +318,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;

View File

@ -12,6 +12,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using RestSharp;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
@ -390,8 +391,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="xmlItem">XmlItem Body</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateXmlItemAsync (XmlItem xmlItem);
System.Threading.Tasks.Task CreateXmlItemAsync (XmlItem xmlItem, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// creates an XmlItem
@ -401,8 +403,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="xmlItem">XmlItem Body</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CreateXmlItemAsyncWithHttpInfo (XmlItem xmlItem);
System.Threading.Tasks.Task<ApiResponse<Object>> CreateXmlItemAsyncWithHttpInfo (XmlItem xmlItem, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
/// </summary>
@ -411,8 +414,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of bool</returns>
System.Threading.Tasks.Task<bool> FakeOuterBooleanSerializeAsync (bool? body = default(bool?));
System.Threading.Tasks.Task<bool> FakeOuterBooleanSerializeAsync (bool? body = default(bool?), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
@ -422,8 +426,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (bool)</returns>
System.Threading.Tasks.Task<ApiResponse<bool>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = default(bool?));
System.Threading.Tasks.Task<ApiResponse<bool>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = default(bool?), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
/// </summary>
@ -432,8 +437,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of OuterComposite</returns>
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = default(OuterComposite));
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = default(OuterComposite), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
@ -443,8 +449,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (OuterComposite)</returns>
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = default(OuterComposite));
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = default(OuterComposite), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
/// </summary>
@ -453,8 +460,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of decimal</returns>
System.Threading.Tasks.Task<decimal> FakeOuterNumberSerializeAsync (decimal? body = default(decimal?));
System.Threading.Tasks.Task<decimal> FakeOuterNumberSerializeAsync (decimal? body = default(decimal?), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
@ -464,8 +472,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (decimal)</returns>
System.Threading.Tasks.Task<ApiResponse<decimal>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = default(decimal?));
System.Threading.Tasks.Task<ApiResponse<decimal>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = default(decimal?), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
/// </summary>
@ -474,8 +483,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of string</returns>
System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = default(string));
System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
@ -485,8 +495,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (string)</returns>
System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = default(string));
System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
/// </summary>
@ -495,8 +506,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body);
System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
@ -506,8 +518,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body);
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
/// </summary>
@ -517,8 +530,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param>
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body);
System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
@ -529,8 +543,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param>
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body);
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// To test \&quot;client\&quot; model
/// </summary>
@ -539,8 +554,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body);
System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// To test \&quot;client\&quot; model
@ -550,8 +566,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ModelClient)</returns>
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body);
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
/// </summary>
@ -573,8 +590,9 @@ namespace Org.OpenAPITools.Api
/// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string));
System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -597,8 +615,9 @@ namespace Org.OpenAPITools.Api
/// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string));
System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// To test enum parameters
/// </summary>
@ -614,8 +633,9 @@ namespace Org.OpenAPITools.Api
/// <param name="enumQueryDouble">Query parameter enum test (double) (optional)</param>
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// To test enum parameters
@ -632,8 +652,9 @@ namespace Org.OpenAPITools.Api
/// <param name="enumQueryDouble">Query parameter enum test (double) (optional)</param>
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Fake endpoint to test group parameters (optional)
/// </summary>
@ -647,8 +668,9 @@ namespace Org.OpenAPITools.Api
/// <param name="stringGroup">String in group parameters (optional)</param>
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task TestGroupParametersAsync (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?));
System.Threading.Tasks.Task TestGroupParametersAsync (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Fake endpoint to test group parameters (optional)
@ -663,8 +685,9 @@ namespace Org.OpenAPITools.Api
/// <param name="stringGroup">String in group parameters (optional)</param>
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?));
System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// test inline additionalProperties
/// </summary>
@ -673,8 +696,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="param">request body</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param);
System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// test inline additionalProperties
@ -684,8 +708,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="param">request body</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param);
System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// test json serialization of form data
/// </summary>
@ -695,8 +720,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="param">field1</param>
/// <param name="param2">field2</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task TestJsonFormDataAsync (string param, string param2);
System.Threading.Tasks.Task TestJsonFormDataAsync (string param, string param2, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// test json serialization of form data
@ -707,8 +733,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="param">field1</param>
/// <param name="param2">field2</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestJsonFormDataAsyncWithHttpInfo (string param, string param2);
System.Threading.Tasks.Task<ApiResponse<Object>> TestJsonFormDataAsyncWithHttpInfo (string param, string param2, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
/// </summary>
@ -721,8 +748,9 @@ namespace Org.OpenAPITools.Api
/// <param name="http"></param>
/// <param name="url"></param>
/// <param name="context"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
///
@ -736,8 +764,9 @@ namespace Org.OpenAPITools.Api
/// <param name="http"></param>
/// <param name="url"></param>
/// <param name="context"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context);
System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context, CancellationToken cancellationToken = default(CancellationToken));
#endregion Asynchronous Operations
}
@ -931,10 +960,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="xmlItem">XmlItem Body</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task CreateXmlItemAsync (XmlItem xmlItem)
public async System.Threading.Tasks.Task CreateXmlItemAsync (XmlItem xmlItem, CancellationToken cancellationToken = default(CancellationToken))
{
await CreateXmlItemAsyncWithHttpInfo(xmlItem);
await CreateXmlItemAsyncWithHttpInfo(xmlItem, cancellationToken);
}
@ -943,8 +973,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="xmlItem">XmlItem Body</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateXmlItemAsyncWithHttpInfo (XmlItem xmlItem)
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateXmlItemAsyncWithHttpInfo (XmlItem xmlItem, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'xmlItem' is set
if (xmlItem == null)
@ -989,7 +1020,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1079,10 +1110,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of bool</returns>
public async System.Threading.Tasks.Task<bool> FakeOuterBooleanSerializeAsync (bool? body = default(bool?))
public async System.Threading.Tasks.Task<bool> FakeOuterBooleanSerializeAsync (bool? body = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<bool> localVarResponse = await FakeOuterBooleanSerializeAsyncWithHttpInfo(body);
ApiResponse<bool> localVarResponse = await FakeOuterBooleanSerializeAsyncWithHttpInfo(body, cancellationToken);
return localVarResponse.Data;
}
@ -1092,8 +1124,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (bool)</returns>
public async System.Threading.Tasks.Task<ApiResponse<bool>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = default(bool?))
public async System.Threading.Tasks.Task<ApiResponse<bool>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
var localVarPath = "/fake/outer/boolean";
@ -1130,7 +1163,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1220,10 +1253,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of OuterComposite</returns>
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = default(OuterComposite))
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = default(OuterComposite), CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body);
ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body, cancellationToken);
return localVarResponse.Data;
}
@ -1233,8 +1267,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (OuterComposite)</returns>
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = default(OuterComposite))
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = default(OuterComposite), CancellationToken cancellationToken = default(CancellationToken))
{
var localVarPath = "/fake/outer/composite";
@ -1271,7 +1306,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1361,10 +1396,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of decimal</returns>
public async System.Threading.Tasks.Task<decimal> FakeOuterNumberSerializeAsync (decimal? body = default(decimal?))
public async System.Threading.Tasks.Task<decimal> FakeOuterNumberSerializeAsync (decimal? body = default(decimal?), CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<decimal> localVarResponse = await FakeOuterNumberSerializeAsyncWithHttpInfo(body);
ApiResponse<decimal> localVarResponse = await FakeOuterNumberSerializeAsyncWithHttpInfo(body, cancellationToken);
return localVarResponse.Data;
}
@ -1374,8 +1410,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (decimal)</returns>
public async System.Threading.Tasks.Task<ApiResponse<decimal>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = default(decimal?))
public async System.Threading.Tasks.Task<ApiResponse<decimal>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = default(decimal?), CancellationToken cancellationToken = default(CancellationToken))
{
var localVarPath = "/fake/outer/number";
@ -1412,7 +1449,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1502,10 +1539,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of string</returns>
public async System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = default(string))
public async System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<string> localVarResponse = await FakeOuterStringSerializeAsyncWithHttpInfo(body);
ApiResponse<string> localVarResponse = await FakeOuterStringSerializeAsyncWithHttpInfo(body, cancellationToken);
return localVarResponse.Data;
}
@ -1515,8 +1553,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (string)</returns>
public async System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = default(string))
public async System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
var localVarPath = "/fake/outer/string";
@ -1553,7 +1592,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1645,10 +1684,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body)
public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body, CancellationToken cancellationToken = default(CancellationToken))
{
await TestBodyWithFileSchemaAsyncWithHttpInfo(body);
await TestBodyWithFileSchemaAsyncWithHttpInfo(body, cancellationToken);
}
@ -1657,8 +1697,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body)
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -1698,7 +1739,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1797,10 +1838,11 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param>
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body)
public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body, CancellationToken cancellationToken = default(CancellationToken))
{
await TestBodyWithQueryParamsAsyncWithHttpInfo(query, body);
await TestBodyWithQueryParamsAsyncWithHttpInfo(query, body, cancellationToken);
}
@ -1810,8 +1852,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param>
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body)
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'query' is set
if (query == null)
@ -1855,7 +1898,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1949,10 +1992,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ModelClient</returns>
public async System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body)
public async System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<ModelClient> localVarResponse = await TestClientModelAsyncWithHttpInfo(body);
ApiResponse<ModelClient> localVarResponse = await TestClientModelAsyncWithHttpInfo(body, cancellationToken);
return localVarResponse.Data;
}
@ -1962,8 +2006,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ModelClient)</returns>
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body)
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -2004,7 +2049,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -2156,10 +2201,11 @@ namespace Org.OpenAPITools.Api
/// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string))
public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
await TestEndpointParametersAsyncWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
await TestEndpointParametersAsyncWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken);
}
@ -2181,8 +2227,9 @@ namespace Org.OpenAPITools.Api
/// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string))
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'number' is set
if (number == null)
@ -2243,7 +2290,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -2353,10 +2400,11 @@ namespace Org.OpenAPITools.Api
/// <param name="enumQueryDouble">Query parameter enum test (double) (optional)</param>
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
public async System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
await TestEnumParametersAsyncWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
await TestEnumParametersAsyncWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken);
}
@ -2372,8 +2420,9 @@ namespace Org.OpenAPITools.Api
/// <param name="enumQueryDouble">Query parameter enum test (double) (optional)</param>
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
var localVarPath = "/fake";
@ -2410,7 +2459,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -2520,10 +2569,11 @@ namespace Org.OpenAPITools.Api
/// <param name="stringGroup">String in group parameters (optional)</param>
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestGroupParametersAsync (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?))
public async System.Threading.Tasks.Task TestGroupParametersAsync (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), CancellationToken cancellationToken = default(CancellationToken))
{
await TestGroupParametersAsyncWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
await TestGroupParametersAsyncWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken);
}
@ -2537,8 +2587,9 @@ namespace Org.OpenAPITools.Api
/// <param name="stringGroup">String in group parameters (optional)</param>
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?))
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null)
@ -2581,7 +2632,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -2673,10 +2724,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="param">request body</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param)
public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param, CancellationToken cancellationToken = default(CancellationToken))
{
await TestInlineAdditionalPropertiesAsyncWithHttpInfo(param);
await TestInlineAdditionalPropertiesAsyncWithHttpInfo(param, cancellationToken);
}
@ -2685,8 +2737,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="param">request body</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param)
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'param' is set
if (param == null)
@ -2726,7 +2779,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -2818,10 +2871,11 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="param">field1</param>
/// <param name="param2">field2</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestJsonFormDataAsync (string param, string param2)
public async System.Threading.Tasks.Task TestJsonFormDataAsync (string param, string param2, CancellationToken cancellationToken = default(CancellationToken))
{
await TestJsonFormDataAsyncWithHttpInfo(param, param2);
await TestJsonFormDataAsyncWithHttpInfo(param, param2, cancellationToken);
}
@ -2831,8 +2885,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="param">field1</param>
/// <param name="param2">field2</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestJsonFormDataAsyncWithHttpInfo (string param, string param2)
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestJsonFormDataAsyncWithHttpInfo (string param, string param2, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'param' is set
if (param == null)
@ -2869,7 +2924,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -2981,10 +3036,11 @@ namespace Org.OpenAPITools.Api
/// <param name="http"></param>
/// <param name="url"></param>
/// <param name="context"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context, CancellationToken cancellationToken = default(CancellationToken))
{
await TestQueryParameterCollectionFormatAsyncWithHttpInfo(pipe, ioutil, http, url, context);
await TestQueryParameterCollectionFormatAsyncWithHttpInfo(pipe, ioutil, http, url, context, cancellationToken);
}
@ -2997,8 +3053,9 @@ namespace Org.OpenAPITools.Api
/// <param name="http"></param>
/// <param name="url"></param>
/// <param name="context"></param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestQueryParameterCollectionFormatAsyncWithHttpInfo (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'pipe' is set
if (pipe == null)
@ -3046,7 +3103,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;

View File

@ -12,6 +12,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using RestSharp;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
@ -55,8 +56,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body);
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// To test class name in snake case
@ -66,8 +68,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ModelClient)</returns>
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body);
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body, CancellationToken cancellationToken = default(CancellationToken));
#endregion Asynchronous Operations
}
@ -263,10 +266,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ModelClient</returns>
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body)
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<ModelClient> localVarResponse = await TestClassnameAsyncWithHttpInfo(body);
ApiResponse<ModelClient> localVarResponse = await TestClassnameAsyncWithHttpInfo(body, cancellationToken);
return localVarResponse.Data;
}
@ -276,8 +280,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">client model</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ModelClient)</returns>
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body)
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -323,7 +328,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;

View File

@ -12,6 +12,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using RestSharp;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
@ -237,8 +238,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Pet object that needs to be added to the store</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task AddPetAsync (Pet body);
System.Threading.Tasks.Task AddPetAsync (Pet body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Add a new pet to the store
@ -248,8 +250,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Pet object that needs to be added to the store</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body);
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes a pet
/// </summary>
@ -259,8 +262,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task DeletePetAsync (long petId, string apiKey = default(string));
System.Threading.Tasks.Task DeletePetAsync (long petId, string apiKey = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes a pet
@ -271,8 +275,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long petId, string apiKey = default(string));
System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long petId, string apiKey = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Finds Pets by status
/// </summary>
@ -281,8 +286,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="status">Status values that need to be considered for filter</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of List&lt;Pet&gt;</returns>
System.Threading.Tasks.Task<List<Pet>> FindPetsByStatusAsync (List<string> status);
System.Threading.Tasks.Task<List<Pet>> FindPetsByStatusAsync (List<string> status, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Finds Pets by status
@ -292,8 +298,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="status">Status values that need to be considered for filter</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (List&lt;Pet&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByStatusAsyncWithHttpInfo (List<string> status);
System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByStatusAsyncWithHttpInfo (List<string> status, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Finds Pets by tags
/// </summary>
@ -302,8 +309,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="tags">Tags to filter by</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of List&lt;Pet&gt;</returns>
System.Threading.Tasks.Task<List<Pet>> FindPetsByTagsAsync (List<string> tags);
System.Threading.Tasks.Task<List<Pet>> FindPetsByTagsAsync (List<string> tags, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Finds Pets by tags
@ -313,8 +321,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="tags">Tags to filter by</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (List&lt;Pet&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByTagsAsyncWithHttpInfo (List<string> tags);
System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByTagsAsyncWithHttpInfo (List<string> tags, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Find pet by ID
/// </summary>
@ -323,8 +332,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of Pet</returns>
System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long petId);
System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long petId, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Find pet by ID
@ -334,8 +344,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (Pet)</returns>
System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long petId);
System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long petId, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Update an existing pet
/// </summary>
@ -344,8 +355,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Pet object that needs to be added to the store</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task UpdatePetAsync (Pet body);
System.Threading.Tasks.Task UpdatePetAsync (Pet body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Update an existing pet
@ -355,8 +367,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Pet object that needs to be added to the store</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body);
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates a pet in the store with form data
/// </summary>
@ -367,8 +380,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet that needs to be updated</param>
/// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task UpdatePetWithFormAsync (long petId, string name = default(string), string status = default(string));
System.Threading.Tasks.Task UpdatePetWithFormAsync (long petId, string name = default(string), string status = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates a pet in the store with form data
@ -380,8 +394,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet that needs to be updated</param>
/// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long petId, string name = default(string), string status = default(string));
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long petId, string name = default(string), string status = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// uploads an image
/// </summary>
@ -392,8 +407,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet to update</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// uploads an image
@ -405,8 +421,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet to update</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ApiResponse)</returns>
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// uploads an image (required)
/// </summary>
@ -417,8 +434,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet to update</param>
/// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// uploads an image (required)
@ -430,8 +448,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet to update</param>
/// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ApiResponse)</returns>
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), CancellationToken cancellationToken = default(CancellationToken));
#endregion Asynchronous Operations
}
@ -627,10 +646,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Pet object that needs to be added to the store</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task AddPetAsync (Pet body)
public async System.Threading.Tasks.Task AddPetAsync (Pet body, CancellationToken cancellationToken = default(CancellationToken))
{
await AddPetAsyncWithHttpInfo(body);
await AddPetAsyncWithHttpInfo(body, cancellationToken);
}
@ -639,8 +659,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Pet object that needs to be added to the store</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body)
public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -687,7 +708,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -781,10 +802,11 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task DeletePetAsync (long petId, string apiKey = default(string))
public async System.Threading.Tasks.Task DeletePetAsync (long petId, string apiKey = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
await DeletePetAsyncWithHttpInfo(petId, apiKey);
await DeletePetAsyncWithHttpInfo(petId, apiKey, cancellationToken);
}
@ -794,8 +816,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long petId, string apiKey = default(string))
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long petId, string apiKey = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'petId' is set
if (petId == null)
@ -834,7 +857,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -927,10 +950,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="status">Status values that need to be considered for filter</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of List&lt;Pet&gt;</returns>
public async System.Threading.Tasks.Task<List<Pet>> FindPetsByStatusAsync (List<string> status)
public async System.Threading.Tasks.Task<List<Pet>> FindPetsByStatusAsync (List<string> status, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<List<Pet>> localVarResponse = await FindPetsByStatusAsyncWithHttpInfo(status);
ApiResponse<List<Pet>> localVarResponse = await FindPetsByStatusAsyncWithHttpInfo(status, cancellationToken);
return localVarResponse.Data;
}
@ -940,8 +964,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="status">Status values that need to be considered for filter</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (List&lt;Pet&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByStatusAsyncWithHttpInfo (List<string> status)
public async System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByStatusAsyncWithHttpInfo (List<string> status, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'status' is set
if (status == null)
@ -981,7 +1006,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1074,10 +1099,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="tags">Tags to filter by</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of List&lt;Pet&gt;</returns>
public async System.Threading.Tasks.Task<List<Pet>> FindPetsByTagsAsync (List<string> tags)
public async System.Threading.Tasks.Task<List<Pet>> FindPetsByTagsAsync (List<string> tags, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<List<Pet>> localVarResponse = await FindPetsByTagsAsyncWithHttpInfo(tags);
ApiResponse<List<Pet>> localVarResponse = await FindPetsByTagsAsyncWithHttpInfo(tags, cancellationToken);
return localVarResponse.Data;
}
@ -1087,8 +1113,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="tags">Tags to filter by</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (List&lt;Pet&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByTagsAsyncWithHttpInfo (List<string> tags)
public async System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByTagsAsyncWithHttpInfo (List<string> tags, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'tags' is set
if (tags == null)
@ -1128,7 +1155,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1220,10 +1247,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of Pet</returns>
public async System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long petId)
public async System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long petId, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<Pet> localVarResponse = await GetPetByIdAsyncWithHttpInfo(petId);
ApiResponse<Pet> localVarResponse = await GetPetByIdAsyncWithHttpInfo(petId, cancellationToken);
return localVarResponse.Data;
}
@ -1233,8 +1261,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (Pet)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long petId)
public async System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long petId, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'petId' is set
if (petId == null)
@ -1273,7 +1302,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1372,10 +1401,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Pet object that needs to be added to the store</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task UpdatePetAsync (Pet body)
public async System.Threading.Tasks.Task UpdatePetAsync (Pet body, CancellationToken cancellationToken = default(CancellationToken))
{
await UpdatePetAsyncWithHttpInfo(body);
await UpdatePetAsyncWithHttpInfo(body, cancellationToken);
}
@ -1384,8 +1414,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Pet object that needs to be added to the store</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body)
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -1432,7 +1463,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1531,10 +1562,11 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet that needs to be updated</param>
/// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task UpdatePetWithFormAsync (long petId, string name = default(string), string status = default(string))
public async System.Threading.Tasks.Task UpdatePetWithFormAsync (long petId, string name = default(string), string status = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
await UpdatePetWithFormAsyncWithHttpInfo(petId, name, status);
await UpdatePetWithFormAsyncWithHttpInfo(petId, name, status, cancellationToken);
}
@ -1545,8 +1577,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet that needs to be updated</param>
/// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long petId, string name = default(string), string status = default(string))
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long petId, string name = default(string), string status = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'petId' is set
if (petId == null)
@ -1587,7 +1620,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1688,10 +1721,11 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet to update</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
public async System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<ApiResponse> localVarResponse = await UploadFileAsyncWithHttpInfo(petId, additionalMetadata, file);
ApiResponse<ApiResponse> localVarResponse = await UploadFileAsyncWithHttpInfo(petId, additionalMetadata, file, cancellationToken);
return localVarResponse.Data;
}
@ -1703,8 +1737,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet to update</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ApiResponse)</returns>
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'petId' is set
if (petId == null)
@ -1746,7 +1781,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1850,10 +1885,11 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet to update</param>
/// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
public async System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<ApiResponse> localVarResponse = await UploadFileWithRequiredFileAsyncWithHttpInfo(petId, requiredFile, additionalMetadata);
ApiResponse<ApiResponse> localVarResponse = await UploadFileWithRequiredFileAsyncWithHttpInfo(petId, requiredFile, additionalMetadata, cancellationToken);
return localVarResponse.Data;
}
@ -1865,8 +1901,9 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">ID of pet to update</param>
/// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (ApiResponse)</returns>
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'petId' is set
if (petId == null)
@ -1911,7 +1948,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;

View File

@ -12,6 +12,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using RestSharp;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
@ -116,8 +117,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of the order that needs to be deleted</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task DeleteOrderAsync (string orderId);
System.Threading.Tasks.Task DeleteOrderAsync (string orderId, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete purchase order by ID
@ -127,8 +129,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of the order that needs to be deleted</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId);
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Returns pet inventories by status
/// </summary>
@ -136,8 +139,9 @@ namespace Org.OpenAPITools.Api
/// Returns a map of status codes to quantities
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of Dictionary&lt;string, int&gt;</returns>
System.Threading.Tasks.Task<Dictionary<string, int>> GetInventoryAsync ();
System.Threading.Tasks.Task<Dictionary<string, int>> GetInventoryAsync (CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Returns pet inventories by status
@ -146,8 +150,9 @@ namespace Org.OpenAPITools.Api
/// Returns a map of status codes to quantities
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (Dictionary&lt;string, int&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo ();
System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo (CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Find purchase order by ID
/// </summary>
@ -156,8 +161,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of Order</returns>
System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long orderId);
System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long orderId, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Find purchase order by ID
@ -167,8 +173,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (Order)</returns>
System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long orderId);
System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long orderId, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Place an order for a pet
/// </summary>
@ -177,8 +184,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">order placed for purchasing the pet</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of Order</returns>
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body);
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Place an order for a pet
@ -188,8 +196,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">order placed for purchasing the pet</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (Order)</returns>
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body);
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body, CancellationToken cancellationToken = default(CancellationToken));
#endregion Asynchronous Operations
}
@ -370,10 +379,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of the order that needs to be deleted</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task DeleteOrderAsync (string orderId)
public async System.Threading.Tasks.Task DeleteOrderAsync (string orderId, CancellationToken cancellationToken = default(CancellationToken))
{
await DeleteOrderAsyncWithHttpInfo(orderId);
await DeleteOrderAsyncWithHttpInfo(orderId, cancellationToken);
}
@ -382,8 +392,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of the order that needs to be deleted</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId)
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'orderId' is set
if (orderId == null)
@ -415,7 +426,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -499,10 +510,11 @@ namespace Org.OpenAPITools.Api
/// Returns pet inventories by status Returns a map of status codes to quantities
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of Dictionary&lt;string, int&gt;</returns>
public async System.Threading.Tasks.Task<Dictionary<string, int>> GetInventoryAsync ()
public async System.Threading.Tasks.Task<Dictionary<string, int>> GetInventoryAsync (CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<Dictionary<string, int>> localVarResponse = await GetInventoryAsyncWithHttpInfo();
ApiResponse<Dictionary<string, int>> localVarResponse = await GetInventoryAsyncWithHttpInfo(cancellationToken);
return localVarResponse.Data;
}
@ -511,8 +523,9 @@ namespace Org.OpenAPITools.Api
/// Returns pet inventories by status Returns a map of status codes to quantities
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (Dictionary&lt;string, int&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo ()
public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo (CancellationToken cancellationToken = default(CancellationToken))
{
var localVarPath = "/store/inventory";
@ -546,7 +559,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -633,10 +646,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of Order</returns>
public async System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long orderId)
public async System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long orderId, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<Order> localVarResponse = await GetOrderByIdAsyncWithHttpInfo(orderId);
ApiResponse<Order> localVarResponse = await GetOrderByIdAsyncWithHttpInfo(orderId, cancellationToken);
return localVarResponse.Data;
}
@ -646,8 +660,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (Order)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long orderId)
public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long orderId, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'orderId' is set
if (orderId == null)
@ -681,7 +696,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -775,10 +790,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">order placed for purchasing the pet</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of Order</returns>
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body)
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<Order> localVarResponse = await PlaceOrderAsyncWithHttpInfo(body);
ApiResponse<Order> localVarResponse = await PlaceOrderAsyncWithHttpInfo(body, cancellationToken);
return localVarResponse.Data;
}
@ -788,8 +804,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">order placed for purchasing the pet</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (Order)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body)
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -830,7 +847,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;

View File

@ -12,6 +12,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using RestSharp;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
@ -204,8 +205,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Created user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUserAsync (User body);
System.Threading.Tasks.Task CreateUserAsync (User body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Create user
@ -215,8 +217,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Created user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body);
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates list of users with given input array
/// </summary>
@ -225,8 +228,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">List of user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body);
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates list of users with given input array
@ -236,8 +240,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">List of user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body);
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates list of users with given input array
/// </summary>
@ -246,8 +251,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">List of user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body);
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates list of users with given input array
@ -257,8 +263,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">List of user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body);
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete user
/// </summary>
@ -267,8 +274,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The name that needs to be deleted</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task DeleteUserAsync (string username);
System.Threading.Tasks.Task DeleteUserAsync (string username, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete user
@ -278,8 +286,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The name that needs to be deleted</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteUserAsyncWithHttpInfo (string username);
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteUserAsyncWithHttpInfo (string username, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get user by user name
/// </summary>
@ -288,8 +297,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The name that needs to be fetched. Use user1 for testing.</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of User</returns>
System.Threading.Tasks.Task<User> GetUserByNameAsync (string username);
System.Threading.Tasks.Task<User> GetUserByNameAsync (string username, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get user by user name
@ -299,8 +309,9 @@ namespace Org.OpenAPITools.Api
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The name that needs to be fetched. Use user1 for testing.</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (User)</returns>
System.Threading.Tasks.Task<ApiResponse<User>> GetUserByNameAsyncWithHttpInfo (string username);
System.Threading.Tasks.Task<ApiResponse<User>> GetUserByNameAsyncWithHttpInfo (string username, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Logs user into the system
/// </summary>
@ -310,8 +321,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The user name for login</param>
/// <param name="password">The password for login in clear text</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of string</returns>
System.Threading.Tasks.Task<string> LoginUserAsync (string username, string password);
System.Threading.Tasks.Task<string> LoginUserAsync (string username, string password, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Logs user into the system
@ -322,8 +334,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The user name for login</param>
/// <param name="password">The password for login in clear text</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (string)</returns>
System.Threading.Tasks.Task<ApiResponse<string>> LoginUserAsyncWithHttpInfo (string username, string password);
System.Threading.Tasks.Task<ApiResponse<string>> LoginUserAsyncWithHttpInfo (string username, string password, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Logs out current logged in user session
/// </summary>
@ -331,8 +344,9 @@ namespace Org.OpenAPITools.Api
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task LogoutUserAsync ();
System.Threading.Tasks.Task LogoutUserAsync (CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Logs out current logged in user session
@ -341,8 +355,9 @@ namespace Org.OpenAPITools.Api
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> LogoutUserAsyncWithHttpInfo ();
System.Threading.Tasks.Task<ApiResponse<Object>> LogoutUserAsyncWithHttpInfo (CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updated user
/// </summary>
@ -352,8 +367,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param>
/// <param name="body">Updated user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task UpdateUserAsync (string username, User body);
System.Threading.Tasks.Task UpdateUserAsync (string username, User body, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updated user
@ -364,8 +380,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param>
/// <param name="body">Updated user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body);
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body, CancellationToken cancellationToken = default(CancellationToken));
#endregion Asynchronous Operations
}
@ -553,10 +570,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Created user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task CreateUserAsync (User body)
public async System.Threading.Tasks.Task CreateUserAsync (User body, CancellationToken cancellationToken = default(CancellationToken))
{
await CreateUserAsyncWithHttpInfo(body);
await CreateUserAsyncWithHttpInfo(body, cancellationToken);
}
@ -565,8 +583,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Created user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body)
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -605,7 +624,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -696,10 +715,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">List of user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body)
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body, CancellationToken cancellationToken = default(CancellationToken))
{
await CreateUsersWithArrayInputAsyncWithHttpInfo(body);
await CreateUsersWithArrayInputAsyncWithHttpInfo(body, cancellationToken);
}
@ -708,8 +728,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">List of user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body)
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -748,7 +769,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -839,10 +860,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">List of user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body)
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body, CancellationToken cancellationToken = default(CancellationToken))
{
await CreateUsersWithListInputAsyncWithHttpInfo(body);
await CreateUsersWithListInputAsyncWithHttpInfo(body, cancellationToken);
}
@ -851,8 +873,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">List of user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body)
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'body' is set
if (body == null)
@ -891,7 +914,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -975,10 +998,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The name that needs to be deleted</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task DeleteUserAsync (string username)
public async System.Threading.Tasks.Task DeleteUserAsync (string username, CancellationToken cancellationToken = default(CancellationToken))
{
await DeleteUserAsyncWithHttpInfo(username);
await DeleteUserAsyncWithHttpInfo(username, cancellationToken);
}
@ -987,8 +1011,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The name that needs to be deleted</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteUserAsyncWithHttpInfo (string username)
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteUserAsyncWithHttpInfo (string username, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'username' is set
if (username == null)
@ -1020,7 +1045,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1107,10 +1132,11 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The name that needs to be fetched. Use user1 for testing.</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of User</returns>
public async System.Threading.Tasks.Task<User> GetUserByNameAsync (string username)
public async System.Threading.Tasks.Task<User> GetUserByNameAsync (string username, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<User> localVarResponse = await GetUserByNameAsyncWithHttpInfo(username);
ApiResponse<User> localVarResponse = await GetUserByNameAsyncWithHttpInfo(username, cancellationToken);
return localVarResponse.Data;
}
@ -1120,8 +1146,9 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The name that needs to be fetched. Use user1 for testing.</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (User)</returns>
public async System.Threading.Tasks.Task<ApiResponse<User>> GetUserByNameAsyncWithHttpInfo (string username)
public async System.Threading.Tasks.Task<ApiResponse<User>> GetUserByNameAsyncWithHttpInfo (string username, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'username' is set
if (username == null)
@ -1155,7 +1182,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1249,10 +1276,11 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The user name for login</param>
/// <param name="password">The password for login in clear text</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of string</returns>
public async System.Threading.Tasks.Task<string> LoginUserAsync (string username, string password)
public async System.Threading.Tasks.Task<string> LoginUserAsync (string username, string password, CancellationToken cancellationToken = default(CancellationToken))
{
ApiResponse<string> localVarResponse = await LoginUserAsyncWithHttpInfo(username, password);
ApiResponse<string> localVarResponse = await LoginUserAsyncWithHttpInfo(username, password, cancellationToken);
return localVarResponse.Data;
}
@ -1263,8 +1291,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">The user name for login</param>
/// <param name="password">The password for login in clear text</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse (string)</returns>
public async System.Threading.Tasks.Task<ApiResponse<string>> LoginUserAsyncWithHttpInfo (string username, string password)
public async System.Threading.Tasks.Task<ApiResponse<string>> LoginUserAsyncWithHttpInfo (string username, string password, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'username' is set
if (username == null)
@ -1302,7 +1331,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1379,10 +1408,11 @@ namespace Org.OpenAPITools.Api
/// Logs out current logged in user session
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task LogoutUserAsync ()
public async System.Threading.Tasks.Task LogoutUserAsync (CancellationToken cancellationToken = default(CancellationToken))
{
await LogoutUserAsyncWithHttpInfo();
await LogoutUserAsyncWithHttpInfo(cancellationToken);
}
@ -1390,8 +1420,9 @@ namespace Org.OpenAPITools.Api
/// Logs out current logged in user session
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> LogoutUserAsyncWithHttpInfo ()
public async System.Threading.Tasks.Task<ApiResponse<Object>> LogoutUserAsyncWithHttpInfo (CancellationToken cancellationToken = default(CancellationToken))
{
var localVarPath = "/user/logout";
@ -1419,7 +1450,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@ -1517,10 +1548,11 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param>
/// <param name="body">Updated user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body)
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body, CancellationToken cancellationToken = default(CancellationToken))
{
await UpdateUserAsyncWithHttpInfo(username, body);
await UpdateUserAsyncWithHttpInfo(username, body, cancellationToken);
}
@ -1530,8 +1562,9 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="username">name that need to be deleted</param>
/// <param name="body">Updated user object</param>
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body)
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'username' is set
if (username == null)
@ -1574,7 +1607,7 @@ namespace Org.OpenAPITools.Api
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, cancellationToken);
int localVarStatusCode = (int) localVarResponse.StatusCode;

View File

@ -14,6 +14,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
using System.IO;
using System.Threading;
using System.Web;
using System.Linq;
using System.Net;
@ -192,19 +193,20 @@ namespace Org.OpenAPITools.Client
/// <param name="fileParams">File parameters.</param>
/// <param name="pathParams">Path parameters.</param>
/// <param name="contentType">Content type.</param>
/// <param name="cancellationToken">Cancellation Token.</param>
/// <returns>The Task instance.</returns>
public async System.Threading.Tasks.Task<Object> CallApiAsync(
String path, RestSharp.Method method, List<KeyValuePair<String, String>> queryParams, Object postBody,
Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
Dictionary<String, FileParameter> fileParams, Dictionary<String, String> pathParams,
String contentType)
String contentType, CancellationToken cancellationToken)
{
var request = PrepareRequest(
path, method, queryParams, postBody, headerParams, formParams, fileParams,
pathParams, contentType);
RestClient.UserAgent = Configuration.UserAgent;
InterceptRequest(request);
var response = await RestClient.ExecuteTaskAsync(request);
var response = await RestClient.ExecuteTaskAsync(request, cancellationToken);
InterceptResponse(request, response);
return (Object)response;
}

View File

@ -1,10 +0,0 @@
<Properties StartupConfiguration="{19F1DEBC-DE5E-4517-8062-F000CD499087}|Unit Tests">
<MonoDevelop.Ide.Workbench />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.ItemProperties.Org.OpenAPITools.Test PreferredExecutionTarget="MonoDevelop.Default" />
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MultiItemStartupConfigurations />
</Properties>

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,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
public class AnotherFakeApiTests
{
private AnotherFakeApi instance;
@ -59,21 +58,21 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' AnotherFakeApi
//Assert.IsInstanceOfType(typeof(AnotherFakeApi), instance, "instance is a AnotherFakeApi");
// TODO uncomment below to test 'IsInstanceOf' AnotherFakeApi
//Assert.IsInstanceOf(typeof(AnotherFakeApi), instance);
}
/// <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);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
//ModelClient body = null;
//var response = instance.Call123TestSpecialTags(body);
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
}
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
public class FakeApiTests
{
private FakeApi instance;
@ -59,11 +58,23 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' FakeApi
//Assert.IsInstanceOfType(typeof(FakeApi), instance, "instance is a FakeApi");
// TODO uncomment below to test 'IsInstanceOf' FakeApi
//Assert.IsInstanceOf(typeof(FakeApi), instance);
}
/// <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>
@ -73,7 +84,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//bool? body = null;
//var response = instance.FakeOuterBooleanSerialize(body);
//Assert.IsInstanceOf<bool?> (response, "response is bool?");
//Assert.IsInstanceOf(typeof(bool), response, "response is bool");
}
/// <summary>
@ -83,9 +94,9 @@ 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);
//Assert.IsInstanceOf<OuterComposite> (response, "response is OuterComposite");
//OuterComposite body = null;
//var response = instance.FakeOuterCompositeSerialize(body);
//Assert.IsInstanceOf(typeof(OuterComposite), response, "response is OuterComposite");
}
/// <summary>
@ -97,7 +108,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//decimal? body = null;
//var response = instance.FakeOuterNumberSerialize(body);
//Assert.IsInstanceOf<decimal?> (response, "response is decimal?");
//Assert.IsInstanceOf(typeof(decimal), response, "response is decimal");
}
/// <summary>
@ -109,7 +120,19 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//string body = null;
//var response = instance.FakeOuterStringSerialize(body);
//Assert.IsInstanceOf<string> (response, "response is string");
//Assert.IsInstanceOf(typeof(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>
@ -120,8 +143,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,9 +155,9 @@ 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);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
//ModelClient body = null;
//var response = instance.TestClientModel(body);
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
}
/// <summary>
@ -144,8 +167,8 @@ namespace Org.OpenAPITools.Test
public void TestEndpointParametersTest()
{
// TODO uncomment below to test the method and replace null with proper value
//decimal? number = null;
//double? _double = null;
//decimal number = null;
//double _double = null;
//string patternWithoutDelimiter = null;
//byte[] _byte = null;
//int? integer = null;
@ -181,6 +204,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 +228,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);
}
@ -206,6 +246,22 @@ namespace Org.OpenAPITools.Test
}
/// <summary>
/// Test TestQueryParameterCollectionFormat
/// </summary>
[Test]
public void TestQueryParameterCollectionFormatTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<string> pipe = null;
//List<string> ioutil = null;
//List<string> http = null;
//List<string> url = null;
//List<string> context = null;
//instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
}
}
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
public class FakeClassnameTags123ApiTests
{
private FakeClassnameTags123Api instance;
@ -59,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' FakeClassnameTags123Api
//Assert.IsInstanceOfType(typeof(FakeClassnameTags123Api), instance, "instance is a FakeClassnameTags123Api");
// TODO uncomment below to test 'IsInstanceOf' FakeClassnameTags123Api
//Assert.IsInstanceOf(typeof(FakeClassnameTags123Api), instance);
}
@ -71,9 +70,9 @@ 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);
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
//ModelClient body = null;
//var response = instance.TestClassname(body);
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
}
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
public class PetApiTests
{
private PetApi instance;
@ -59,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' PetApi
//Assert.IsInstanceOfType(typeof(PetApi), instance, "instance is a PetApi");
// TODO uncomment below to test 'IsInstanceOf' PetApi
//Assert.IsInstanceOf(typeof(PetApi), instance);
}
@ -71,8 +70,8 @@ namespace Org.OpenAPITools.Test
public void AddPetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Pet pet = null;
//instance.AddPet(pet);
//Pet body = null;
//instance.AddPet(body);
}
@ -83,7 +82,7 @@ namespace Org.OpenAPITools.Test
public void DeletePetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long? petId = null;
//long petId = null;
//string apiKey = null;
//instance.DeletePet(petId, apiKey);
@ -98,7 +97,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//List<string> status = null;
//var response = instance.FindPetsByStatus(status);
//Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
//Assert.IsInstanceOf(typeof(List<Pet>), response, "response is List<Pet>");
}
/// <summary>
@ -110,7 +109,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//List<string> tags = null;
//var response = instance.FindPetsByTags(tags);
//Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
//Assert.IsInstanceOf(typeof(List<Pet>), response, "response is List<Pet>");
}
/// <summary>
@ -120,9 +119,9 @@ namespace Org.OpenAPITools.Test
public void GetPetByIdTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long? petId = null;
//long petId = null;
//var response = instance.GetPetById(petId);
//Assert.IsInstanceOf<Pet> (response, "response is Pet");
//Assert.IsInstanceOf(typeof(Pet), response, "response is Pet");
}
/// <summary>
@ -132,8 +131,8 @@ namespace Org.OpenAPITools.Test
public void UpdatePetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Pet pet = null;
//instance.UpdatePet(pet);
//Pet body = null;
//instance.UpdatePet(body);
}
@ -144,7 +143,7 @@ namespace Org.OpenAPITools.Test
public void UpdatePetWithFormTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long? petId = null;
//long petId = null;
//string name = null;
//string status = null;
//instance.UpdatePetWithForm(petId, name, status);
@ -158,11 +157,25 @@ namespace Org.OpenAPITools.Test
public void UploadFileTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long? petId = null;
//long petId = null;
//string additionalMetadata = null;
//System.IO.Stream file = null;
//var response = instance.UploadFile(petId, additionalMetadata, file);
//Assert.IsInstanceOf<ApiResponse> (response, "response is ApiResponse");
//Assert.IsInstanceOf(typeof(ApiResponse), response, "response is ApiResponse");
}
/// <summary>
/// Test UploadFileWithRequiredFile
/// </summary>
[Test]
public void UploadFileWithRequiredFileTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long petId = null;
//System.IO.Stream requiredFile = null;
//string additionalMetadata = null;
//var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
//Assert.IsInstanceOf(typeof(ApiResponse), response, "response is ApiResponse");
}
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
public class StoreApiTests
{
private StoreApi instance;
@ -59,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' StoreApi
//Assert.IsInstanceOfType(typeof(StoreApi), instance, "instance is a StoreApi");
// TODO uncomment below to test 'IsInstanceOf' StoreApi
//Assert.IsInstanceOf(typeof(StoreApi), instance);
}
@ -84,7 +83,7 @@ namespace Org.OpenAPITools.Test
{
// TODO uncomment below to test the method and replace null with proper value
//var response = instance.GetInventory();
//Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>");
//Assert.IsInstanceOf(typeof(Dictionary<string, int>), response, "response is Dictionary<string, int>");
}
/// <summary>
@ -94,9 +93,9 @@ namespace Org.OpenAPITools.Test
public void GetOrderByIdTest()
{
// TODO uncomment below to test the method and replace null with proper value
//long? orderId = null;
//long orderId = null;
//var response = instance.GetOrderById(orderId);
//Assert.IsInstanceOf<Order> (response, "response is Order");
//Assert.IsInstanceOf(typeof(Order), response, "response is Order");
}
/// <summary>
@ -106,9 +105,9 @@ 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);
//Assert.IsInstanceOf<Order> (response, "response is Order");
//Order body = null;
//var response = instance.PlaceOrder(body);
//Assert.IsInstanceOf(typeof(Order), response, "response is Order");
}
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
public class UserApiTests
{
private UserApi instance;
@ -59,8 +58,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' UserApi
//Assert.IsInstanceOfType(typeof(UserApi), instance, "instance is a UserApi");
// TODO uncomment below to test 'IsInstanceOf' UserApi
//Assert.IsInstanceOf(typeof(UserApi), instance);
}
@ -71,8 +70,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 +82,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 +94,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);
}
@ -121,7 +120,7 @@ namespace Org.OpenAPITools.Test
// TODO uncomment below to test the method and replace null with proper value
//string username = null;
//var response = instance.GetUserByName(username);
//Assert.IsInstanceOf<User> (response, "response is User");
//Assert.IsInstanceOf(typeof(User), response, "response is User");
}
/// <summary>
@ -134,7 +133,7 @@ namespace Org.OpenAPITools.Test
//string username = null;
//string password = null;
//var response = instance.LoginUser(username, password);
//Assert.IsInstanceOf<string> (response, "response is string");
//Assert.IsInstanceOf(typeof(string), response, "response is string");
}
/// <summary>
@ -156,8 +155,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

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AdditionalPropertiesAnyTypeTests
{
// TODO uncomment below to declare an instance variable for AdditionalPropertiesAnyType
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesAnyTypeInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesAnyType
//Assert.IsInstanceOfType<AdditionalPropertiesAnyType> (instance, "variable 'instance' is a AdditionalPropertiesAnyType");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesAnyType
//Assert.IsInstanceOf(typeof(AdditionalPropertiesAnyType), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AdditionalPropertiesArrayTests
{
// TODO uncomment below to declare an instance variable for AdditionalPropertiesArray
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesArrayInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesArray
//Assert.IsInstanceOfType<AdditionalPropertiesArray> (instance, "variable 'instance' is a AdditionalPropertiesArray");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesArray
//Assert.IsInstanceOf(typeof(AdditionalPropertiesArray), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AdditionalPropertiesBooleanTests
{
// TODO uncomment below to declare an instance variable for AdditionalPropertiesBoolean
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesBooleanInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesBoolean
//Assert.IsInstanceOfType<AdditionalPropertiesBoolean> (instance, "variable 'instance' is a AdditionalPropertiesBoolean");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesBoolean
//Assert.IsInstanceOf(typeof(AdditionalPropertiesBoolean), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AdditionalPropertiesClassTests
{
// TODO uncomment below to declare an instance variable for AdditionalPropertiesClass
@ -61,26 +60,98 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesClassInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesClass
//Assert.IsInstanceOfType<AdditionalPropertiesClass> (instance, "variable 'instance' is a AdditionalPropertiesClass");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesClass
//Assert.IsInstanceOf(typeof(AdditionalPropertiesClass), instance);
}
/// <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

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AdditionalPropertiesIntegerTests
{
// TODO uncomment below to declare an instance variable for AdditionalPropertiesInteger
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesIntegerInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesInteger
//Assert.IsInstanceOfType<AdditionalPropertiesInteger> (instance, "variable 'instance' is a AdditionalPropertiesInteger");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesInteger
//Assert.IsInstanceOf(typeof(AdditionalPropertiesInteger), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AdditionalPropertiesNumberTests
{
// TODO uncomment below to declare an instance variable for AdditionalPropertiesNumber
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesNumberInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesNumber
//Assert.IsInstanceOfType<AdditionalPropertiesNumber> (instance, "variable 'instance' is a AdditionalPropertiesNumber");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesNumber
//Assert.IsInstanceOf(typeof(AdditionalPropertiesNumber), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AdditionalPropertiesObjectTests
{
// TODO uncomment below to declare an instance variable for AdditionalPropertiesObject
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesObjectInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesObject
//Assert.IsInstanceOfType<AdditionalPropertiesObject> (instance, "variable 'instance' is a AdditionalPropertiesObject");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesObject
//Assert.IsInstanceOf(typeof(AdditionalPropertiesObject), instance);
}

View File

@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AdditionalPropertiesStringTests
{
// TODO uncomment below to declare an instance variable for AdditionalPropertiesString
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AdditionalPropertiesStringInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesString
//Assert.IsInstanceOfType<AdditionalPropertiesString> (instance, "variable 'instance' is a AdditionalPropertiesString");
// TODO uncomment below to test "IsInstanceOf" AdditionalPropertiesString
//Assert.IsInstanceOf(typeof(AdditionalPropertiesString), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class AnimalTests
{
// TODO uncomment below to declare an instance variable for Animal
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void AnimalInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Animal
//Assert.IsInstanceOfType<Animal> (instance, "variable 'instance' is a Animal");
// TODO uncomment below to test "IsInstanceOf" Animal
//Assert.IsInstanceOf(typeof(Animal), instance);
}
/// <summary>
@ -72,7 +71,7 @@ namespace Org.OpenAPITools.Test
public void DogDeserializeFromAnimalTest()
{
// TODO uncomment below to test deserialize a Dog from type Animal
//Assert.IsInstanceOf<Animal>(JsonConvert.DeserializeObject<Animal>(new Dog().ToJson()));
//Assert.IsInstanceOf(typeof(Animal), JsonConvert.DeserializeObject<Animal>(new Dog().ToJson()));
}
/// <summary>
/// Test deserialize a Cat from type Animal
@ -81,7 +80,16 @@ namespace Org.OpenAPITools.Test
public void CatDeserializeFromAnimalTest()
{
// TODO uncomment below to test deserialize a Cat from type Animal
//Assert.IsInstanceOf<Animal>(JsonConvert.DeserializeObject<Animal>(new Cat().ToJson()));
//Assert.IsInstanceOf(typeof(Animal), JsonConvert.DeserializeObject<Animal>(new Cat().ToJson()));
}
/// <summary>
/// Test deserialize a BigCat from type Cat
/// </summary>
[Test]
public void BigCatDeserializeFromCatTest()
{
// TODO uncomment below to test deserialize a BigCat from type Cat
//Assert.IsInstanceOf(typeof(Cat), JsonConvert.DeserializeObject<Cat>(new BigCat().ToJson()));
}
/// <summary>

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class ApiResponseTests
{
// TODO uncomment below to declare an instance variable for ApiResponse
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ApiResponseInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ApiResponse
//Assert.IsInstanceOfType<ApiResponse> (instance, "variable 'instance' is a ApiResponse");
// TODO uncomment below to test "IsInstanceOf" ApiResponse
//Assert.IsInstanceOf(typeof(ApiResponse), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class ArrayOfArrayOfNumberOnlyTests
{
// TODO uncomment below to declare an instance variable for ArrayOfArrayOfNumberOnly
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ArrayOfArrayOfNumberOnlyInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ArrayOfArrayOfNumberOnly
//Assert.IsInstanceOfType<ArrayOfArrayOfNumberOnly> (instance, "variable 'instance' is a ArrayOfArrayOfNumberOnly");
// TODO uncomment below to test "IsInstanceOf" ArrayOfArrayOfNumberOnly
//Assert.IsInstanceOf(typeof(ArrayOfArrayOfNumberOnly), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class ArrayOfNumberOnlyTests
{
// TODO uncomment below to declare an instance variable for ArrayOfNumberOnly
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ArrayOfNumberOnlyInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ArrayOfNumberOnly
//Assert.IsInstanceOfType<ArrayOfNumberOnly> (instance, "variable 'instance' is a ArrayOfNumberOnly");
// TODO uncomment below to test "IsInstanceOf" ArrayOfNumberOnly
//Assert.IsInstanceOf(typeof(ArrayOfNumberOnly), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class ArrayTestTests
{
// TODO uncomment below to declare an instance variable for ArrayTest
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ArrayTestInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ArrayTest
//Assert.IsInstanceOfType<ArrayTest> (instance, "variable 'instance' is a ArrayTest");
// TODO uncomment below to test "IsInstanceOf" ArrayTest
//Assert.IsInstanceOf(typeof(ArrayTest), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class CapitalizationTests
{
// TODO uncomment below to declare an instance variable for Capitalization
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void CapitalizationInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Capitalization
//Assert.IsInstanceOfType<Capitalization> (instance, "variable 'instance' is a Capitalization");
// TODO uncomment below to test "IsInstanceOf" Capitalization
//Assert.IsInstanceOf(typeof(Capitalization), instance);
}

View File

@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class CatAllOfTests
{
// TODO uncomment below to declare an instance variable for CatAllOf
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void CatAllOfInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" CatAllOf
//Assert.IsInstanceOfType<CatAllOf> (instance, "variable 'instance' is a CatAllOf");
// TODO uncomment below to test "IsInstanceOf" CatAllOf
//Assert.IsInstanceOf(typeof(CatAllOf), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class CatTests
{
// TODO uncomment below to declare an instance variable for Cat
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void CatInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Cat
//Assert.IsInstanceOfType<Cat> (instance, "variable 'instance' is a Cat");
// TODO uncomment below to test "IsInstanceOf" Cat
//Assert.IsInstanceOf(typeof(Cat), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class CategoryTests
{
// TODO uncomment below to declare an instance variable for Category
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void CategoryInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Category
//Assert.IsInstanceOfType<Category> (instance, "variable 'instance' is a Category");
// TODO uncomment below to test "IsInstanceOf" Category
//Assert.IsInstanceOf(typeof(Category), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class ClassModelTests
{
// TODO uncomment below to declare an instance variable for ClassModel
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void ClassModelInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" ClassModel
//Assert.IsInstanceOfType<ClassModel> (instance, "variable 'instance' is a ClassModel");
// TODO uncomment below to test "IsInstanceOf" ClassModel
//Assert.IsInstanceOf(typeof(ClassModel), instance);
}

View File

@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class DogAllOfTests
{
// TODO uncomment below to declare an instance variable for DogAllOf
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void DogAllOfInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" DogAllOf
//Assert.IsInstanceOfType<DogAllOf> (instance, "variable 'instance' is a DogAllOf");
// TODO uncomment below to test "IsInstanceOf" DogAllOf
//Assert.IsInstanceOf(typeof(DogAllOf), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class DogTests
{
// TODO uncomment below to declare an instance variable for Dog
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void DogInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" Dog
//Assert.IsInstanceOfType<Dog> (instance, "variable 'instance' is a Dog");
// TODO uncomment below to test "IsInstanceOf" Dog
//Assert.IsInstanceOf(typeof(Dog), instance);
}

View File

@ -1,10 +1,10 @@
/*
* 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
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -30,7 +30,6 @@ namespace Org.OpenAPITools.Test
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class EnumArraysTests
{
// TODO uncomment below to declare an instance variable for EnumArrays
@ -61,8 +60,8 @@ namespace Org.OpenAPITools.Test
[Test]
public void EnumArraysInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" EnumArrays
//Assert.IsInstanceOfType<EnumArrays> (instance, "variable 'instance' is a EnumArrays");
// TODO uncomment below to test "IsInstanceOf" EnumArrays
//Assert.IsInstanceOf(typeof(EnumArrays), instance);
}

Some files were not shown because too many files have changed in this diff Show More