diff --git a/bin/csharp-petstore.sh b/bin/csharp-petstore.sh
index c3fe78f0f362..c042dd9c0cd0 100755
--- a/bin/csharp-petstore.sh
+++ b/bin/csharp-petstore.sh
@@ -26,6 +26,6 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l csharp -o samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient"
+ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient"
java $JAVA_OPTS -jar $executable $ags
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient.Test/PetApiTests.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient.Test/PetApiTests.cs
index 76a0dac0944e..0da272b0a9e2 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient.Test/PetApiTests.cs
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient.Test/PetApiTests.cs
@@ -65,18 +65,6 @@ namespace IO.Swagger.Test
}
- ///
- /// Test AddPetUsingByteArray
- ///
- [Test]
- public void AddPetUsingByteArrayTest()
- {
- // TODO: add unit test for the method 'AddPetUsingByteArray'
- byte[] body = null; // TODO: replace null with proper value
- instance.AddPetUsingByteArray(body);
-
- }
-
///
/// Test DeletePet
///
@@ -126,30 +114,6 @@ string apiKey = null; // TODO: replace null with proper value
Assert.IsInstanceOf (response, "response is Pet");
}
- ///
- /// Test GetPetByIdInObject
- ///
- [Test]
- public void GetPetByIdInObjectTest()
- {
- // TODO: add unit test for the method 'GetPetByIdInObject'
- long? petId = null; // TODO: replace null with proper value
- var response = instance.GetPetByIdInObject(petId);
- Assert.IsInstanceOf (response, "response is InlineResponse200");
- }
-
- ///
- /// Test PetPetIdtestingByteArraytrueGet
- ///
- [Test]
- public void PetPetIdtestingByteArraytrueGetTest()
- {
- // TODO: add unit test for the method 'PetPetIdtestingByteArraytrueGet'
- long? petId = null; // TODO: replace null with proper value
- var response = instance.PetPetIdtestingByteArraytrueGet(petId);
- Assert.IsInstanceOf (response, "response is byte[]");
- }
-
///
/// Test UpdatePet
///
@@ -169,7 +133,7 @@ string apiKey = null; // TODO: replace null with proper value
public void UpdatePetWithFormTest()
{
// TODO: add unit test for the method 'UpdatePetWithForm'
- string petId = null; // TODO: replace null with proper value
+ long? petId = null; // TODO: replace null with proper value
string name = null; // TODO: replace null with proper value
string status = null; // TODO: replace null with proper value
instance.UpdatePetWithForm(petId, name, status);
@@ -185,9 +149,9 @@ string status = null; // TODO: replace null with proper value
// TODO: add unit test for the method 'UploadFile'
long? petId = null; // TODO: replace null with proper value
string additionalMetadata = null; // TODO: replace null with proper value
-System.IO.Stream file = null; // TODO: replace null with proper value
- instance.UploadFile(petId, additionalMetadata, file);
-
+Stream file = null; // TODO: replace null with proper value
+ var response = instance.UploadFile(petId, additionalMetadata, file);
+ Assert.IsInstanceOf (response, "response is ApiResponse");
}
}
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient.Test/StoreApiTests.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient.Test/StoreApiTests.cs
index 1d3e1c53815a..d1a0de454d6c 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient.Test/StoreApiTests.cs
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient.Test/StoreApiTests.cs
@@ -65,18 +65,6 @@ namespace IO.Swagger.Test
}
- ///
- /// Test FindOrdersByStatus
- ///
- [Test]
- public void FindOrdersByStatusTest()
- {
- // TODO: add unit test for the method 'FindOrdersByStatus'
- string status = null; // TODO: replace null with proper value
- var response = instance.FindOrdersByStatus(status);
- Assert.IsInstanceOf> (response, "response is List");
- }
-
///
/// Test GetInventory
///
@@ -88,17 +76,6 @@ namespace IO.Swagger.Test
Assert.IsInstanceOf> (response, "response is Dictionary");
}
- ///
- /// Test GetInventoryInObject
- ///
- [Test]
- public void GetInventoryInObjectTest()
- {
- // TODO: add unit test for the method 'GetInventoryInObject'
- var response = instance.GetInventoryInObject();
- Assert.IsInstanceOf