public void LoadAsync() { var testModel = new TrelloDataModel("wiOPDS9X"); var result = testModel.LoadAsync().Result; Assert.IsInstanceOfType(result, typeof(Trello)); }
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)); }