Exemple #1
0
        public void WithId_ClosedBoardNotification_ReturnsCorrectData()
        {
            var expectedData = new CloseBoardNotification.NotificationData
            {
                Board = new BoardName
                {
                    Id   = "4f3f548a57189443042c49e1",
                    Name = "Another test board"
                }
            }.ToExpectedObject();

            var actual = (CloseBoardNotification)_trelloReadOnly.Notifications.WithId("4f3f5c063cf351b24302108e");

            expectedData.ShouldEqual(actual.Data);
        }
        public void WithId_ClosedBoardNotification_ReturnsCorrectData()
        {
            var expectedData = new CloseBoardNotification.NotificationData
            {
                Board = new BoardName
                {
                    Id = "4f3f548a57189443042c49e1",
                    Name = "Another test board"
                }
            }.ToExpectedObject();

            var actual = (CloseBoardNotification)_trelloReadOnly.Notifications.WithId("4f3f5c063cf351b24302108e");

            expectedData.ShouldEqual(actual.Data);
        }