Ejemplo n.º 1
0
 public void TestQueueService_DeclareQueue_InvalidExchange()
 {
     Assert.That(() =>
     {
         BaseQueueService.Declare("non.existing.exchange", "company.queues.finance2");
     }, Throws.TypeOf <ServiceException>());
 }
Ejemplo n.º 2
0
 public void TestQueueService_DeclareQueue_ValidExchange()
 {
     Assert.DoesNotThrow(() => { BaseQueueService.Declare("amq.direct", "company.queues.finance2"); });
 }