public Board(int developmentWipLimit, int testingWipLimit) { _todoColumn = new TodoColumn(); _developmentColumn = new InProgressColumn(developmentWipLimit); _testingColumn = new InProgressColumn(testingWipLimit); _doneColumn = new DoneColumn(); }
public InProgressColumn Please() { var column = new InProgressColumn(_wipLimit); foreach (var card in _cardsToAdd) { column.AddCard(card); } return(column); }
public void MoveTicketToInProgressColumn() { string testName = "MoveTicketToInProgressColumn"; Console.WriteLine("Test " + testName + " has started."); string asserMsg = ""; bool isTestPassed = false; try { XMLClass.LoadDocument(); GoToURL(XMLClass.GetUrl()); if (IsKanbanBoardOpened()) { ToDoColumn.ClickAddButton(); int numberBeforeMovingTicket = ToDoColumn.CountTickets(); int numberOfInProgressTickets = InProgressColumn.CountTickets(); ToDoColumn.MoveAddedTicketToInProgressColumn(); int numberOfToDoTickets = ToDoColumn.CountTickets(); int numberAfterMovingTicket = InProgressColumn.CountTickets(); if ((numberOfToDoTickets == numberBeforeMovingTicket - 1) && (numberAfterMovingTicket == numberOfInProgressTickets + 1)) { isTestPassed = true; Console.WriteLine("Test passed."); } else { Console.WriteLine("Drag and drop is not performed."); Console.WriteLine("Test failed."); } } } catch (Exception ex) { asserMsg = ex.Message; Console.WriteLine(asserMsg); } finally { Assert.IsTrue(isTestPassed, asserMsg); } }