public TestRunner(RunSpace runSpace, string testName, Client assignedClient) { this.runSpace = runSpace; TestRunDirectory = runSpace.TestRunDirectory; this.testName = testName; this.client = assignedClient; }
public RunSpace GetFreeRunSpace() { if (RunSpaces.Count > 0) { foreach (var runSpace in RunSpaces) { if (runSpace.status == RunSpaceStatus.Free) { runSpace.CleanRunSpace(); return(runSpace); } } } var newRunSpace = new RunSpace(); RunSpaces.Add(newRunSpace); return(newRunSpace); }