Esempio n. 1
0
        public void Should_be_able_to_use_starts_with()
        {
            var specification = new StartsWithMessageRouteSpecification("Shuttle.ESB");

            Assert.IsFalse(specification.IsSatisfiedBy(new OtherNamespaceCommand()));
            Assert.IsTrue(specification.IsSatisfiedBy(new SimpleCommand()));
        }
        public void Should_be_able_to_use_starts_with()
        {
            var specification = new StartsWithMessageRouteSpecification("Shuttle.ESB");

            Assert.IsFalse(specification.IsSatisfiedBy(new OtherNamespaceCommand().GetType().FullName));
            Assert.IsTrue(specification.IsSatisfiedBy(new SimpleCommand().GetType().FullName));
        }