예제 #1
0
 public void Test_AddIssue()
 {
     IDataProvider dataProvider = IssueDataUtils.GetDataProvider();
     Issue issue = new Issue { Assignee = dataProvider.GetPersonById(1), CurrentStatus = IssueStatus.ToDo, Description = "test", DueDate = DateTime.Today };
     dataProvider.AddIssue(issue);
     List<Issue> issues = dataProvider.GetIssueList();
     Assert.IsTrue(issues != null && issues.Count == 3, "dataProvider.SelectIssuesByStatus() failed");
 }
예제 #2
0
 public void AddIssue(Issue issue)
 {
     IssueDataAccess.AddIssue(issue);
 }
예제 #3
0
 public static void AddIssue(Issue issue)
 {
     issue.Number = IssueDataAccess.NextID();
     issues.Add(issue);
 }