Esempio n. 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);
            }
        }
Esempio n. 2
0
 public TestJobResult(TestJob job)
 {
     Job = job;
 }
Esempio n. 3
0
 public StartJobMessage(TestJob job, IActorRef requestor)
 {
     Job       = job;
     Requestor = requestor;
 }