public void ShouldDefaultStorageQueueIfNotConfiguredAndNoOldLegacyQueueIsPresent()
        {
            const string endpointName = "MyEndpoint";

            MsmqHelpers.DeleteQueue(queuePath);

            Assert.AreEqual($"{endpointName}.Subscriptions", MsmqSubscriptionPersistence.DetermineStorageQueueName(PrepareSettings(endpointName)));
        }
        public void ShouldUseConfiguredStorageQueueEvenIfOldDefaultIsPresent()
        {
            const string customStorageQueue = "MyStorageQueue";

            Assert.AreEqual(customStorageQueue, MsmqSubscriptionPersistence.DetermineStorageQueueName(PrepareSettings(configuredStorageQueueName: customStorageQueue)));
        }
 public void ShouldThrowIfStorageQueueNotConfiguredAndOldDefaultIsPresent()
 {
     Assert.Throws <Exception>(() => MsmqSubscriptionPersistence.DetermineStorageQueueName(PrepareSettings(configuredStorageQueueName: null)));
 }