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