public void Scenario_ArchiveAndUnarchive() { _trelloReadWrite.Lists.Archive(_basicsListWritable); var closedList = _trelloReadWrite.Lists.WithId(_basicsListWritable.GetListId()); Assert.That(closedList.Closed, Is.True); _trelloReadWrite.Lists.Unarchive(closedList); var reopenedList = _trelloReadWrite.Lists.WithId(_basicsListWritable.GetListId()); Assert.That(reopenedList.Closed, Is.False); }
public NewCard(string name, IListId list) { Guard.NotNullOrEmpty(name, "name"); Guard.NotNull(list, "list"); Name = name; 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 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_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 CardsMoveRequest(ICardId card, IListId list) : base(card, "idList", Method.PUT) { Guard.NotNull(list, "list"); this.AddValue(list.GetListId()); }
public ListsRequest(IListId list, string resource = "", Method method = Method.GET) : base("list/{listId}/" + resource, method) { Guard.NotNull(list, "list"); AddParameter("listId", list.GetListId(), ParameterType.UrlSegment); }
public ListRequest(IListId listId, string resource = "", Method method = Method.GET) : base("list/{listId}/" + resource, method) { AddParameter("listId", listId.GetListId(), ParameterType.UrlSegment); }
public ListsRequest(IListId list, string resource = "", Method method = Method.GET) : base("lists/{listId}/" + resource, method) { Guard.NotNull(list, "list"); AddParameter("listId", list.GetListId(), ParameterType.UrlSegment); }