Example #1
0
 public static bool AssociateSites(List <SiteInfo> siteInfoList)
 {
     try
     {
         List <String> sites = new List <String>();
         foreach (SiteInfo siteInfo in siteInfoList)
         {
             sites.Add(siteInfo.Site);
         }
         Control_ActionUtilities.Dropdown_SelectItems(DL_Lab_AssociateSitesPage.AvailableSitesListBox, sites);
         Control_ActionUtilities.Click(DL_Lab_AssociateSitesPage.AddButton, String.Empty);
         return(Control_ActionUtilities.Click(DL_Lab_AssociateSitesPage.SaveButton, String.Empty));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }