Test plan incomplete, basic compaints support
This commit is contained in:
@@ -7,6 +7,10 @@ namespace Models
|
||||
{
|
||||
public class Complaint : GenericMessage
|
||||
{
|
||||
public Complaint()
|
||||
{
|
||||
|
||||
}
|
||||
public Complaint(int id, User author, string description, string title, DateTime publishDate, ComplaintStatus status, ComplaintSeverity severity) : base(id, author, description, title, publishDate)
|
||||
{
|
||||
Status = status;
|
||||
@@ -27,5 +31,9 @@ namespace Models
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return $"({PublishDate.ToString("d")} - {Author.Name}) {Title}";
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
@@ -7,9 +8,13 @@ namespace Models
|
||||
{
|
||||
public enum ComplaintSeverity
|
||||
{
|
||||
[Description("Low")]
|
||||
LOW,
|
||||
[Description("Normal")]
|
||||
NORMAL,
|
||||
[Description("High")]
|
||||
HIGH,
|
||||
[Description("Urgent")]
|
||||
URGENT
|
||||
}
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
@@ -7,9 +8,13 @@ namespace Models
|
||||
{
|
||||
public enum ComplaintStatus
|
||||
{
|
||||
[Description("Filed")]
|
||||
FILED,
|
||||
[Description("Under review")]
|
||||
UNDER_REVIEW,
|
||||
[Description("Solved")]
|
||||
SOLVED,
|
||||
[Description("Archived")]
|
||||
ARCHIVED
|
||||
}
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
@@ -32,6 +33,7 @@ namespace Models
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
[StringLength(255)]
|
||||
public string Title
|
||||
{
|
||||
get;set;
|
||||
|
@@ -25,7 +25,7 @@ namespace Models
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[StringLength(255)]
|
||||
public string Name
|
||||
{
|
||||
get; set;
|
||||
|
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -8,11 +9,11 @@ namespace Models
|
||||
{
|
||||
public enum UserRole
|
||||
{
|
||||
[Display(Name = "Tenant")]
|
||||
[Description("Tenant")]
|
||||
TENANT,
|
||||
[Display(Name = "Manager")]
|
||||
[Description("Manager")]
|
||||
MANAGER,
|
||||
[Display(Name = "Administrator")]
|
||||
[Description("Administrator")]
|
||||
ADMIN
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user