public static BatchExperimentTemplate Create(BatchExperiment batchExperiment)
 {
     return(BatchExperimentTemplate
            .Create(batchExperiment.BatchMode)
            .WithExperimentTemplates(batchExperiment
                                     .Experiments
                                     .Select(e => ExperimentTemplate.Create(e))));
 }
        public static ExperimentTemplate Create(ExperimentBase experiment)
        {
            ExperimentTemplate result = new ExperimentTemplate()
            {
                ExperimentTypeName = experiment.GetType().FullName
            };

            result.ExperimentParameters = experiment.GetParametersSnapshot();

            return(result
                   .WithAgent(experiment.Agent)
                   .WithEnvironment(experiment.Environment)
                   .WithReporter(experiment.Reporter));
        }