protected override void DoSetUp() { adapter = TrackDisposable(new BuiltinContainerAdapter()); Configure.With(adapter) .Transport(t => t.UseRabbitMq(RabbitMqFixtureBase.ConnectionString, InputQueueName, "error")) .Behavior(b => b.EnableMessageAudit(AuditQueueName)) .CreateBus() .Start(1); RabbitMqFixtureBase.DeleteQueue(AuditQueueName); // make sure the receiver is in place at this point, ensuring that bindings'n'all are in place... auditQueueReceiver = TrackDisposable(new RabbitMqMessageQueue(RabbitMqFixtureBase.ConnectionString, AuditQueueName)); auditQueueReceiver.Initialize(); }
public void IfQueueNameHasAtSimbolItIsCreatedCorrectly() { const string recipientInputQueueName = "test.AtSimbol@"; queuesToDelete.Add(recipientInputQueueName); var recipientQueue = new RabbitMqMessageQueue(ConnectionString, recipientInputQueueName); recipientQueue.Initialize(); DeclareQueue(recipientInputQueueName, passive: true).ShouldBe(false); DeclareQueue(recipientInputQueueName.TrimEnd('@'), passive: true).ShouldBe(true); }