forked from loafle/openapi-generator-original
add test case, update c# model constructor to remove readonly property
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user