public void Can_create_url_with_JustId()
        {
            var url = new JustId {
                Id = 1
            }.ToUrl("GET");

            Assert.That(url, Is.EqualTo("/route/1"));
        }
        public void Can_generate_Reply_path()
        {
            var url = new JustId {
                Id = 1
            }.ToReplyUrl();

            Assert.That(url, Is.EqualTo("/json/reply/JustId?id=1"));

            url = new JustId {
                Id = 1
            }.ToReplyUrl(format: "xml");
            Assert.That(url, Is.EqualTo("/xml/reply/JustId?id=1"));
        }
        public void Can_generate_OneWay_path()
        {
            var url = new JustId {
                Id = 1
            }.ToOneWayUrl();

            Assert.That(url, Is.EqualTo("/json/oneway/JustId?id=1"));

            url = new JustId {
                Id = 1
            }.ToOneWayUrl(format: "xml");
            Assert.That(url, Is.EqualTo("/xml/oneway/JustId?id=1"));
        }
Example #4
0
 public void Can_create_url_with_JustId()
 {
     var url = new JustId { Id = 1 }.ToUrl("GET");
     Assert.That(url, Is.EqualTo("/route/1"));
 }