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"); }
public void AddIssue(Issue issue) { IssueDataAccess.AddIssue(issue); }
public static void AddIssue(Issue issue) { issue.Number = IssueDataAccess.NextID(); issues.Add(issue); }