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)); } } }