Esempio n. 1
0
        public void LoadAsync()
        {
            var testModel = new TrelloDataModel("wiOPDS9X");
            var result    = testModel.LoadAsync().Result;

            Assert.IsInstanceOfType(result, typeof(Trello));
        }
Esempio n. 2
0
        public async Task <IActionResult> Index(string url)
        {
            var tdm   = new TrelloDataModel(url);
            var board = await tdm.LoadAsync();

            if (!tdm.IsLoaded)
            {
                return(View("Error"));
            }

            var vm = new BoardViewModel
            {
                TrelloBoard = board,
                Source      = tdm.Source
            };

            return(View(vm));
        }