public ExperimentContainer(string instanceId, ExperimentRequest request, IExperimentFactory experimentFactory) { this.ExperimentRequest = request; this.testDataSource = new RandomBlobData(request.MinDataSize); InstanceId = instanceId; for (int i = 0; i < request.NumberOfThreads; i++) { this.experiments.Add(experimentFactory.CreateExperiment(request)); } }
public ExperimentRunner(string instanceId, IExperimentRepo experimentRepo, IExperimentFactory experimentFactory) { InstanceId = instanceId; ExperimentRepo = experimentRepo; ExperimentFactory = experimentFactory; }
internal PluginExperiment(Plugin plugin, IExperimentFactory factory) : base(plugin) { Factory = factory ?? throw new ArgumentNullException(nameof(factory)); ExperimentAttribute = factory.ExperimentType.GetExperimentAttribute(); }