예제 #1
0
        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);
            }
        }
예제 #2
0
 public TestJobResult(TestJob job)
 {
     Job = job;
 }
예제 #3
0
 public StartJobMessage(TestJob job, IActorRef requestor)
 {
     Job       = job;
     Requestor = requestor;
 }