public void Scenario_ChangeDescription() { _trelloReadWrite.Boards.ChangeDescription(_welcomeBoardWritable, "A new description"); var boardwithChangedDescription = _trelloReadWrite.Boards.WithId(_welcomeBoardWritable.GetBoardId()); Assert.That(boardwithChangedDescription.Desc, Is.EqualTo("A new description")); _trelloReadWrite.Boards.ChangeDescription(_welcomeBoardWritable, ""); }
public void Scenario_CloseAndReOpen() { _trelloReadWrite.Boards.Close(_welcomeBoardWritable); var closedBoard = _trelloReadWrite.Boards.WithId(_welcomeBoardWritable.GetBoardId()); Assert.That(closedBoard.Closed, Is.True); _trelloReadWrite.Boards.ReOpen(closedBoard); var reopenedBoard = _trelloReadWrite.Boards.WithId(_welcomeBoardWritable.GetBoardId()); Assert.That(reopenedBoard.Closed, Is.False); }
public NewList(string name, IBoardId board) { Guard.NotNullOrEmpty(name, "name"); Guard.NotNull(board, "board"); Name = name; IdBoard = board.GetBoardId(); }
public void Scenario_AddChecklist() { var checklist = _trelloReadWrite.Checklists.Add("a new checklist", _welcomeBoardWritable); Assert.That(checklist.CheckItems.Count, Is.EqualTo(0)); Assert.That(checklist.Id, Is.Not.Empty); Assert.That(checklist.IdBoard, Is.EqualTo(_welcomeBoardWritable.GetBoardId())); Assert.That(checklist.Name, Is.EqualTo("a new checklist")); }
public CardsMoveToBoardRequest(ICardId card, IBoardId board, IListId list) : base(card, "idBoard", Method.PUT) { Guard.NotNull(board, "board"); this.AddValue(board.GetBoardId()); if (list != null) AddParameter("idList", list.GetListId()); }
public CardsMoveToBoardRequest(ICardId card, IBoardId board, IListId list) : base(card, "idBoard", Method.PUT) { Guard.NotNull(board, "board"); this.AddValue(board.GetBoardId()); if (list != null) { AddParameter("idList", list.GetListId()); } }
public void Scenario_AddAndArchive() { var list = _trelloReadWrite.Lists.Add(new NewList("A new list", _welcomeBoardWritable)); Assert.That(list.Closed, Is.False); Assert.That(list.IdBoard, Is.EqualTo(_welcomeBoardWritable.GetBoardId())); Assert.That(list.Name, Is.EqualTo("A new list")); _trelloReadWrite.Lists.Archive(list); var closedList = _trelloReadWrite.Lists.WithId(list.Id); Assert.That(closedList.Closed, Is.True); }
public void Scenario_AddAndDelete() { var card = _trelloReadWrite.Cards.Add(new NewCard("A new card", _basicsListWritable) { Desc = "The card description" }); Assert.That(card.Desc, Is.EqualTo("The card description")); Assert.That(card.Name, Is.EqualTo("A new card")); Assert.That(card.IdBoard, Is.EqualTo(_welcomeBoardWritable.GetBoardId())); Assert.That(card.IdList, Is.EqualTo(_basicsListWritable.GetListId())); _trelloReadWrite.Cards.Delete(card); var deletedCard = _trelloReadWrite.Cards.WithId(card.Id); Assert.That(deletedCard, Is.Null); }
public BoardRequest(IBoardId boardId, string resource = "") : base("boards/{boardId}/" + resource) { AddParameter("boardId", boardId.GetBoardId(), ParameterType.UrlSegment); }
public BoardsRequest(IBoardId board, string resource = "", Method method = Method.GET) : base("boards/{boardId}/" + resource, method) { Guard.NotNull(board, "board"); AddParameter("boardId", board.GetBoardId(), ParameterType.UrlSegment); }
public BoardsRequest(IBoardId board, string resource = "", Method method = Method.GET) : base("boards/{boardId}/" + resource, method) { Guard.NotNull(board, "board"); AddParameter("boardId", board.GetBoardId(), ParameterType.UrlSegment); }