Ejemplo n.º 1
0
		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);
		}
Ejemplo n.º 2
0
		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();
		}
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
		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();
		}
Ejemplo n.º 5
0
 public CardRequest(ICardId cardId, string resource = "", Method method = Method.GET)
     : base("cards/{cardId}/" + resource, method)
 {
     AddParameter("cardId", cardId.GetCardId(), ParameterType.UrlSegment);
 }