示例#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);
 }
示例#2
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;
 }