Ejemplo n.º 1
0
        public void RefreshBookListFuncTest()                                  //刷新在读书单功能测试
        {
            BookService         service = BookService.getInstance();
            List <BookListItem> list    = service.RefreshBookList("TestUser");

            Assert.IsTrue(list != null);
        }
Ejemplo n.º 2
0
        public void RefreshBookListBoundaryTest()                                  //刷新在读书单边界测试
        {
            BookService         service = BookService.getInstance();
            List <BookListItem> list    = service.RefreshBookList("");

            Assert.IsTrue(list == null);
        }
Ejemplo n.º 3
0
        private void RefreshBookList()
        {
            List <BookListItem> books = bookService.RefreshBookList(phoneAppServeice.State["username"].ToString());

            foreach (BookListItem item in books)
            {
                Debug.WriteLine("[DEBUG]Item Status is : " + item.Status + " | Title is : " + item.Title + " | HaveReadPage : " + item.HaveReadPage + " | PageNo : " + item.PageNo);
            }
            BookListItems.ItemsSource = books;
        }