Ejemplo n.º 1
0
 public Ticket(string description, string title, Guid authorId, string author, DateTime createdAt, int categoryId)
 {
     CreatedAt   = DateTime.Now;
     Deadline    = CreatedAt.AddDays(2);
     Description = description;
     Title       = title;
     AuthorId    = authorId;
     Author      = author;
     CategoryId  = categoryId;
 }
Ejemplo n.º 2
0
 public Product()
 {
     if (isAuction)
     {
         EndDate = CreatedAt.AddDays(AuctionDuration);
     }
     else if (isSale)
     {
         EndDate = CreatedAt.AddDays(SaleDuration);
     }
 }