Esempio n. 1
0
        public void LaraWebServiceAttributeDefaults()
        {
            var x = new LaraWebServiceAttribute();

            Assert.Equal("POST", x.Method);
            Assert.Equal("application/json", x.ContentType);
        }
Esempio n. 2
0
        public void LaraWebServiceAttributeProperties()
        {
            var x = new LaraWebServiceAttribute
            {
                Address     = "/",
                ContentType = "lala",
                Method      = "PUT"
            };

            Assert.Equal("/", x.Address);
            Assert.Equal("lala", x.ContentType);
            Assert.Equal("PUT", x.Method);
        }