Esempio n. 1
0
        public static void Search_WithTestQuery_ReturnsCorrectBoard()
        {
            var expected = new Board
            {
                Closed         = false,
                Name           = "Welcome Board",
                Desc           = "A test description",
                IdOrganization = Constants.TestOrganizationId,
                Pinned         = true,
                Url            = "https://trello.com/b/XxQn08CF/welcome-board",
                Id             = Constants.WelcomeBoardId,
                Prefs          = new BoardPreferences
                {
                    Comments        = CommentPermission.Members,
                    Invitations     = InvitationPermission.Members,
                    PermissionLevel = PermissionLevel.Private,
                    Voting          = VotingPermission.Members
                },
                LabelNames = new Dictionary <Color, string>
                {
                    { Color.Yellow, "" },
                    { Color.Red, "" },
                    { Color.Purple, "" },
                    { Color.Orange, "" },
                    { Color.Green, "label name" },
                    { Color.Blue, "" },
                }
            };

            var actual = _trelloReadOnly.Search("Welcome Board").Boards.First();

            int t = 0;

            t++;

            //expected.ShouldEqual(actual);
        }