public MemberShipAuthorizedUserFixture() : base() { //build current user. CurrentUserModel user = new CurrentUserModel { UserName = "******", Password = "******" }; //Create manager & Navigate page to Login. var manager = this.DriverManager ?? GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.AUI_SignIn, false); var signInPage = GatekeeperFactory.CreatePageManager<MembershipSignInPage>(manager.Driver); signInPage.Action_SignIn(user.UserName, user.Password); //Waiting & Check page. Assert.True(manager.IsCurrentPage(PageAlias.AUI_Organization_Home)); this.CurrentUser = user; }
public DashboardAuthorizedUserFixture() : base() { //sign in dashboard //Create manager & Navigate page to Login. var manager = this.DriverManager ?? GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Dashboard_SignIn); var signInPage = GatekeeperFactory.CreatePageManager<DashboardSignInPage>(manager.Driver); signInPage.Action_SignIn("ft.tester", "FT4life!", "dc"); //Waiting & Check page. Assert.True(manager.IsCurrentPage(PageAlias.Dashboard_Home)); this.CurrentUser = new CurrentUserModel { UserName = "******", Password = "******", ChurchCode = "dc", ChurchId = 15 }; }