Create `TemporaryNoSqlDocument` test fixture for test-friendly Azure CosmosDb storage interaction
Opened this issue · 0 comments
Is your feature request related to a problem? Please describe.
When interacting with Azure CosmosDb storage, we need a test-friendly way of uploading and downloading documents. Any uploading operation should automatically result in a removal of the document when the test is run.
Describe the solution you'd like
A good way of showing this setup/teardown relationship is by creating a temporary test fixture which uploads the document upon creation of the test fixture and removes them once the fixture is disposed of. We should make sure that we both provide factory methods for uploading a new document as well as referencing an existing document. That way, any business operation that uploads a blob is also taken into account when the test fixture is disposed.
Additional context