Пример #1
0
 public void ReportBug(IBug details, IUser reporter, DateTime dueBy, IssueStatus issueStatus = IssueStatus.Open, Severity severity = Severity.Undefined)
 {
     if (string.IsNullOrWhiteSpace(details?.Description))
     {
         _logger.Warning("Issue details missing from bug.");
         return;
     }
     AddIssue(new Issue(GetNextIssueId(), details, reporter, null, dueBy, issueStatus, severity));
 }
Пример #2
0
 public Issue(uint id, IIssueDetails details, IUser reporter, IUser assignedTo, DateTime dueBy, IssueStatus status, Severity severity)
 {
     Id         = id;
     Details    = details;
     Reporter   = reporter;
     AssignedTo = assignedTo;
     DueBy      = dueBy;
     Status     = status;
     Severity   = severity;
 }