コード例 #1
0
 public TestPlan AddTestPlanEntry(int testPlanId, TestPlanEntry planEntry)
 {
     var response = Post("add_plan_entry/" + testPlanId, planEntry);
     return JsonConvert.DeserializeObject<TestPlan>(response);
 }
コード例 #2
0
        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);
        }