Ejemplo n.º 1
0
 public static bool RemoveIssue(Userstory issue)
 {
     try
     {
         return List.Remove(List.Single(iss => iss.GetId() == issue.GetId()));
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         return false;
     }
 }
Ejemplo n.º 2
0
 public static bool AddIssue(Userstory issue)
 {
     if (List.Any(item => item.GetId() == issue.GetId()) || issue.GetId() >= Userstory.count) { return false; }
     List.Add(issue);
     return true;
 }
Ejemplo n.º 3
0
 public static bool UpdateIssue(Userstory issue)
 {
     if (List.Where(iss=>iss.GetId() == issue.GetId()).Count() != 1) return false;
     List.Add(issue);
     return true;
 }
Ejemplo n.º 4
0
 public static Userstory ToUserstory(ref Userstory obj, string newStatus = "Not started")
 {
     return obj = new Userstory(obj.GetTitle(), obj.GetDescription(), newStatus, obj.CreatedOn, obj.Id);
 }