コード例 #1
0
        protected async Task Save()
        {
            await BooksClient.SaveBook(CurrentBook);

            UriHelper.NavigateTo("/");
        }
コード例 #2
0
 protected async Task LoadBook(int id)
 {
     CurrentBook = await BooksClient.GetBook(id);
 }
コード例 #3
0
 public async Task OnGet([FromServices] BooksClient booksClient)
 {
     Books = await booksClient.GetBooksAsync();
 }
コード例 #4
0
            public async Task ReturnsNullIfNotFound()
            {
                var book = await BooksClient.GetByBookId(int.MaxValue);

                Assert.Null(book);
            }
コード例 #5
0
            public async Task ReturnsNullIfNotFound()
            {
                var book = await BooksClient.GetByIsbn("test");

                Assert.Null(book);
            }
コード例 #6
0
 private async Task LoadBooks(int page)
 {
     Books = await BooksClient.ListBooks(page);
 }