public void Scenario_ArchiveAndUnarchive() { _trelloReadWrite.Cards.Archive(_welcomeToTrelloCardWritable); var archivedCard = _trelloReadWrite.Cards.WithId(_welcomeToTrelloCardWritable.GetCardId()); Assert.That(archivedCard.Closed, Is.True); _trelloReadWrite.Cards.Unarchive(_welcomeToTrelloCardWritable); var cardSentToBoard = _trelloReadWrite.Cards.WithId(_welcomeToTrelloCardWritable.GetCardId()); Assert.That(cardSentToBoard.Closed, Is.False); }
public CardsRequest(ICardId card, string resource = "", Method method = Method.GET) : base("cards/{cardId}/" + resource, method) { Guard.NotNull(card, "card"); AddParameter("cardId", card.GetCardId(), ParameterType.UrlSegment); this.AddCommonCardParameters(); }
public CardsRequest(ICardId card, string resource = "", Method method = Method.GET, bool includeAllFields = true) : base("cards/{cardId}/" + resource, method) { Guard.NotNull(card, "card"); AddParameter("cardId", card.GetCardId(), ParameterType.UrlSegment); if(includeAllFields) AddParameter("fields", "all"); this.AddCommonCardParameters(); }
public CardRequest(ICardId cardId, string resource = "", Method method = Method.GET) : base("cards/{cardId}/" + resource, method) { AddParameter("cardId", cardId.GetCardId(), ParameterType.UrlSegment); }