public TestCase AddCase(int sectionId, TestCase testCase) { var response = Post("add_case/" + sectionId, testCase); return JsonConvert.DeserializeObject<TestCase>(response); }
public TestCase UpdateCase(int testcaseId, TestCase updatedCase) { var url = "update_case/" + testcaseId; var originalCase = GetCase(testcaseId); originalCase.MergeWith(updatedCase); var response = _client.SendPost(url, originalCase); return JsonConvert.DeserializeObject<TestCase>(response.ToString()); }