public void DisableAndCreateSubscription() { var login = new AuthPage(driver); driver.Url = Url.Deautos.Views.Backoffice.Main; var agencyUser = new AgencyUserPage(driver); login.BackOfficeLogin(); agencyUser.DisableSubscription(SubscriptionUser); agencyUser.CreateSubscription(SubscriptionUser); }
public void RegisterAndAddSubscription(string UserType, string UserTypePassword) { var agencyUser = new AgencyUserPage(driver); driver.Url = Url.Deautos.Views.Login.Auth; string email = RegisterClientUser(UserType); driver.Navigate().GoToUrl(string.Concat(Url.Deautos.Views.Backoffice.Main, "agencyUserCms")); BackOfficeLogin(); agencyUser.ActivateAgencyUser(email); agencyUser.DisableSubscription(email); agencyUser.CreateSubscription(email); Console.WriteLine($"automation has generated< the user: {email} with password: {UserTypePassword}"); }