コード例 #1
0
ファイル: MajorGivingSteps.cs プロジェクト: blackbaud/uat-kit
 public void ThenThePlanExistsOnTheConstituent(Table plans)
 {
     foreach (var plan in plans.Rows)
     {
         if (plan.ContainsKey("Constituent") && !string.IsNullOrEmpty(plan["Constituent"]))
         {
             plan["Constituent"] += uniqueStamp;
         }
         if (plan.ContainsKey("Plan name") && !string.IsNullOrEmpty(plan["Plan name"]))
         {
             plan["Plan name"] += uniqueStamp;
         }
         if (!ConstituentPanel.PlanExists(plan))
         {
             throw new ArgumentException(String.Format("Plan '{0}' does not exist on the current constituent",
                                                       plan.Values));
         }
     }
 }