public void HandleTransientError()
        {
            this.exception = null;
            var ex = new MessagingException("hahaha");

            var bq = new BusQueue(Guid.NewGuid().ToString(), connection);
            bq.TransientErrorOccured += this.Error;
            bq.HandleTransientError(ex);

            Assert.AreEqual(ex, this.exception);
        }
 public void Manager()
 {
     var expected = NamespaceManager.CreateFromConnectionString(connection);
     var bq = new BusQueue(Guid.NewGuid().ToString(), expected, Substitute.For<IBusQueueClient>());
     Assert.AreEqual(expected, bq.Manager);
 }
 public void Name()
 {
     var expected = Guid.NewGuid().ToString();
     var bq = new BusQueue(expected, connection);
     Assert.AreEqual(expected, bq.Name);
 }