public void Returns_queue_name_for_matched_tasks()
        {
            var taskRouter = new TaskRouter(new NamespaceMatcher("test", "Codestellation.DarkFlow.Tests"), new[] {_queue});

            taskRouter.Route(_executionEnvelope);

            Assert.That(_queue.Count, Is.EqualTo(1));
        }
        public void Throws_if_no_one_matches()
        {
            var router = new TaskRouter(new NamespaceMatcher("OrderedQueue", "Codestellation.DarkFlow.Absent"), new[] {_queue});

            Assert.Throws<InvalidOperationException>(delegate { router.Route(_executionEnvelope); });
        }