Skip to content

Commit

Permalink
Merge pull request #11918 from swagger-api/codegen-generator-issue-1070
Browse files Browse the repository at this point in the history
CSharp and ASPNetCore samples update
  • Loading branch information
HugoMario authored Oct 4, 2022
2 parents f81726f + d1d7c44 commit 4e164f2
Show file tree
Hide file tree
Showing 295 changed files with 3,649 additions and 8,167 deletions.
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

0 comments on commit 4e164f2

Please sign in to comment.