Skip to content

Commit 4e164f2

Browse files
authored
Merge pull request #11918 from swagger-api/codegen-generator-issue-1070
CSharp and ASPNetCore samples update
2 parents f81726f + d1d7c44 commit 4e164f2

File tree

295 files changed

+3649
-8167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+3649
-8167
lines changed

samples/composed/client/petstore/csharp/SwaggerClient/docs/AllOfSubCategoryPetsItems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
**Id** | **long?** | | [optional]
77
**Name** | **string** | |
88
**Status** | **string** | pet status in the store | [optional]
9-
**Part** | **List<Object>** | | [optional]
9+
**Part** | **List<OneOfPetPartItems>** | | [optional]
1010

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

samples/composed/client/petstore/csharp/SwaggerClient/docs/Body1.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

samples/composed/client/petstore/csharp/SwaggerClient/docs/Cat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
**Id** | **long?** | | [optional]
77
**Name** | **string** | |
88
**Status** | **string** | pet status in the store | [optional]
9-
**Part** | **List<Object>** | | [optional]
9+
**Part** | **List<OneOfPetPartItems>** | | [optional]
1010
**Hunts** | **bool?** | | [optional]
1111
**Age** | **int?** | | [optional]
1212

samples/composed/client/petstore/csharp/SwaggerClient/docs/Dog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
**Id** | **long?** | | [optional]
77
**Name** | **string** | |
88
**Status** | **string** | pet status in the store | [optional]
9-
**Part** | **List<Object>** | | [optional]
9+
**Part** | **List<OneOfPetPartItems>** | | [optional]
1010
**Bark** | **bool?** | | [optional]
1111
**Breed** | **string** | | [optional]
1212

samples/composed/client/petstore/csharp/SwaggerClient/docs/OneOfinlineResponse2001.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

samples/composed/client/petstore/csharp/SwaggerClient/docs/Test.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

samples/composed/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Api/DefaultApiTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
using IO.Swagger.Client;
2020
using IO.Swagger.Api;
21-
using IO.Swagger.Model;
2221

2322
namespace IO.Swagger.Test
2423
{
@@ -70,7 +69,7 @@ public void TestMethodTest()
7069
{
7170
// TODO uncomment below to test the method and replace null with proper value
7271
//var response = instance.TestMethod();
73-
//Assert.IsInstanceOf<List<Test>> (response, "response is List<Test>");
72+
//Assert.IsInstanceOf<List<string>> (response, "response is List<string>");
7473
}
7574
}
7675

samples/composed/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Api/PetApiTests.cs

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ public void InstanceTest()
6262
//Assert.IsInstanceOfType(typeof(PetApi), instance, "instance is a PetApi");
6363
}
6464

65+
/// <summary>
66+
/// Test AddParrot
67+
/// </summary>
68+
[Test]
69+
public void AddParrotTest()
70+
{
71+
// TODO uncomment below to test the method and replace null with proper value
72+
//ParrotBody1 body = null;
73+
//var response = instance.AddParrot(body);
74+
//Assert.IsInstanceOf<InlineResponse2001> (response, "response is InlineResponse2001");
75+
}
6576
/// <summary>
6677
/// Test AddPet
6778
/// </summary>
@@ -86,6 +97,17 @@ public void DeletePetTest()
8697

8798
}
8899
/// <summary>
100+
/// Test DoCategoryStuff
101+
/// </summary>
102+
[Test]
103+
public void DoCategoryStuffTest()
104+
{
105+
// TODO uncomment below to test the method and replace null with proper value
106+
//SubCategory body = null;
107+
//var response = instance.DoCategoryStuff(body);
108+
//Assert.IsInstanceOf<ModelApiResponse> (response, "response is ModelApiResponse");
109+
}
110+
/// <summary>
89111
/// Test FeedPet
90112
/// </summary>
91113
[Test]
@@ -123,6 +145,16 @@ public void FindPetsByTagsTest()
123145
//Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
124146
}
125147
/// <summary>
148+
/// Test GetParrots
149+
/// </summary>
150+
[Test]
151+
public void GetParrotsTest()
152+
{
153+
// TODO uncomment below to test the method and replace null with proper value
154+
//var response = instance.GetParrots();
155+
//Assert.IsInstanceOf<List<Object>> (response, "response is List<Object>");
156+
}
157+
/// <summary>
126158
/// Test GetPetById
127159
/// </summary>
128160
[Test]
@@ -134,6 +166,17 @@ public void GetPetByIdTest()
134166
//Assert.IsInstanceOf<Pet> (response, "response is Pet");
135167
}
136168
/// <summary>
169+
/// Test UpdateParrots
170+
/// </summary>
171+
[Test]
172+
public void UpdateParrotsTest()
173+
{
174+
// TODO uncomment below to test the method and replace null with proper value
175+
//ParrotBody body = null;
176+
//var response = instance.UpdateParrots(body);
177+
//Assert.IsInstanceOf<InlineResponse200> (response, "response is InlineResponse200");
178+
}
179+
/// <summary>
137180
/// Test UpdatePet
138181
/// </summary>
139182
[Test]
@@ -167,7 +210,7 @@ public void UploadFileTest()
167210
//long? petId = null;
168211
//Object body = null;
169212
//var response = instance.UploadFile(petId, body);
170-
//Assert.IsInstanceOf<ApiResponse> (response, "response is ApiResponse");
213+
//Assert.IsInstanceOf<ModelApiResponse> (response, "response is ModelApiResponse");
171214
}
172215
}
173216

samples/composed/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/AnyOfbody1ParrotsItemsTests.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

samples/composed/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/AnyOfbody2Tests.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)