Exemplo n.º 1
0
 public void UpdateInputSet(string inputSetName, InputSetSummary summary)
 {
     Log("Updating Input Set Commands for " + inputSetName);
     var sets = new InputSets(Scenario);
     InputSet set = sets.Find(inputSetName);
     sets.UpdateInstructions(set, summary.Configuration);
 }
Exemplo n.º 2
0
 public void RunInputSet(string inputSetName,string action)
 {
     if (action != "run")
     {
         throw new InvalidOperationException("Cannot perform action " + action + " on input sets");
     }
     Log("Applying inout set " + inputSetName);
     var sets = new InputSets(Scenario);
     sets.Run(inputSetName);
 }
Exemplo n.º 3
0
 public InputSetSummary[] InputSetShenanigans()
 {
     Log("Requested input sets");
     var sets = new InputSets(Scenario);
     InputSetSummary[] result = new InputSetSummary[sets.All.Count];
     for (int i=  0; i < result.Length;i++)
     {
         var inputSet = sets.All[i];
         result[i] = new InputSetSummary
         {
             URL = String.Format("{0}/{1}",UriTemplates.InputSets,URLSafeString(inputSet.Name)),
             Name = inputSet.Name,
             Configuration = sets.Instructions(inputSet)
         };
     }
     return result;
 }