示例#1
0
        public async void LoadBoardsNoToken()
        {
            Trello.Token = "";
            await Trello.LoadBoards();

            Assert.Empty(Trello.Boards);
        }
示例#2
0
        public async Task <IActionResult> LoadBoards()
        {
            if (String.IsNullOrEmpty(Trello.Token))
            {
                return(RedirectToAction(nameof(Index)));
            }
            await Trello.LoadBoards();

            return(RedirectToAction(nameof(Boards)));
        }
示例#3
0
        public async void LoadBoardsWithToken()
        {
            await Trello.LoadBoards();

            Assert.NotEmpty(Trello.Boards);
        }