We have a service which listens to a Azure service bus queue. We have another service which listens to the dead letter queue of this queue. We also have a series of tests which run against our Azure application when it has have been deployed.
We would like to extend our automated tests so that the parts that deal with the dead letters are also tested, but are not sure how we can write tests which will ensure that messages get to the dead letter queue, as under normal circumstances messages will not dead letter.
currently we are testing this manually, but I feel like this is not a long term option.
any ideas?