Example #1
0
 public override void Assign(string assignedTo, Issue issue)
 {
     issue.AddHistory($"Assigned to {assignedTo}");
     issue.SetIssueState(new Assigned());
 }
Example #2
0
 public override void Close(Issue issue)
 {
     issue.AddHistory("Issue closed");
     issue.SetIssueState(new Closed());
 }
Example #3
0
 public override void New(Issue issue)
 {
     issue.AddHistory($"Issue returned to New state");
     issue.SetIssueState(new Created());
 }
Example #4
0
 public override void Solve(Issue issue)
 {
     issue.AddHistory($"Issue \"{issue.Text}\" Solved");
     issue.SetIssueState(new Solved());
 }
Example #5
0
File: Solved.cs Project: mkryuk/DP
 public override void Feedback(string text, Issue issue)
 {
     issue.Feedback = text;
     issue.AddHistory("Feedback added");
     issue.SetIssueState(new Feedback());
 }
Example #6
0
File: Created.cs Project: mkryuk/DP
 public override void Decline(Issue issue)
 {
     issue.AddHistory("Issue declined");
     issue.SetIssueState(new Declined());
 }