public void LaraWebServiceAttributeDefaults() { var x = new LaraWebServiceAttribute(); Assert.Equal("POST", x.Method); Assert.Equal("application/json", x.ContentType); }
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); }