arcus-azure/arcus.testing

Create `TemporaryTableRecord` test fixture for test-friendly Azure Table storage interaction

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
When interacting with Azure Table storage, we need a test-friendly way of inserting and removing records. Any insert operation should automatically result in a removal of the record when the test is run.

Describe the solution you'd like
A good way of of showing this setup/teardown relationship is by creating a temporary test fixture which inserts the record upon creation and removes the record when the fixture is disposed of. We should make sure that we both provide factory methods for uploading a new record as well as referencing an existing record. That way, any business operation that uploads a record is also taken into account when the test fixture is disposed.

Additional context