What is an appropriate way to integration test systems that use ASB? With something like Kafka and using docker-compose, I could spin up two services that will communicate asynchronously over Kafka. Is there a way to do something similar with ASB? If not, what is a common integration testing pattern?
The pricing model for Service Bus has 12.5 million operations per month included for free. Past that, it's less than a dollar per millions of messages sent. With these kinds of services it should be simple for you to spin up and tear down instances with absolutely zero cost to you as part of integration tests.
NUnit, for example provides the [OneTimeSetup]
and [OneTimeTearDown]
methods which you could use as part of an integration test suite to provision and subsequently delete a Service Bus instance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With