Exemplo n.º 1
0
 public void ThenEventHasExpense(string eventName, Table expenses)
 {
     eventName += uniqueStamp;
     GetEventPanel(eventName);
     foreach (var expense in expenses.Rows)
     {
         if (expense.Keys.Contains("Vendor") && expense["Vendor"] != string.Empty)
         {
             expense["Vendor"] = expense["Vendor"] + uniqueStamp;
         }
         if (!EventPanel.ExpenseExists(expense))
         {
             throw new ArgumentException(String.Format("Event '{0}' does not have expense '{1}'", eventName,
                                                       expense));
         }
     }
 }