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

            await NubeClient.GetByIdAsync <TestItem>(_id);

            await DataStore.Received().FindByIdAsync <TestItem>(_id);
        }
예제 #2
0
        public async Task Checks_if_table_is_valid()
        {
            var ex = await Assert.ThrowsAsync <InvalidOperationException>(async() => await NubeClient.GetByIdAsync <TestItem>(_id));

            Assert.Equal("Table TestItem is not registered in the nube client", ex.Message);
        }