public async Task Queries_all_items_from_the_datastore() { await AddTablesAsync(); await NubeClient.GetAllAsync <TestItem>(); await DataStore.Received().AllAsync <TestItem>(); }
private async Task RefreshItemsAsync() { var list = (await _nubeClient.GetAllAsync <TodoItem>()).ToList().OrderBy(i => i.CreatedAt); collectionView.ItemsSource = list; }
public async Task Checks_if_table_is_valid() { var ex = await Assert.ThrowsAsync <InvalidOperationException>(async() => await NubeClient.GetAllAsync <TestItem>()); Assert.Equal("Table TestItem is not registered in the nube client", ex.Message); }