arcus-azure/arcus.testing

Create `TemporaryTopicSubscription` test fixture for test-friendly Azure Service bus topic interaction

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
When sending/receiving messages on an Azure Service bus topic, one needs to set up a subscription. This subscription should be independent from other tests or test runs and should be removed when the test is complete.

Describe the solution you'd like
A temporary test fixture is a good way of showing this setup/teardown relationship. We should expose the subscription name as a property in the test fixture for later usage, and consider generating such a subscription name by default instead of taking it in, for even more easier usage. This could be with a Test- prefix.

Additional context