public void Should_be_able_to_create_a_new_route()
        {
            var map = new MessageRoute(new Uri("route://"));

            map.AddSpecification(new RegexMessageRouteSpecification("simple"));

            Assert.IsFalse(map.IsSatisfiedBy(new OtherNamespaceCommand().GetType().FullName));
            Assert.IsTrue(map.IsSatisfiedBy(new SimpleCommand().GetType().FullName));
        }
        public void Should_be_able_to_create_a_new_route()
        {
            IMessageRoute map = new MessageRoute(new MemoryQueue(new Uri("memory://.")));

            map.AddSpecification(new RegexMessageRouteSpecification("simple"));

            Assert.IsFalse(map.IsSatisfiedBy(new OtherNamespaceCommand()));
            Assert.IsTrue(map.IsSatisfiedBy(new SimpleCommand()));
        }