示例#1
0
 public void GivenThatIHaveAnAccountWithTheFollowingDetails(Table table)
 {
     SiteNavigator.go_to_registration_page();
     RegistrationPage.set_email_to    = table.Rows[0]["Email"];
     RegistrationPage.set_password_to = table.Rows[0]["Password"];
     RegistrationPage.set_name_to     = table.Rows[0]["Name"];
     RegistrationPage.register();
     SiteNavigator.sign_out();
 }
示例#2
0
 public void GivenIHaveRegisteredThesePeople(Table table)
 {
     foreach (var row in table.Rows)
     {
         SiteNavigator.go_to_registration_page();
         RegistrationPage.set_email_to    = row["Email"];
         RegistrationPage.set_password_to = row["Password"];
         RegistrationPage.set_name_to     = row["Name"];
         RegistrationPage.register();
         SiteNavigator.sign_out();
     }
 }
示例#3
0
 public void BeforeScenario()
 {
     WebBrowser.InitializeBrowser();
     SiteNavigator.sign_out();
     DataBaseHelper.clear_db();
 }