update csharp test case to use another petstore spec

This commit is contained in:
wing328
2016-04-14 00:04:26 +08:00
parent aa04bbb92e
commit 5c632e9862
12 changed files with 580 additions and 1475 deletions

View File

@@ -65,18 +65,6 @@ namespace IO.Swagger.Test
}
/// <summary>
/// Test AddPetUsingByteArray
/// </summary>
[Test]
public void AddPetUsingByteArrayTest()
{
// TODO: add unit test for the method 'AddPetUsingByteArray'
byte[] body = null; // TODO: replace null with proper value
instance.AddPetUsingByteArray(body);
}
/// <summary>
/// Test DeletePet
/// </summary>
@@ -126,30 +114,6 @@ string apiKey = null; // TODO: replace null with proper value
Assert.IsInstanceOf<Pet> (response, "response is Pet");
}
/// <summary>
/// Test GetPetByIdInObject
/// </summary>
[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<InlineResponse200> (response, "response is InlineResponse200");
}
/// <summary>
/// Test PetPetIdtestingByteArraytrueGet
/// </summary>
[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<byte[]> (response, "response is byte[]");
}
/// <summary>
/// Test UpdatePet
/// </summary>
@@ -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<ApiResponse> (response, "response is ApiResponse");
}
}

View File

@@ -65,18 +65,6 @@ namespace IO.Swagger.Test
}
/// <summary>
/// Test FindOrdersByStatus
/// </summary>
[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<List<Order>> (response, "response is List<Order>");
}
/// <summary>
/// Test GetInventory
/// </summary>
@@ -88,17 +76,6 @@ namespace IO.Swagger.Test
Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>");
}
/// <summary>
/// Test GetInventoryInObject
/// </summary>
[Test]
public void GetInventoryInObjectTest()
{
// TODO: add unit test for the method 'GetInventoryInObject'
var response = instance.GetInventoryInObject();
Assert.IsInstanceOf<Object> (response, "response is Object");
}
/// <summary>
/// Test GetOrderById
/// </summary>
@@ -106,7 +83,7 @@ namespace IO.Swagger.Test
public void GetOrderByIdTest()
{
// TODO: add unit test for the method 'GetOrderById'
string orderId = null; // TODO: replace null with proper value
long? orderId = null; // TODO: replace null with proper value
var response = instance.GetOrderById(orderId);
Assert.IsInstanceOf<Order> (response, "response is Order");
}