public TestRunItems PostRunItem(TestRunItems testRunItems)
        {
            ItemUpdate itemUpdate = new ItemUpdate();

            itemUpdate.automated          = testRunItems.automated;
            itemUpdate.configuration_name = testRunItems.configuration_name;
            itemUpdate.id = testRunItems.id;
            itemUpdate.last_run_by_name = testRunItems.last_run_by_name;
            itemUpdate.project_id       = testRunItems.project_id;
            itemUpdate.release_id       = testRunItems.release_id;
            itemUpdate.release_name     = testRunItems.release_name;
            itemUpdate.run_by_user_id   = testRunItems.run_by_user_id;

            itemUpdate.status_code   = testRunItems.status_code;
            itemUpdate.test_host     = testRunItems.test_host;
            itemUpdate.test_id       = testRunItems.test_id;
            itemUpdate.test_name     = testRunItems.test_name;
            itemUpdate.test_run_id   = testRunItems.test_run_id;
            itemUpdate.test_set_id   = testRunItems.test_set_id;
            itemUpdate.test_set_name = testRunItems.test_set_name;
            itemUpdate.steps         = testRunItems.test_run_results;

            foreach (var i in itemUpdate.steps)
            {
                i.step_name     = i.step;
                i.actual_result = testRunItems.actualResult;
                i.status_code   = testRunItems.status_code;
            }

            itemUpdate.run_time = testRunItems.run_time;


            var client = new RestClient(conFIG.QACompleteEndPoint + "v2/projects/{projectID}/testruns/{runID}/items/{runItemID}");

            var request = new RestRequest(Method.PATCH);

            request.AddUrlSegment("runID", testRunItems.test_run_id);
            request.AddUrlSegment("runItemID", testRunItems.id);
            request.AddUrlSegment("projectID", Project);
            request.AddJsonBody(itemUpdate);
            request.AddHeader("Authorization", Auth);
            request.AddHeader("Content-Type", "application/json");

            var    response = client.Execute(request);
            string L        = response.Content;

            TestRunItems item = new TestRunItems();

            item = JsonConvert.DeserializeObject <QACDataModel.TestRunItems>(L);

            return(item);
        }
        public TestRunItems GetRunItem(Int32 RunID, Int32 RunItemID)
        {
            var client = new RestClient(conFIG.QACompleteEndPoint + "v2/projects/{projectID}/testruns/{runID}/items/{runItemID}");

            var request = new RestRequest(Method.GET);

            request.AddUrlSegment("runID", RunID);
            request.AddUrlSegment("runItemID", RunItemID);
            request.AddUrlSegment("projectID", Project);
            request.AddHeader("Authorization", Auth);
            request.AddHeader("Content-Type", "application/json");

            var    response = client.Execute(request);
            string L        = response.Content;

            TestRunItems item = new TestRunItems();

            item = JsonConvert.DeserializeObject <QACDataModel.TestRunItems>(L);

            return(item);
        }