public virtual void DefaultSiteIsListed() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Default site is listed", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 testRunner.And("I have installed \"Orchard.MultiTenancy\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 9 testRunner.When("I go to \"Admin/MultiTenancy\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 10 testRunner.Then("I should see \"List of Site's Tenants\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 11 testRunner.And("I should see \"<h3>\\s*Default\\s*</h3>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.And("the status should be 200 \"OK\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void CreatingGroupPool() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Creating Group Pool", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 4 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 5 testRunner.Given("unregistred user initiate his first doodle action", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 6 testRunner.And("set a title of the occasion", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "number", "option" }); table1.AddRow(new string[] { "1", "Every Monday" }); table1.AddRow(new string[] { "2", "Tomorrow" }); #line 7 testRunner.And("add text options:", ((string)(null)), table1, "And "); #line hidden #line 11 testRunner.And("skip Pool settings", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.When("enter participant name \'TestUser\' and email address", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 13 testRunner.Then("invitation link should be created", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 14 testRunner.And("participant name should be \'TestUser\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "number", "option" }); table2.AddRow(new string[] { "1", "Every Monday" }); table2.AddRow(new string[] { "2", "Tomorrow" }); #line 15 testRunner.And("pool options should be", ((string)(null)), table2, "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 6 #line 7 testRunner.Given("I have accessed the Course Directory as a provider", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 testRunner.And("I have navigated to the Your Venues Pages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.When("I enter 10028015 and click search", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 12 testRunner.Given("I have accessed the Qualifications page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 13 testRunner.And("I have entered a Qualification Name \"Biology\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("I click the link to Add Qualification", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden }
public virtual void VerifyUserClicksOnContactUsToGetStartedInStaffingAgencies(string url, string[] exampleTags) { string[] @__tags = new string[] { "StaffingAgencies" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify user clicks on \"contact us to get started\" in \"Staffing Agencies\"", null, @__tags); #line 3 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 4 testRunner.Given(string.Format("user navigates to {0} Jobiak URL site", url), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 5 testRunner.When("user clicks on StaffingAgencies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 6 testRunner.When("user clicks on StaffingAgenciesContactUsGetStarted", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden this.ScenarioCleanup(); }
public virtual void OpenNewGetWebTool() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Open new Get Web Tool", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.And("I drag Web Get Request Connector Tool onto the design surface", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 8 testRunner.And("New Source is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 9 testRunner.And("Edit Source is Disabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.When("I Select \"LocalhostSource\" as a Get web Source", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 11 testRunner.Then("Get Header is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1685 = new TechTalk.SpecFlow.Table(new string[] { "Header", "Value" }); #line 12 testRunner.And("Get Header appears as", ((string)(null)), table1685, "And "); #line 14 testRunner.And("Get Edit is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.And("Get Body is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 testRunner.And("Get Url is Visible", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.And("Get Query is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.And("Get Generate Outputs is Enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1686 = new TechTalk.SpecFlow.Table(new string[] { "Output", "Output Alias" }); #line 19 testRunner.And("Get mapped outputs are", ((string)(null)), table1686, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void FindUniqueRecordsInARecordset() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Find unique records in a recordset", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "rs", "val" }); table1.AddRow(new string[] { "rs().row", "10" }); table1.AddRow(new string[] { "rs().row", "20" }); table1.AddRow(new string[] { "rs().row", "20" }); table1.AddRow(new string[] { "rs().row", "30" }); #line 7 testRunner.Given("I have the following duplicated recordset", ((string)(null)), table1, "Given "); #line 13 testRunner.And("I want to find unique in field \"[[rs().row]]\" with the return field \"[[rs().row]]" + "\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("The result variable is \"[[rec().unique]]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.When("the unique tool is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "", "unique" }); table2.AddRow(new string[] { "rec().unique", "10" }); table2.AddRow(new string[] { "rec().unique", "20" }); table2.AddRow(new string[] { "rec().unique", "30" }); #line 16 testRunner.Then("the unique result will be", ((string)(null)), table2, "Then "); #line 21 testRunner.And("the execution has \"NO\" error", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "#", "", "Return Fields" }); table3.AddRow(new string[] { "In Field(s)", "[[rs(4).row]] = 30", "[[rs().row]] =" }); #line 22 testRunner.And("the debug inputs as", ((string)(null)), table3, "And "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "#", "" }); table4.AddRow(new string[] { "1", "[[rec(1).unique]] = 10" }); table4.AddRow(new string[] { "", "[[rec(2).unique]] = 20" }); table4.AddRow(new string[] { "", "[[rec(3).unique]] = 30" }); #line 25 testRunner.And("the debug output as", ((string)(null)), table4, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void CreatingNewExchangeSource() { string[] tagsOfScenario = new string[] { "ExchangeSource", "MSTest:DeploymentItem:InfragisticsWPF4.Controls.Interactions.XamDialogWindow.v15." + "1.dll", "MSTest:DeploymentItem:Warewolf_Studio.exe", "MSTest:DeploymentItem:Newtonsoft.Json.dll", "MSTest:DeploymentItem:Microsoft.Practices.Prism.SharedInterfaces.dll", "MSTest:DeploymentItem:System.Windows.Interactivity.dll" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Creating new exchange source", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 14 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 15 testRunner.Given("I open a new exchange source", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 16 testRunner.Then("\"New Exchange Source\" tab is Opened", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 17 testRunner.And("Title is \"New Exchange Source\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.When("I Type Auto Discover as \"https://outlook.office365.com/EWS/Exchange.asmx\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 19 testRunner.When("I Type User Name as \"TestUser\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 20 testRunner.When("I Type Password as \"TestUser\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 21 testRunner.When("I Type TimeOut as \"1000\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 22 testRunner.When("I Type To Email as \"[email protected]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden } this.ScenarioCleanup(); }
public virtual void AddPayeScheme() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add Paye Scheme", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("a PayeSchemeAddedMessage message for Account A is published", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 testRunner.When("I get activities for Account A", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 9 testRunner.Then("I should have 1 PayeSchemeAdded activities", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void VerifyThePrintingOfDocsForBankerSystem() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify the Printing of Docs For Banker System", new string[] { "smoke"}); #line 5 this.ScenarioSetup(scenarioInfo); #line 6 testRunner.Given("User Login successfully", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 7 testRunner.When("User selects Vehicle APP", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 8 testRunner.And("User navigates to letter docs", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 9 testRunner.And("User Attached document", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.And("User Click on Display Link of the uploaded document", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.Then("Print button Should be displayed in the Print Preview Window", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void MessageType(string payload, string padding, string type, string[] exampleTags) { string[] tagsOfScenario = exampleTags; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Message Type", null, exampleTags); #line 15 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 16 testRunner.When(string.Format("I parse \'{0}\' with padding {1} as a Position Report Class A", payload, padding), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 17 testRunner.Then(string.Format("AisPositionReportClassAParser.Type is {0}", type), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void ValidFormSubmission() { string[] tagsOfScenario = new string[] { "regression" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Valid Form Submission", null, new string[] { "regression" }); #line 9 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 10 testRunner.Given("I navigate to the BlueSky Testing Form", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 11 testRunner.When("I enter the Single Line Text", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 12 testRunner.And("I enter the one in the select Box", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.And("I enter Email", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.And("I select the Multi-Select", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("I select the Radio List", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 16 testRunner.And("I select the Check Box List", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.And("I select United Kingdom as Country", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.And("I select 17th of the current month", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 19 testRunner.And("I enter Paragraph Text", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 20 testRunner.And("I click on the Submit button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 21 testRunner.Then("message \"Your Form is successfully submitted\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void VerifyRegistrationDecideSpecialismPage(string uln, string firstName, string lastName, string[] exampleTags) { string[] @__tags = new string[] { "RegressionTest", "ManaulRegistration"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } string[] tagsOfScenario = @__tags; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); argumentsOfScenario.Add("Uln", uln); argumentsOfScenario.Add("First Name", firstName); argumentsOfScenario.Add("Last Name", lastName); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify Registration Decide Specialism Page", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 10 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 6 this.FeatureBackground(); #line hidden #line 11 testRunner.When("I click on Add a new registration link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 12 testRunner.And(string.Format("I enter {0} and click Continue button", uln), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.And(string.Format("I enter {0} {1} in learners page and click Contiune", firstName, lastName), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.And("I enter Date of Birth in DOB page and click continue", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("I select Provider and click Contiune button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 16 testRunner.And("I select Core and click Continue button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.Then("I should see Devide Specialism Page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void _01_UmProjetoECriadoEPosteriormenteTemSeuTotalDePontosAlterado_() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("01 - Um projeto é criado e posteriormente tem seu total de pontos alterado.", new string[] { "bug" }); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "nome", "tamanho", "total de ciclos", "ritmo do time" }); table1.AddRow(new string[] { "projeto01", "50", "1", "10" }); #line 7 testRunner.Given("que exista(m) o(s) projeto(s) a seguir:", ((string)(null)), table1, "Dado "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "nome", "tamanho", "modulo pai" }); table2.AddRow(new string[] { "modulo01", "20", "" }); table2.AddRow(new string[] { "modulo02", "15", "" }); table2.AddRow(new string[] { "modulo03", "5", "" }); #line 10 testRunner.And("que existam os seguintes modulos para o \'projeto01\':", ((string)(null)), table2, "E "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "nome", "tamanho", "total de ciclos", "ritmo do time" }); table3.AddRow(new string[] { "projeto01", "100", "1", "10" }); #line 15 testRunner.And("o projeto \'projeto01\' tenha seu tamanho alterado para \'100\'", ((string)(null)), table3, "E "); #line 18 testRunner.When("o projeto \'projeto01\' for salvo:", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Quando "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "nome", "tamanho", "modulo pai" }); table4.AddRow(new string[] { "modulo01", "20", "" }); table4.AddRow(new string[] { "modulo02", "15", "" }); table4.AddRow(new string[] { "modulo03", "5", "" }); #line 19 testRunner.Then("os modulos a seguir do projeto \'projeto01\' devem estar com os seguintes valores:", ((string)(null)), table4, "Entao "); #line hidden this.ScenarioCleanup(); }
public virtual void T02_WhenIImportStudyOf5_7ToDesignerThenISeeMessageStudyHasBeenSuccessfullyAddedAndStatusAsComplete() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("T02_When I Import Study of 5.7 to Designer then I see message \"Study has been suc" + "cessfully added\" and status as complete", null, ((string[])(null))); #line 14 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 15 testRunner.When("I click on the Home Button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 16 testRunner.And("I click on the Link \"Import Study\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.And("I import a study \"TS4500_Base1.zip\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.And("Enter the unique study name \"Import_Study2\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 19 testRunner.And("Select the sponsor name \"Sponsor1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 20 testRunner.And("I click on the Save button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 21 testRunner.And("I should see the notification \"Study has been successfully added\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 22 testRunner.And("I click on the Link \"View Study Jobs\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 23 testRunner.Then("I should see the status of the study \"Study Import (Import_Study2)\" in \"Complete\"" + " state", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void GetAndSetAProperty() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get and set a property", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 8 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 9 testRunner.Given("I set a property called \"hello\" to the value \"world\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 10 testRunner.When("I get the property called \"hello\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 11 testRunner.Then("the result should be \"world\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void DatabaseBuilderShouldPopulateMoveResponses() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Database builder should populate move responses", ((string[])(null))); #line 11 this.ScenarioSetup(scenarioInfo); #line 6 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "A", "B", "C" }); table1.AddRow(new string[] { "X", "", "O" }); table1.AddRow(new string[] { "O", "X", "" }); table1.AddRow(new string[] { "X", "", "O" }); #line 12 testRunner.Given("I start a new game in the following state", ((string)(null)), table1, "Given "); #line 17 testRunner.Given("I have a database builder", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 18 testRunner.When("I populate move responses for the current game", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 19 testRunner.Then("I expect the ILiteDatabase.DeleteCollection to have been called \'1\' times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 20 testRunner.Then("I expect the ILiteDatabase.EnsureIndex to have been called with the following \'Id" + "\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Board", "Player", "Response", "Outcome", "Id" }); table2.AddRow(new string[] { "XXOOX_X_O", "O", "Eastern", "OWin", "XXOOX_X_OOEastern" }); table2.AddRow(new string[] { "XXOOX_XOO", "X", "Eastern", "Tie", "XXOOX_XOOXEastern" }); table2.AddRow(new string[] { "XXOOX_X_O", "O", "Southern", "Tie", "XXOOX_X_OOSouthern" }); table2.AddRow(new string[] { "X_OOX_X_O", "X", "Northern", "OWin", "X_OOX_X_OXNorthern" }); table2.AddRow(new string[] { "XOOOXXX_O", "X", "Southern", "Tie", "XOOOXXX_OXSouthern" }); table2.AddRow(new string[] { "X_OOXXX_O", "O", "Northern", "Tie", "X_OOXXX_OONorthern" }); table2.AddRow(new string[] { "X_OOXXXOO", "X", "Northern", "Tie", "X_OOXXXOOXNorthern" }); table2.AddRow(new string[] { "X_OOXXX_O", "O", "Southern", "Tie", "X_OOXXX_OOSouthern" }); table2.AddRow(new string[] { "X_OOX_X_O", "X", "Eastern", "Tie", "X_OOX_X_OXEastern" }); table2.AddRow(new string[] { "XOOOX_XXO", "X", "Eastern", "Tie", "XOOOX_XXOXEastern" }); table2.AddRow(new string[] { "X_OOX_XXO", "O", "Northern", "Tie", "X_OOX_XXOONorthern" }); table2.AddRow(new string[] { "X_OOX_XXO", "O", "Eastern", "OWin", "X_OOX_XXOOEastern" }); table2.AddRow(new string[] { "X_OOX_X_O", "X", "Southern", "OWin", "X_OOX_X_OXSouthern" }); #line 21 testRunner.Then("I expect the ILiteDatabase.InsertBulk to have been called with the following move" + " response records", ((string)(null)), table2, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void _002_Oneclicknotes_OpenNotesWindowAndVerifyDisplay() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("002 - Oneclicknotes- Open Notes Window and Verify Display", ((string[])(null))); #line 12 this.ScenarioSetup(scenarioInfo); #line 13 testRunner.Given("I enter to 341 Meeting page as superuser", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 14 testRunner.And("I Enter to Case Detail page for Case with Case Number \'09-13569\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.When("I Click on the Notes Icon", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 16 testRunner.Then("I See the Notes Window is Open", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 17 testRunner.And("I See Note Type Title is \'Note Type\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.And("I See Staff Notes Tab Title is \'One Click Notes\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 19 testRunner.And("I See At Least \'1\' Notes for the Case", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void SetReadStateOfASubsetOfNotificationsForAUser() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Set read state of a subset of notifications for a user", null, tagsOfScenario, argumentsOfScenario); #line 7 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 8 testRunner.Given("I have created and stored 25 notifications in the current transient tenant with t" + "imestamps at 30 second intervals for the user with Id \'user100\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.And("I have created and stored 5 notifications in the current transient tenant with ti" + "mestamps at 30 second intervals for the user with Id \'user101\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 10 testRunner.When("I send a management API request to batch update the read status of the first 10 s" + "tored notifications for user \'user100\' to \'Read\' for the delivery channel with I" + "d \'api\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 11 testRunner.Then("the response status code should be \'Accepted\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 12 testRunner.And("the response should contain a \'Location\' header", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 13 testRunner.And("the long running operation whose Url is in the response Location header should no" + "t have a \'status\' of \'NotStarted\' within 10 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 14 testRunner.And("the long running operation whose Url is in the response Location header should ha" + "ve a \'status\' of \'Succeeded\' within 30 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("the first 10 notifications stored in the transient tenant for the user with Id \'u" + "ser100\' have the read status \'Read\' for the delivery channel with Id \'api\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 16 testRunner.And("the first 10 notifications stored in the transient tenant for the user with Id \'u" + "ser100\' have the read status last updated set to within 60 seconds of now for th" + "e delivery channel with Id \'api\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.And("the first 10 notifications stored in the transient tenant for the user with Id \'u" + "ser100\' have the delivery status \'Unknown\' for the delivery channel with Id \'api" + "\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 18 testRunner.And("the first 10 notifications stored in the transient tenant for the user with Id \'u" + "ser100\' have the delivery status last updated set to within 60 seconds of now fo" + "r the delivery channel with Id \'api\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void RevealAllTilesThatArenTMinesAndWinTheGame() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Reveal all tiles that aren\'t mines and win the game", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("I have started a new game \"minefield size of 9 x 9 (10 mines)\""); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Row", "Column" }); table1.AddRow(new string[] { "2", "2" }); #line 8 testRunner.And("the minefield contains the following mines:", ((string)(null)), table1); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Row", "Column", "NumberOfMinesSurroundedBy" }); table2.AddRow(new string[] { "1", "1", "1" }); table2.AddRow(new string[] { "1", "2", "1" }); table2.AddRow(new string[] { "2", "1", "1" }); #line 11 testRunner.And("the following tiles are surrounded by mines:", ((string)(null)), table2); #line 16 testRunner.When("I navigate to the game play page"); #line 17 testRunner.And("I click on the tile at coordinate 0,0"); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Row", "Column", "NumberOfMinesSurroundedBy" }); table3.AddRow(new string[] { "0", "0", "0" }); table3.AddRow(new string[] { "1", "1", "1" }); table3.AddRow(new string[] { "0", "1", "0" }); table3.AddRow(new string[] { "0", "2", "0" }); table3.AddRow(new string[] { "1", "0", "0" }); table3.AddRow(new string[] { "1", "2", "1" }); table3.AddRow(new string[] { "2", "0", "0" }); table3.AddRow(new string[] { "2", "1", "1" }); #line 18 testRunner.Then("the following tiles should be revealed:", ((string)(null)), table3); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Row", "Column" }); table4.AddRow(new string[] { "2", "2" }); #line 28 testRunner.And("the following tiles should not be revealed:", ((string)(null)), table4); #line 31 testRunner.And("I should see a message telling me that \"You have won!\""); #line 32 testRunner.And("I should see a button labelled \"Start New Game\""); #line hidden this.ScenarioCleanup(); }
public virtual void AcquireALeaseWithValidPolicy() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Acquire a lease with valid policy", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 8 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 9 testRunner.Given("I am the only actor trying to perform an operation called \"long-running-task\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 10 testRunner.And("I want to acquire a lease for 15 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.When("I acquire the lease", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 12 testRunner.Then("the lease should expire in the future", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 13 testRunner.Then("it should retain the lease for 15 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 14 testRunner.And("the lease should be expired after 15 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void ICanExploreTestsAndWriteTheListOfTestsToFile(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { "3.4.1", "teamcity" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can explore tests and write the list of tests to file", null, @__tags); #line 8 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 3 this.FeatureBackground(); #line 9 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 10 testRunner.And("I added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTests1 fo" + "r foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And("I added successful method as SuccessfulTest2 to the class Foo.Tests.UnitTests1 fo" + "r foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.And("I created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("I added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("I copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.And("I compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 testRunner.And("I added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 testRunner.And("I added the arg Explore=mocks\\AllTests.xml to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 19 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { "name" }); table10.AddRow(new string[] { "foo.tests.dll" }); #line 20 testRunner.And("the xml file mocks\\AllTests.xml contains items by xPath .//test-suite[@type=\'Asse" + "mbly\']:", ((string)(null)), table10, "And "); #line hidden TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { "fullname" }); table11.AddRow(new string[] { "Foo.Tests.UnitTests1.SuccessfulTest1" }); table11.AddRow(new string[] { "Foo.Tests.UnitTests1.SuccessfulTest2" }); #line 23 testRunner.And("the xml file mocks\\AllTests.xml contains items by xPath .//test-suite[@type=\'Test" + "Fixture\']/test-case:", ((string)(null)), table11, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void BatchUpdateIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string skip, string max, string methodType, string[] exampleTags) { string[] @__tags = new string[] { "InMemoryDatabase" }; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Batch update (in-memory database)", @__tags); #line 4 this.ScenarioSetup(scenarioInfo); #line 5 testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 6 testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 7 testRunner.And(string.Format("I batch update a maximum of {0} {1} entities skipping {2} and using {3} methods", max, entityType, skip, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 8 testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 9 testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void CategoryAndSub_CategoryCreation() { string[] tagsOfScenario = new string[] { "admin" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Category and Sub-category creation", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 5 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 6 testRunner.Given("admin logged in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 7 testRunner.And("click Life Style prize", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 8 testRunner.When("click on LyfeStyle Management", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 9 testRunner.When("click add category", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.Then("Title Add category is displayed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 11 testRunner.When("input animal category picture", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 12 testRunner.When("make status active", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 13 testRunner.When("admin input title \"Animal\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 14 testRunner.When("click save category", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 15 testRunner.Then("popup with text \"Category created\" appears", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 16 testRunner.Then("category with title \"Animal\" exist", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 17 testRunner.When("click on subcategories", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 18 testRunner.When("click Add Sub-category", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 19 testRunner.Then("Title Add Sub-category is displayed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 20 testRunner.When("input animal sub-category picture", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 21 testRunner.When("choose category in subcategory \"Animal\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 22 testRunner.When("admin input title \"Dog\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 23 testRunner.When("click save category", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 24 testRunner.When("click on subcategories", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 25 testRunner.Then("Sub-category with title \"Dog\" exist", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void GetExistingClaimPermissionsThatWasEmptyWhenFirstFetchedButHasSinceHadRulesAdded() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get existing ClaimPermissions that was empty when first fetched but has since had" + " rules added", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 11 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 7 this.FeatureBackground(); #line hidden #line 12 testRunner.Given("the new ClaimsPermission is POSTed to the createClaimPermissions endpoint", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 13 testRunner.And("ClaimsPermission with id named \'id1\' is fetched from the getClaimPermissions endp" + "oint", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] { "AccessType", "ResourceUri", "ResourceName", "Permission" }); table22.AddRow(new string[] { "GET", "r1a", "R1a", "Allow" }); table22.AddRow(new string[] { "POST", "r1a", "R1a", "Deny" }); table22.AddRow(new string[] { "GET", "r1b", "R1b", "Allow" }); #line 14 testRunner.And("these rules are added via the updateClaimPermissionsResourceAccessRules endpoint " + "for the ClaimsPermission with id named \'id1\'", ((string)(null)), table22, "And "); #line hidden #line 19 testRunner.When("ClaimsPermission with id named \'id1\' is fetched from the getClaimPermissions endp" + "oint", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 20 testRunner.Then("the HTTP status returned by the Claims service is 200", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 21 testRunner.And("the ClaimPermissions returned by the Claims service\'s id matches \'id1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] { "AccessType", "ResourceUri", "ResourceName", "Permission" }); table23.AddRow(new string[] { "GET", "r1a", "R1a", "Allow" }); table23.AddRow(new string[] { "POST", "r1a", "R1a", "Deny" }); table23.AddRow(new string[] { "GET", "r1b", "R1b", "Allow" }); #line 22 testRunner.And("the ClaimPermissions returned by the Claims service has exactly these defined rul" + "es", ((string)(null)), table23, "And "); #line hidden #line 27 testRunner.And("the ClaimPermissions returned by the Claims service has no rulesets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] { "AccessType", "ResourceUri", "ResourceName", "Permission" }); table24.AddRow(new string[] { "GET", "r1a", "R1a", "Allow" }); table24.AddRow(new string[] { "POST", "r1a", "R1a", "Deny" }); table24.AddRow(new string[] { "GET", "r1b", "R1b", "Allow" }); #line 28 testRunner.And("the ClaimPermissions returned by the Claims service has exactly these effective r" + "ules", ((string)(null)), table24, "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void HTMLMarkupInAnyGivenCommentIsEncoded() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("HTML markup in any given comment is encoded", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 testRunner.When("I go to \"admin/blogs/create\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table1.AddRow(new string[] { "Title.Title", "My Blog" }); #line 9 testRunner.And("I fill in", ((string)(null)), table1, "And "); #line 12 testRunner.And("I hit \"Publish\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("I go to \"admin/blogs\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("I follow \"My Blog\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.And("I follow \"New Post\" where class name has \"primaryAction\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table2.AddRow(new string[] { "Title.Title", "My Post" }); table2.AddRow(new string[] { "Body.Text", "Hi there." }); #line 16 testRunner.And("I fill in", ((string)(null)), table2, "And "); #line 20 testRunner.And("I hit \"Publish\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 21 testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table3.AddRow(new string[] { "Comments.CommentText", "This is<br id=\"bad-br\" />a <a href=\"#\">link</a>." }); #line 22 testRunner.And("I fill in", ((string)(null)), table3, "And "); #line 25 testRunner.And("I hit \"Submit Comment\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 26 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 28 testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 29 testRunner.Then("I should see \"This is<br id="bad-br" />a <a href\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 30 testRunner.And("I should not see \"<br id=\"bad-br\" />\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 32 testRunner.When("I go to \"Users/Account/LogOff\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 33 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 34 testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table4.AddRow(new string[] { "Comments.Author", "Some One" }); table4.AddRow(new string[] { "Comments.CommentText", "This is<br id=\"bad-anon-br\" />a <a href=\"#\">link</a>." }); #line 35 testRunner.And("I fill in", ((string)(null)), table4, "And "); #line 39 testRunner.And("I hit \"Submit Comment\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 40 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 42 testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 44 testRunner.Then("I should see \"This is<br id="bad-anon-br" />a <a href\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 45 testRunner.And("I should not see \"<br id=\"bad-anon-br\" />\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 48 testRunner.When("I go to \"users/account/logon\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table5.AddRow(new string[] { "userNameOrEmail", "admin" }); table5.AddRow(new string[] { "password", "6655321" }); #line 49 testRunner.And("I fill in", ((string)(null)), table5, "And "); #line 53 testRunner.And("I hit \"Sign In\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 54 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 55 testRunner.And("I go to \"admin/settings/comments\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table6.AddRow(new string[] { "CommentSettings.ModerateComments", "true" }); #line 56 testRunner.And("I fill in", ((string)(null)), table6, "And "); #line 59 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 60 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 61 testRunner.Then("I should see \"Settings updated\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 62 testRunner.When("I go to \"users/account/logoff\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 63 testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table7.AddRow(new string[] { "Comments.Author", "Bill" }); table7.AddRow(new string[] { "Comments.CommentText", "This is a moderated comment." }); #line 64 testRunner.And("I fill in", ((string)(null)), table7, "And "); #line 68 testRunner.And("I hit \"Submit Comment\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 69 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 71 testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 72 testRunner.Then("I should see \"Hi there\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 73 testRunner.And("I should not see \"This is a moderated comment\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void RedirectCheck() { string[] tagsOfScenario = new string[] { "mytag" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Redirect check", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 5 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 6 testRunner.When("user go to main page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 7 testRunner.When("user click on Enter now", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 8 testRunner.Then("user redirected to page \"lifestyleprizes\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 10 testRunner.When("display time from last clicking", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 11 testRunner.When("user go to main page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 15 testRunner.When("user click on Find out more", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 19 testRunner.When("user go to main page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 20 testRunner.When("user click on Find out more at \"Dream Home\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 21 testRunner.Then("user redirected to page \"dreamhome\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 22 testRunner.When("display time from last clicking", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 24 testRunner.When("user go to main page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 25 testRunner.When("user click on Find out more at \"Lifestyle Prizes\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 26 testRunner.Then("user redirected to page \"lifestyleprizes\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 27 testRunner.When("display time from last clicking", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 29 testRunner.When("user go to main page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 30 testRunner.When("user click on Find out more at \"Fixed Odds\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 31 testRunner.Then("user redirected to page \"fixedodds\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 32 testRunner.When("display time from last clicking", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden } this.ScenarioCleanup(); }
public virtual void GoToTheTshirtsPage_Firefox() { string[] tagsOfScenario = new string[] { "Firefox" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Go to the tshirts page - Firefox", null, tagsOfScenario, argumentsOfScenario); #line 7 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); bool isFeatureIgnored = default(bool); if ((tagsOfScenario != null)) { isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((this._featureTags != null)) { isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); } if ((isScenarioIgnored || isFeatureIgnored)) { testRunner.SkipScenario(); } else { this.ScenarioStart(); #line 8 testRunner.Given("I am on the home page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 9 testRunner.When("I click on the tshirt", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 10 testRunner.And("have waited for the page to load", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 11 testRunner.Then("the URL should be \"http://automationpractice.com/index.php?id_product=1&controlle" + "r=product\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void CreatingAndUsingDateFields() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Creating and using Date fields", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 9 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 10 testRunner.And("I have installed \"Orchard.Fields\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.When("I go to \"Admin/ContentTypes\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 12 testRunner.Then("I should see \"<a[^>]*>.*?Create new type</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 13 testRunner.When("I go to \"Admin/ContentTypes/Create\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table1.AddRow(new string[] { "DisplayName", "Event" }); table1.AddRow(new string[] { "Name", "Event" }); #line 14 testRunner.And("I fill in", ((string)(null)), table1, "And "); #line 18 testRunner.And("I hit \"Create\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 19 testRunner.And("I go to \"Admin/ContentTypes/\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 20 testRunner.Then("I should see \"Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 23 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 24 testRunner.And("I follow \"Add Field\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table2.AddRow(new string[] { "DisplayName", "Date of the event" }); table2.AddRow(new string[] { "Name", "EventDate" }); table2.AddRow(new string[] { "FieldTypeName", "DateTimeField" }); #line 25 testRunner.And("I fill in", ((string)(null)), table2, "And "); #line 30 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 31 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 32 testRunner.Then("I should see \"The \\\"Date of the event\\\" field has been added.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 35 testRunner.When("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 36 testRunner.Then("I should see \"Date of the event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table3.AddRow(new string[] { "Event.EventDate.Date", "31/01/2012" }); table3.AddRow(new string[] { "Event.EventDate.Time", "12:00 AM" }); #line 37 testRunner.When("I fill in", ((string)(null)), table3, "When "); #line 41 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 42 testRunner.Then("I should see \"Date of the event is an invalid date and time\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 45 testRunner.When("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 46 testRunner.Then("I should see \"Date of the event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table4.AddRow(new string[] { "Event.EventDate.Date", "01/31/2012" }); #line 47 testRunner.When("I fill in", ((string)(null)), table4, "When "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table5.AddRow(new string[] { "Event.EventDate.Time", "12:00 AM" }); #line 50 testRunner.And("I fill in", ((string)(null)), table5, "And "); #line 53 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 54 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 55 testRunner.Then("I should see \"Your Event has been created.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 56 testRunner.When("I go to \"Admin/Contents/List\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 57 testRunner.Then("I should see \"Date of the event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 58 testRunner.And("I should see \"1/31/2012 12:00\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 61 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table6.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Hint", "Enter the date of the event" }); #line 62 testRunner.And("I fill in", ((string)(null)), table6, "And "); #line 65 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 66 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 67 testRunner.Then("I should see \"Enter the date of the event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 70 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table7.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Display", "DateOnly" }); #line 71 testRunner.And("I fill in", ((string)(null)), table7, "And "); #line 74 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 75 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 76 testRunner.Then("I should see \"Event.EventDate.Date\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 77 testRunner.And("I should not see \"Event.EventDate.Time\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 80 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table8.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Display", "TimeOnly" }); #line 81 testRunner.And("I fill in", ((string)(null)), table8, "And "); #line 84 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 85 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 86 testRunner.Then("I should see \"Event.EventDate.Time\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 87 testRunner.And("I should not see \"Event.EventDate.Date\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 90 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table9.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Display", "DateAndTime" }); table9.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Required", "true" }); #line 91 testRunner.And("I fill in", ((string)(null)), table9, "And "); #line 95 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 96 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 97 testRunner.Then("I should see \"Event.EventDate.Date\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table10.AddRow(new string[] { "Event.EventDate.Date", "01/31/2012" }); table10.AddRow(new string[] { "Event.EventDate.Time", "12:00 AM" }); #line 98 testRunner.When("I fill in", ((string)(null)), table10, "When "); #line 102 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 103 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 104 testRunner.Then("I should see \"Your Event has been created.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 105 testRunner.When("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table11.AddRow(new string[] { "Event.EventDate.Date", "01/31/2012" }); #line 106 testRunner.And("I fill in", ((string)(null)), table11, "And "); #line 109 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 110 testRunner.Then("I should see \"Date of the event is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 111 testRunner.When("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table12.AddRow(new string[] { "Event.EventDate.Time", "12:00 AM" }); #line 112 testRunner.And("I fill in", ((string)(null)), table12, "And "); #line 115 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 116 testRunner.Then("I should see \"Date of the event is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 119 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table13.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Display", "DateOnly" }); table13.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Required", "true" }); #line 120 testRunner.And("I fill in", ((string)(null)), table13, "And "); #line 124 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 125 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 126 testRunner.Then("I should see \"Event.EventDate.Date\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 127 testRunner.When("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 128 testRunner.Then("I should see \"Date of the event is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 131 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table14.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Display", "TimeOnly" }); table14.AddRow(new string[] { "Fields[0].DateTimeFieldSettings.Required", "true" }); #line 132 testRunner.And("I fill in", ((string)(null)), table14, "And "); #line 136 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 137 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 138 testRunner.Then("I should see \"Event.EventDate.Date\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 139 testRunner.When("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 140 testRunner.Then("I should see \"Date of the event is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void CreateGreatDiscounts() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create great discounts", ((string[])(null))); #line 16 this.ScenarioSetup(scenarioInfo); #line 6 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Product name", "Quantity", "Rebate in cents" }); table2.AddRow(new string[] { "Fruits", "5", "200" }); table2.AddRow(new string[] { "* Pommes", "4", "100" }); table2.AddRow(new string[] { "Cerises", "2", "20" }); #line 21 testRunner.Given("these rebates in cents:", ((string)(null)), table2, "Given "); #line 26 testRunner.And("a discount on 2 \"Bananes\" for the price of 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 27 testRunner.And("a rebate of 200 cents for 3 \"Apples\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 28 testRunner.And("a rebate of 100 cents for 2 \"Mele\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Product name", "Quantity" }); table3.AddRow(new string[] { "Mele", "4" }); table3.AddRow(new string[] { "Apples", "4" }); table3.AddRow(new string[] { "Bananes", "1" }); table3.AddRow(new string[] { "Pommes", "1" }); #line 29 testRunner.When("the customer buys these products:", ((string)(null)), table3, "When "); #line 35 testRunner.Then("the total price should be 150 cents", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ReturnTen() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Return ten", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("I have an integer value of 10"); #line 8 testRunner.When("I get the text"); #line 9 testRunner.Then("the result should be ten"); #line hidden testRunner.CollectScenarioErrors(); }