예제 #1
0
        private static void RunPlan(CommandResult <ulong> plan, List <ConfigurationGroup> configurationGroups)
        {
            if (!plan.WasSuccessful)
            {
                Console.WriteLine("failed to create plan \n{0}", plan.Exception);
                return;
            }

            var p = client.GetPlan(plan.Value);

            foreach (var entry in p.Entries)
            {
                foreach (var run in entry.RunList)
                {
                    var configurations = configurationGroups.SelectMany(x => x.Configurations)
                                         .Where(x => run.ConfigIDs.Contains(x.ID)).ToList();
                    RunCases(new CommandResult <ulong>(true, run.ID.Value), configurations);
                }
            }

            client.ClosePlan(p.ID);
        }