Exemplo n.º 1
0
 public void ThenEventHasRegistrationOptions(string eventName, Table registrationOptions)
 {
     //GetEventPanel(eventName);  // open event panel
     foreach (var option in registrationOptions.Rows)
     {
         if (!EventPanel.RegistrationOptionExists(option))
         {
             throw new ArgumentException("'" + option +
                                         "' was not found on the Registration options datalist for event " +
                                         eventName + ".");
         }
     }
 }
 public void ThenEventHasRegistrationOption(string eventName, Table registrationOptions)
 {
     eventName += uniqueStamp;  // the unique stamp is a series of numbers to keep names different from each other
     GetEventPanel(eventName);  // open event panel
     foreach (var option in registrationOptions.Rows)
     {
         if (!EventPanel.RegistrationOptionExists(option))
         {
             throw new ArgumentException("'" + option +
                                         "' was not found on the Registration options datalist for event " +
                                         eventName + ".");
         }
     }
 }
Exemplo n.º 3
0
 public void WhenIAddRegistrationOptionsToEvent(string eventName, Table registrationOptions)
 {
     try
     {
         foreach (var option in registrationOptions.Rows)
         {
             if (!EventPanel.RegistrationOptionExists(option))
             {
                 EventPanel.AddRegistrationOption(option);  //add a registration option
             }
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not add a registration option. " + ex.Message);
     }
 }