Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSharp and ASPNetCore samples update #11918

Merged
merged 2 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**Id** | **long?** | | [optional]
**Name** | **string** | |
**Status** | **string** | pet status in the store | [optional]
**Part** | **List<Object>** | | [optional]
**Part** | **List<OneOfPetPartItems>** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**Id** | **long?** | | [optional]
**Name** | **string** | |
**Status** | **string** | pet status in the store | [optional]
**Part** | **List<Object>** | | [optional]
**Part** | **List<OneOfPetPartItems>** | | [optional]
**Hunts** | **bool?** | | [optional]
**Age** | **int?** | | [optional]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**Id** | **long?** | | [optional]
**Name** | **string** | |
**Status** | **string** | pet status in the store | [optional]
**Part** | **List<Object>** | | [optional]
**Part** | **List<OneOfPetPartItems>** | | [optional]
**Bark** | **bool?** | | [optional]
**Breed** | **string** | | [optional]

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

using IO.Swagger.Client;
using IO.Swagger.Api;
using IO.Swagger.Model;

namespace IO.Swagger.Test
{
Expand Down Expand Up @@ -70,7 +69,7 @@ public void TestMethodTest()
{
// TODO uncomment below to test the method and replace null with proper value
//var response = instance.TestMethod();
//Assert.IsInstanceOf<List<Test>> (response, "response is List<Test>");
//Assert.IsInstanceOf<List<string>> (response, "response is List<string>");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ public void InstanceTest()
//Assert.IsInstanceOfType(typeof(PetApi), instance, "instance is a PetApi");
}

/// <summary>
/// Test AddParrot
/// </summary>
[Test]
public void AddParrotTest()
{
// TODO uncomment below to test the method and replace null with proper value
//ParrotBody1 body = null;
//var response = instance.AddParrot(body);
//Assert.IsInstanceOf<InlineResponse2001> (response, "response is InlineResponse2001");
}
/// <summary>
/// Test AddPet
/// </summary>
Expand All @@ -86,6 +97,17 @@ public void DeletePetTest()

}
/// <summary>
/// Test DoCategoryStuff
/// </summary>
[Test]
public void DoCategoryStuffTest()
{
// TODO uncomment below to test the method and replace null with proper value
//SubCategory body = null;
//var response = instance.DoCategoryStuff(body);
//Assert.IsInstanceOf<ModelApiResponse> (response, "response is ModelApiResponse");
}
/// <summary>
/// Test FeedPet
/// </summary>
[Test]
Expand Down Expand Up @@ -123,6 +145,16 @@ public void FindPetsByTagsTest()
//Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
}
/// <summary>
/// Test GetParrots
/// </summary>
[Test]
public void GetParrotsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//var response = instance.GetParrots();
//Assert.IsInstanceOf<List<Object>> (response, "response is List<Object>");
}
/// <summary>
/// Test GetPetById
/// </summary>
[Test]
Expand All @@ -134,6 +166,17 @@ public void GetPetByIdTest()
//Assert.IsInstanceOf<Pet> (response, "response is Pet");
}
/// <summary>
/// Test UpdateParrots
/// </summary>
[Test]
public void UpdateParrotsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//ParrotBody body = null;
//var response = instance.UpdateParrots(body);
//Assert.IsInstanceOf<InlineResponse200> (response, "response is InlineResponse200");
}
/// <summary>
/// Test UpdatePet
/// </summary>
[Test]
Expand Down Expand Up @@ -167,7 +210,7 @@ public void UploadFileTest()
//long? petId = null;
//Object body = null;
//var response = instance.UploadFile(petId, body);
//Assert.IsInstanceOf<ApiResponse> (response, "response is ApiResponse");
//Assert.IsInstanceOf<ModelApiResponse> (response, "response is ModelApiResponse");
}
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading