public void TestMethod1() { EntityReader reader = new EntityReader(); Task <List <PostAndReplies> > task = reader.GetPostList("4", 1); IList <PostAndReplies> postAbstract = task.Result; Assert.IsNotNull(postAbstract); }
private async void ForumSelectionChanged(object sender, SelectionChangedEventArgs e) { Forum item = (sender as ListView).SelectedItem as Forum; if (item == null) { return; } IList <PostAndReplies> postList = await entityReader.GetPostList(item.Id, 0); PostList.ItemsSource = postList; }