コード例 #1
0
        public void WithId_AddedToCardNotification_ReturnsCorrectData()
        {
            var expectedData = new AddedToCardNotification.NotificationData
            {
                Board = new BoardName
                {
                    Id = "4f2b8b4d4f2cb9d16d3684c9",
                    Name = "Welcome Board"
                },
                Card = new CardName
                {
                    Id = "4f2b8b4d4f2cb9d16d368506",
                    Name = "To learn more tricks, check out the guide."
                }
            }.ToExpectedObject();

            var actual = (AddedToCardNotification)_trelloReadOnly.Notifications.WithId("4f359c4d655ca8cf3f049274");

            expectedData.ShouldEqual(actual.Data);
        }
コード例 #2
0
        public void WithId_AddedToCardNotification_ReturnsCorrectData()
        {
            var expectedData = new AddedToCardNotification.NotificationData
            {
                Board = new BoardName
                {
                    Id   = "4f2b8b4d4f2cb9d16d3684c9",
                    Name = "Welcome Board"
                },
                Card = new CardName
                {
                    Id   = "4f2b8b4d4f2cb9d16d368506",
                    Name = "To learn more tricks, check out the guide."
                }
            }.ToExpectedObject();

            var actual = (AddedToCardNotification)_trelloReadOnly.Notifications.WithId("4f359c4d655ca8cf3f049274");

            expectedData.ShouldEqual(actual.Data);
        }
コード例 #3
0
		public void WithId_AddedToCardNotification_ReturnsCorrectData()
		{
			var expectedData = new AddedToCardNotification.NotificationData
			{
			    Board = new BoardName
			    {
			        Id = "4f2b8b4d4f2cb9d16d3684c9",
			        Name = "Welcome Board"
			    },
			    Card = new CardName
			    {
			        Id = "4f2b8b4d4f2cb9d16d368506",
			        Name = "To learn more tricks, check out the guide."
			    }
			}.ToExpectedObject();

			var actual = (AddedToCardNotification)_trelloReadOnly.Notifications.WithId("4f359c4d655ca8cf3f049274");
            // Since there are not added to card notifications currently actual is null
            // July 10th 2013 - this test is set to be ignored.
			expectedData.ShouldEqual(actual.Data);			
		}