public static TestAgentJob TestJob2TestAgentJob(TestJob testjob) { string jobstring = testjob.Job; if (string.IsNullOrEmpty(jobstring)) { logger.Error("The test Job content is null."); return(null); } try { var testAgentJob = JsonConvert.DeserializeObject <TestAgentJob>(jobstring); return(testAgentJob); } catch (JsonException ex) { logger.Error("Cannot deserialize the test job {0} to TestAgentJob with json exception {1}.", jobstring, ex.Message); return(null); } }
public TestJobResult(TestJob job) { Job = job; }
public StartJobMessage(TestJob job, IActorRef requestor) { Job = job; Requestor = requestor; }