-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathQueueProvisioningTests.cs
25 lines (22 loc) · 1.19 KB
/
QueueProvisioningTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace ServiceControl.Transport.Tests
{
using System.Threading.Tasks;
using NUnit.Framework;
[TestFixture]
class QueueProvisioningTests : TransportTestFixture
{
[Test]
public async Task Should_provision_queues()
{
var queueName = GetTestQueueName("provision");
var errorQueue = queueName + ".error";
var additionalQueue1 = queueName + ".extra1";
var additionalQueue2 = queueName + ".extra2";
await ProvisionQueues(queueName, errorQueue, [additionalQueue1, additionalQueue2]);
Assert.DoesNotThrowAsync(async () => await Dispatcher.SendTestMessage(queueName, "some content", configuration.TransportCustomization));
Assert.DoesNotThrowAsync(async () => await Dispatcher.SendTestMessage(errorQueue, "some content", configuration.TransportCustomization));
Assert.DoesNotThrowAsync(async () => await Dispatcher.SendTestMessage(additionalQueue1, "some content", configuration.TransportCustomization));
Assert.DoesNotThrowAsync(async () => await Dispatcher.SendTestMessage(additionalQueue2, "some content", configuration.TransportCustomization));
}
}
}