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(); }
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(); } }
public void BeforeScenario() { WebBrowser.InitializeBrowser(); SiteNavigator.sign_out(); DataBaseHelper.clear_db(); }