예제 #1
0
        public async Task Queries_all_items_from_the_datastore()
        {
            await AddTablesAsync();

            await NubeClient.GetAllAsync <TestItem>();

            await DataStore.Received().AllAsync <TestItem>();
        }
예제 #2
0
        private async Task RefreshItemsAsync()
        {
            var list = (await _nubeClient.GetAllAsync <TodoItem>()).ToList().OrderBy(i => i.CreatedAt);

            collectionView.ItemsSource = list;
        }
예제 #3
0
        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);
        }