protected async Task Save() { await BooksClient.SaveBook(CurrentBook); UriHelper.NavigateTo("/"); }
protected async Task LoadBook(int id) { CurrentBook = await BooksClient.GetBook(id); }
public async Task OnGet([FromServices] BooksClient booksClient) { Books = await booksClient.GetBooksAsync(); }
public async Task ReturnsNullIfNotFound() { var book = await BooksClient.GetByBookId(int.MaxValue); Assert.Null(book); }
public async Task ReturnsNullIfNotFound() { var book = await BooksClient.GetByIsbn("test"); Assert.Null(book); }
private async Task LoadBooks(int page) { Books = await BooksClient.ListBooks(page); }