public void FormatUpdateString()
        {
            RallyRestApi restApi  = GetRallyRestApi();
            Uri          result   = restApi.FormatUpdateUri("defect", "2121901027");
            var          expected = new Uri(IntegrationTestInfo.SERVER + "/slm/webservice/" + RallyRestApi.DEFAULT_WSAPI_VERSION + "/defect/2121901027.js");

            Assert.AreEqual(expected, result);
        }
        public void FormatUpdateString()
        {
            RallyRestApi restApi  = GetRallyRestApi();
            Uri          result   = restApi.FormatUpdateUri("defect", "2121901027");
            var          expected = new Uri(Settings.Default.TestServer + "/slm/webservice/" + RallyRestApi.DEFAULT_WSAPI_VERSION + "/defect/2121901027.js");

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 3
0
        public void FormatUpdateString()
        {
            RallyRestApi        restApi    = GetRallyRestApi();
            NameValueCollection parameters = new NameValueCollection();

            parameters["fetch"] = "Name";
            Uri result   = restApi.FormatUpdateUri("defect", "2121901027", parameters);
            var expected = new Uri(Settings.Default.TestServer + "/slm/webservice/" + RallyRestApi.DEFAULT_WSAPI_VERSION + "/defect/2121901027.js?fetch=Name");

            Assert.AreEqual(expected, result);
        }