@@ -120,7 +120,7 @@ public void CreateTest()
120120 RallyRestApi restApi = GetRallyRestApi ( ) ;
121121 var dynamicJson = new DynamicJsonObject ( ) ;
122122 dynamicJson [ "Name" ] = "C# Json Rest Toolkit Test Defect" ;
123- CreateResult response = restApi . Create ( "defect" , dynamicJson ) ;
123+ CreateResult response = restApi . Create ( null , "defect" , dynamicJson ) ;
124124 Assert . AreEqual ( 0 , response . Errors . Count ) ;
125125 Assert . AreEqual ( 0 , response . Warnings . Count ) ;
126126 Assert . IsTrue ( response . Reference . ToLower ( ) . Contains ( "defect" ) ) ;
@@ -136,7 +136,7 @@ public void CreateSadPathTest()
136136 var defect = new DynamicJsonObject ( ) ;
137137 defect [ "Name" ] = "Sample Defect with invalid field" ;
138138 defect [ "Iteration" ] = "Foo" ;
139- CreateResult creationResult = restApi . Create ( "defect" , defect ) ;
139+ CreateResult creationResult = restApi . Create ( null , "defect" , defect ) ;
140140 Assert . IsNull ( creationResult . Reference ) ;
141141 Assert . AreEqual ( 1 , creationResult . Errors . Count ) ;
142142 Assert . IsFalse ( creationResult . Success ) ;
@@ -148,7 +148,7 @@ public void DeleteTest()
148148 RallyRestApi restApi = GetRallyRestApi ( ) ;
149149 var dynamicJson = new DynamicJsonObject ( ) ;
150150 dynamicJson [ "Name" ] = "C# Json Rest Toolkit Test Defect" ;
151- CreateResult response = restApi . Create ( "defect" , dynamicJson ) ;
151+ CreateResult response = restApi . Create ( null , "defect" , dynamicJson ) ;
152152 Assert . AreEqual ( 0 , response . Errors . Count ) ;
153153 Assert . AreEqual ( 0 , response . Warnings . Count ) ;
154154 Assert . IsTrue ( response . Reference . ToLower ( ) . Contains ( "defect" ) ) ;
@@ -273,7 +273,7 @@ public void TestAttribute()
273273 public void FormatCreateString ( )
274274 {
275275 RallyRestApi restApi = GetRallyRestApi ( ) ;
276- Uri result = restApi . FormatCreateString ( "defect" ) ;
276+ Uri result = restApi . FormatCreateString ( null , "defect" ) ;
277277 var expected = new Uri ( IntegrationTestInfo . SERVER + "/slm/webservice/" + RallyRestApi . DEFAULT_WSAPI_VERSION + "/defect/create.js" ) ;
278278 Assert . AreEqual ( expected , result ) ;
279279 }
0 commit comments