public void LoadQueueTest()
        {
            var manager = new QueueManager();
            var q = manager.Load("test-queue");

            q.Should().NotBeNull();
            q.Name.Should().Be("test-queue");

            q.Configuration.Should().NotBeNull();
            q.Repository.Should().NotBeNull();


            manager.Queues.Count.Should().Be(1);
        }
        public void Configure()
        {
            var manager = new QueueManager();
            var messageQueue = new MessageQueue(manager);

            messageQueue.Configure(c => c
                 .Connection("Messaging")
                 .ControlQueue("control-name")
                 .Queue(q => q
                     .Name("queue-name")
                     .Description("description")
                     .Retry(1)
                     .Priority(MessagePriority.Normal)
                     .ResponseQueue("response-name")
                 )
                 .Queue(q => q
                     .Name("queue-blah")
                     .Description("description")
                     .Retry(5)
                     .Priority(MessagePriority.Normal)
                     .ResponseQueue("response-blah")
                 )
                 .Subscribe(s => s
                     .Queue("queue-name")
                     .Handler<MessageHandler>()
                     .PollTime(TimeSpan.FromSeconds(10))
                     .Workers(2)
                 )
                 .Subscribe(s => s
                     .Queue("queue-blah")
                     .PollTime(TimeSpan.FromSeconds(10))
                     .Handler(() => new MessageHandler())
                     .Workers(2)
                     .Timeout(TimeSpan.FromMinutes(30))
                     .TimeoutAction(TimeoutPolicy.Retry)
                 )
             );


            manager.Should().NotBeNull();
            manager.ConnectionName.Should().Be("Messaging");
            manager.ControlName.Should().Be("control-name");

            manager.Queues.Count.Should().Be(2);

            var subscriptions = manager.Subscriptions.ToList();
            subscriptions.Count.Should().Be(2);
        }