public void WithId_ACreateListAction_ReturnsExpectedAction()
        {
            const string actionId = "4f6e4fca255ed1e908575823";
            var          expected = new CreateListAction
            {
                Id = actionId,
                IdMemberCreator = TrellonetTestUser,
                Date            = new DateTime(2012, 03, 24, 22, 50, 50, 103),
                Data            = new CreateListAction.ActionData
                {
                    Board = TheWelcomeBoard(),
                    List  = new ListName
                    {
                        Id   = "4f6e4fca255ed1e908575821",
                        Name = "Test"
                    }
                },
                MemberCreator = CreateActionMemberMe()
            }.ToExpectedObject();

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

            expected.ShouldEqual(actual);
        }
示例#2
0
        public void WithId_ACreateListAction_ReturnsExpectedAction()
        {
            const string actionId = "4f6e4fca255ed1e908575823";
            var expected = new CreateListAction
            {
                Id = actionId,
                IdMemberCreator = TrellonetTestUser,
                Date = new DateTime(2012, 03, 24, 22, 50, 50, 103),
                Data = new CreateListAction.ActionData
                {
                    Board = TheWelcomeBoard(),
                    List = new ListName
                    {
                        Id = "4f6e4fca255ed1e908575821",
                        Name = "Test"
                    }
				},
				MemberCreator = CreateActionMemberMe()
            }.ToExpectedObject();

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

            expected.ShouldEqual(actual);
        }