private void PopulateConferenceInformation(Table table, bool create = false) { var row = table.Rows[0]; if (create) { var slug = Slug.CreateNew().Value; Browser.SetInput("OwnerName", row["Owner"]); Browser.SetInput("OwnerEmail", row["Email"]); Browser.SetInput("name", row["Email"], "ConfirmEmail"); Browser.SetInput("Slug", slug); // Store the conference Slug for future use ScenarioContext.Current.Set(slug, "slug"); } Browser.SetInput("Tagline", Constants.UI.TagLine); Browser.SetInput("Location", Constants.UI.Location); Browser.SetInput("TwitterSearch", Constants.UI.TwitterSearch); if (row.ContainsKey("Name")) { Browser.SetInput("Name", row["Name"]); } if (row.ContainsKey("Description")) { Browser.SetInput("Description", row["Description"]); } if (row.ContainsKey("Start")) { Browser.SetInput("StartDate", row["Start"]); } if (row.ContainsKey("End")) { Browser.SetInput("EndDate", row["End"]); } }