public TestPlan AddTestPlanEntry(int testPlanId, TestPlanEntry planEntry) { var response = Post("add_plan_entry/" + testPlanId, planEntry); return JsonConvert.DeserializeObject<TestPlan>(response); }
public TestPlan UpdateTestPlanEntry(int testPlanId, string entryId, TestPlanEntry updatedEntry) { var originalPlan = GetTestPlan(testPlanId); var originalentry = originalPlan.TestPlanEntries.First(e => e.Id == entryId); originalentry.MergeWith(updatedEntry); var response = Post($"update_plan_entry/{testPlanId}/{entryId}", originalentry); return JsonConvert.DeserializeObject<TestPlan>(response); }