Пример #1
0
 public TestRunner(RunSpace runSpace, string testName, Client assignedClient)
 {
     this.runSpace    = runSpace;
     TestRunDirectory = runSpace.TestRunDirectory;
     this.testName    = testName;
     this.client      = assignedClient;
 }
Пример #2
0
        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);
        }