public void WithId_AnAddAttachmentToCardAction_ReturnsExpectedAction()
        {
            const string actionId = "4f49c85a38b425570c18033a";
            var          expected = new AddAttachmentToCardAction
            {
                Id = actionId,
                IdMemberCreator = TrellonetTestUser,
                Date            = new DateTime(2012, 02, 26, 05, 51, 22, 200),
                Data            = new AddAttachmentToCardAction.ActionData
                {
                    Board      = TheWelcomeBoard(),
                    Card       = TheWelcomeCard(),
                    Attachment = new AttachmentLink
                    {
                        Id   = "4f49c85a38b425570c180338",
                        Name = "Penguins.jpg",
                        Url  = "https://trello-attachments.s3.amazonaws.com/4f2b8b4d4f2cb9d16d3684c9/4f2b8b4d4f2cb9d16d3684e6/xsMvxPpz55JpWVqIMxENcVXKxOkx/Penguins.jpg"
                    }
                },
                MemberCreator = CreateActionMemberMe()
            }.ToExpectedObject();

            var actual = _trelloReadOnly.Actions.WithId(actionId);

            expected.ShouldEqual(actual);
        }
Example #2
0
        public void WithId_AnAddAttachmentToCardAction_ReturnsExpectedAction()
        {
            const string actionId = "4f49c85a38b425570c18033a";
            var expected = new AddAttachmentToCardAction
            {
                Id = actionId,
                IdMemberCreator = TrellonetTestUser,
                Date = new DateTime(2012, 02, 26, 05, 51, 22, 200),
                Data = new AddAttachmentToCardAction.ActionData
                {
                    Board = TheWelcomeBoard(),
                    Card = TheWelcomeCard(),
                    Attachment = new AttachmentLink
                    {
                        Id = "4f49c85a38b425570c180338",
                        Name = "Penguins.jpg",
                        Url = "https://trello-attachments.s3.amazonaws.com/4f2b8b4d4f2cb9d16d3684c9/4f2b8b4d4f2cb9d16d3684e6/xsMvxPpz55JpWVqIMxENcVXKxOkx/Penguins.jpg"
                    }
				},
				MemberCreator = CreateActionMemberMe()
            }.ToExpectedObject();

            var actual = _trelloReadOnly.Actions.WithId(actionId);

            expected.ShouldEqual(actual);
        }