Example #1
0
 /// <summary>
 /// Creates a Content Manager and Logs that user in as well.
 /// Password used is same as that for Host. Existing user is used if it's already present.
 /// </summary>
 /// <returns>IWebApiConnector object to perform more actions</returns>
 public static IWebApiConnector LoginContentManager(string firstName = EvoqConstants.ConMgrFirstName, string lastName = EvoqConstants.ConMgrLastName, string url = null)
 {
     UserController.CreateContentManagerUser(firstName, lastName);
     return(WebApiTestHelper.LoginUser(firstName + "." + lastName));
 }
Example #2
0
 public static IWebApiConnector LoginAdministrator(string firstName = EvoqConstants.AdministratorFirstName, string lastName = EvoqConstants.AdministratorLastName, string url = null)
 {
     UserController.CreateAdministratorUser(firstName, lastName);
     return(WebApiTestHelper.LoginUser(firstName + "." + lastName));
 }
Example #3
0
 public static IWebApiConnector LoginHost()
 {
     return(WebApiTestHelper.LoginUser(AppConfigHelper.HostUserName));
 }