/// <summary>
 /// Adds a child site to the isntallation, and clicks through the message span stating there was an error sending the emails (if it appears).
 /// </summary>
 /// <param name="appName">The name of the app. Used to enter a valid portal alias: (appName)/(portalAlias).</param>
 /// <param name="portalTitle">The title for the site.</param>
 /// <param name="portalAlias">The alias for the site. This will be appended to the app name.</param>
 public void AddChildPortal(string appName, string portalTitle, string portalAlias)
 {
     AddNewSiteLink.Click();
     ChildRadioButton.Click();
     System.Threading.Thread.Sleep(4000);
     SiteAliasField.Value = ("localhost/" + appName + "/" + portalAlias);
     SiteNameField.Value  = portalTitle;
     PortalTemplateSelectList.Refresh();
     PortalTemplateSelectList.Select("Default Website");
     System.Threading.Thread.Sleep(3000);
     AdminUserNameField.Value        = TestUsers.Admin2.UserName;
     AdminFirstNameField.Value       = TestUsers.Admin2.FirstName;
     AdminLastNameField.Value        = TestUsers.Admin2.LastName;
     AdminEmailField.Value           = TestUsers.Admin2.Email;
     AdminPasswordField.Value        = TestUsers.Admin2.Password;
     AdminConfirmPasswordField.Value = TestUsers.Admin2.Password;
     CreateSiteLink.Click();
     System.Threading.Thread.Sleep(6000);
     if (MessageSpan != null && MessageSpan.InnerHtml.Contains("There was an error"))
     {
         MessageLink.Click();
     }
 }
示例#2
0
 public MessageService(string connectionString)
 {
     _mLink = new MessageLink(connectionString);
 }