public async Task TodoDataService_GetTodos() { int expectedTodoCount = 200; var returneTodos = await _todoService.GetTodos(); Assert.AreEqual(expectedTodoCount, returneTodos.Count()); }
private async void Page_Loaded(object sender, RoutedEventArgs e) { var myTodos = await _todoService.GetTodos(); foreach (var todo in myTodos) { Todos.Add(todo); //populate details view with first todo that comes back if (todo.id == 1) { SelectedTodo.Add(todo); } } }