Пример #1
0
 public void Login(User user)
 {
     this.Map.UserName.Text = user.Email;
     this.Map.Password.Text = user.Password;
     this.Map.Submit.Click();
     Manager.Current.ActiveBrowser.WaitUntilReady();
 }
Пример #2
0
 protected override void TestInit()
 {
     currentUser = new User()
     {
         Email = "*****@*****.**",
         Password = "******"
     };
 }
Пример #3
0
 public void UpdateSettings(User user)
 {
     AcademyLoginProvider.Instance.LoginUser(user);
     this.LoginPage.WaitForUserName();
     this.LoginPage.Validator.ValidateUserName(user.Username);
     this.SettingsPage.Navigate();
     this.SettingsPage.Validator.EmailLabel(user.Email);
     this.SettingsPage.UpdateSettings(user);
     this.SettingsPage.Validator.SettingsUpdated();
     this.LoginPage.Logout();
 }
Пример #4
0
 public override void TestInit()
 {
     this.currentUser = new User()
     {
         Email = "*****@*****.**",
         Password = "******",
         Username = "******",
         FirstName = "Genadi",
         LastName = "Berkov"
     };
 }
Пример #5
0
 public override void TestInit()
 {
     this.SettingsService = new Core.Base.SettingsService();
     this.currentUser = new User()
     {
         Email = "*****@*****.**",
         Password = "******",
         Username = "******",
         FirstName = "FirstName",
         LastName = "LastName"
     };
 }
Пример #6
0
 public void UpdateSettings(User user)
 {
     this.Map.EnglishFirstName.Text = user.FirstName;
     this.Map.EnglishLastName.Text = user.LastName;
     this.Map.SaveChanges.Click();
 }