Example #1
0
 /// <summary>parses a test from the supplied json</summary>
 /// <param name="json">json for the test</param>
 /// <returns>test corresponding to the json</returns>
 public static Test Parse(JObject json)
 {
     Test t = new Test();
     t.ID = (ulong?)json["id"];
     t.CaseID = (ulong?)json["case_id"];
     t.RunID = (ulong?)json["run_id"];
     t.Status = (ResultStatus?)((int)json["status_id"]);
     t.AssignedToID = (ulong?)json["assignedto_id"];
     t.Title = (string)json["title"];
     return t;
 }
Example #2
0
 /// <summary>parses a test from the supplied json</summary>
 /// <param name="json">json for the test</param>
 /// <returns>test corresponding to the json</returns>
 public static Test Parse(JObject json)
 {
     var t = new Test
     {
         JsonFromResponse = json,
         ID = (ulong?)json["id"],
         CaseID = (ulong?)json["case_id"],
         RunID = (ulong?)json["run_id"],
         Status = (ResultStatus?)((int)json["status_id"]),
         AssignedToID = (ulong?)json["assignedto_id"],
         Title = (string)json["title"],
     };
     return t;
 }