Example #1
0
        public void MoveToNextColumn(Ticket ticket)
        {
            Guard.ArgumentNotNull(nameof(ticket), ticket);

            if (Backlog.Contains(ticket))
            {
                Move(Backlog, ToDo, ticket);
                return;
            }

            if (ToDo.Contains(ticket))
            {
                Move(ToDo, Test, ticket);
                return;
            }

            if (Test.Contains(ticket))
            {
                Move(Test, Done, ticket);
                return;
            }

            if (Done.Contains(ticket))
            {
                throw new InvalidOperationException("The ticket is in the done column");
            }

            throw new InvalidOperationException("Ticket not found");
        }
Example #2
0
 public static bool IsDone(this OrderStatus orderStatus)
 {
     return(Done.Contains(orderStatus));
 }
Example #3
0
 /// <summary>
 ///     Checks that Done contains the task
 ///     Debug should be set to true
 /// </summary>
 /// <param name="task"></param>
 /// <returns></returns>
 public bool IsDone(SymuTask task)
 {
     return(Done.Contains(task));
 }