Esempio n. 1
0
        [Test, Ignore] // Notification does not exist anymore
		public void WithId_TheNotification_ReturnsExpectedNotification()
		{
			var expected = new AddedToCardNotification
			{
				Id = "4f359c4d655ca8cf3f049274",
				Unread = false,
				Date = new DateTime(2012, 02, 10, 22, 38, 05, 248),
				IdMemberCreator = "4ece5a165237e5db06624a2a",
				Data = 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 = _trelloReadOnly.Notifications.WithId("4f359c4d655ca8cf3f049274");

			expected.ShouldEqual(actual);
		}
Esempio n. 2
0
        public void WithId_TheNotification_ReturnsExpectedNotification()
        {
            var expected = new AddedToCardNotification
            {
                Id              = "4f359c4d655ca8cf3f049274",
                Unread          = false,
                Date            = new DateTime(2012, 02, 10, 22, 38, 05, 248),
                IdMemberCreator = "4ece5a165237e5db06624a2a",
                Data            = 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 = _trelloReadOnly.Notifications.WithId("4f359c4d655ca8cf3f049274");

            expected.ShouldEqual(actual);
        }