Exemplo n.º 1
0
        public async Task DeleteBatchAsyncTest()
        {
            // Stage - fetch the first 100 TransactionModels from local storage
            var batch = await _contract.PaginateAsync();

            /* .SaveChangesAsync() is called automatically within the contract */
            /* We don't need to call .SaveChangesAsync() again here for any reason */

            // Act & Assert - delete a collection of TransactionModels from local storage
            Assert.DoesNotThrowAsync(async() => await _contract.DeleteBatchAsync(batch, BatchSize.OneThousand));
        }