add test case, update c# model constructor to remove readonly property

This commit is contained in:
wing328
2016-02-23 19:16:26 +08:00
parent 0520e68e29
commit 82d7c2d780
10 changed files with 83 additions and 29 deletions

View File

@@ -23,6 +23,7 @@ namespace IO.Swagger.Model
/// <exception cref="System.InvalidDataException">Thrown when required property is null</exception>
/// <param name="Id">Id.</param>
/// <param name="Name">Name.</param>
public Category(long? Id = null, string Name = null)
{
this.Id = Id;

View File

@@ -21,15 +21,14 @@ namespace IO.Swagger.Model
/// Initializes a new instance of the <see cref="Order" />class.
/// </summary>
/// <exception cref="System.InvalidDataException">Thrown when required property is null</exception>
/// <param name="Id">Id.</param>
/// <param name="PetId">PetId.</param>
/// <param name="Quantity">Quantity.</param>
/// <param name="ShipDate">ShipDate.</param>
/// <param name="Status">Order Status.</param>
/// <param name="Complete">Complete.</param>
public Order(long? Id = null, long? PetId = null, int? Quantity = null, DateTime? ShipDate = null, string Status = null, bool? Complete = null)
public Order(long? PetId = null, int? Quantity = null, DateTime? ShipDate = null, string Status = null, bool? Complete = null)
{
this.Id = Id;
this.PetId = PetId;
this.Quantity = Quantity;
this.ShipDate = ShipDate;

View File

@@ -27,6 +27,7 @@ namespace IO.Swagger.Model
/// <param name="PhotoUrls">PhotoUrls (required).</param>
/// <param name="Tags">Tags.</param>
/// <param name="Status">pet status in the store.</param>
public Pet(long? Id = null, Category Category = null, string Name = null, List<string> PhotoUrls = null, List<Tag> Tags = null, string Status = null)
{
// to ensure "Name" is required (not null)

View File

@@ -23,6 +23,7 @@ namespace IO.Swagger.Model
/// <exception cref="System.InvalidDataException">Thrown when required property is null</exception>
/// <param name="Id">Id.</param>
/// <param name="Name">Name.</param>
public Tag(long? Id = null, string Name = null)
{
this.Id = Id;

View File

@@ -29,6 +29,7 @@ namespace IO.Swagger.Model
/// <param name="Password">Password.</param>
/// <param name="Phone">Phone.</param>
/// <param name="UserStatus">User Status.</param>
public User(long? Id = null, string Username = null, string FirstName = null, string LastName = null, string Email = null, string Password = null, string Phone = null, int? UserStatus = null)
{
this.Id = Id;