public void WithId_ADeleteAttachmentFromCardAction_ReturnsExpectedAction()
        {
            const string actionId = "4f6e48d47f4c6c2b35aa45ce";
            var          expected = new DeleteAttachmentFromCardAction
            {
                Id = actionId,
                IdMemberCreator = TrellonetTestUser,
                Date            = new DateTime(2012, 03, 24, 22, 21, 08, 925),
                Data            = new DeleteAttachmentFromCardAction.ActionData
                {
                    Board      = TheWelcomeBoard(),
                    Card       = TheWelcomeCard(),
                    Attachment = new AttachmentName
                    {
                        Id   = "4f49c85a38b425570c180338",
                        Name = "Penguins.jpg"
                    }
                },
                MemberCreator = CreateActionMemberMe()
            }.ToExpectedObject();

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

            expected.ShouldEqual(actual);
        }
Exemplo n.º 2
0
        public void WithId_ADeleteAttachmentFromCardAction_ReturnsExpectedAction()
        {
            const string actionId = "4f6e48d47f4c6c2b35aa45ce";
            var expected = new DeleteAttachmentFromCardAction
            {
                Id = actionId,
                IdMemberCreator = TrellonetTestUser,
                Date = new DateTime(2012, 03, 24, 22, 21, 08, 925),
                Data = new DeleteAttachmentFromCardAction.ActionData
                {
                    Board = TheWelcomeBoard(),
                    Card = TheWelcomeCard(),
                    Attachment = new AttachmentName
                    {
                        Id = "4f49c85a38b425570c180338",
                        Name = "Penguins.jpg"
                    }
				},
				MemberCreator = CreateActionMemberMe()
            }.ToExpectedObject();

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

            expected.ShouldEqual(actual);
        }