Example #1
0
        public async Task Forwards_the_predicate_to_the_datastore()
        {
            await AddTablesAsync();

            await NubeClient.FindByAsync(_predicate);

            await DataStore.Received().FindByAsync(_predicate);
        }
Example #2
0
        public async Task Checks_if_table_is_valid()
        {
            var ex = await Assert.ThrowsAsync <InvalidOperationException>(async() => await NubeClient.FindByAsync(_predicate));

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