public void WhenManyRegistrantsSelectsTheseOrderItems(int registrants, Table table) { Func<string> worker = () => { using (var registrant = new SelfRegistrationEndToEndWithControllersSteps()) { try { registrant.GivenTheSelectedOrderItems(table); registrant.GivenTheRegistrantProceedToMakeTheReservation(); //If we get here, the reservation was successful so proceeds to payment registrant.GivenTheRegistrantProceedToCheckoutPayment(); registrant.WhenTheRegistrantProceedToConfirmThePayment(); registrant.ThenTheOrderShouldBeCreatedWithTheFollowingOrderItems(table); } catch (AssertException e) { return e.Message; } return null; // all went fine so nothing to report. } }; Task<string>[] tasks = Enumerable.Range(0, registrants).Select(i => Task.Factory.StartNew(worker)).ToArray(); Task.WaitAll(tasks); results = tasks.Select(t => t.Result).ToList(); }
public void Then1(string batchNumber, Table table) { var task = CheckThirdPartyBus.GetSingleResponseAsync(5); task.Wait(); response = task.Result; Assert.IsNotNull(response, "No response received"); Assert.IsFalse(string.IsNullOrEmpty(response.voucherBatch.scannedBatchNumber)); Assert.AreEqual(batchNumber, response.voucherBatch.scannedBatchNumber); table.CompareToSet(response.voucher.Select(c => new { documentReferenceNumber = c.voucher.documentReferenceNumber.Trim(), bsbNumber = c.voucher.bsbNumber.Trim(), accountNumber = c.voucher.accountNumber.Trim(), auxDom = c.voucher.auxDom.Trim(), extraAuxDom = c.voucher.extraAuxDom.Trim(), transactionCode = c.voucher.transactionCode.Trim(), amount = c.voucher.amount.Trim(), //targetEndPoint = c.voucher.targetEndPoint.Trim(), //unprocessable = c.voucher.unprocessable, //repostFromDRN = c.voucher.repostFromDRN, //repostFromProcessingDate = c.voucher.repostFromProcessingDate.ToString("yyyyMMdd") })); }
public virtual void TheDefaultCultureIsUsedForBindingsIfNotSpecified() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("The default culture is used for bindings if not specified", ((string[])(null))); #line 3 this.ScenarioSetup(scenarioInfo); #line hidden #line 4 testRunner.Given("a scenario \'Simple Scenario\' as", "Given I have entered 3.14 into the calculator", ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 8 testRunner.And("the following step definition", "[Given(@\"I have entered (.+) into the calculator\")]\r\npublic void GivenIHaveEntere" + "d(double number)\r\n{\r\nif (number != 3.14) throw new Exception(\"number converted i" + "ncorrectly\");\r\n}", ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 testRunner.When("I execute the tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Succeeded"}); table1.AddRow(new string[] { "1"}); #line 17 testRunner.Then("the execution summary should contain", ((string)(null)), table1, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RegisteringAnUnusedEmailAddress() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Registering an unused email address", ((string[])(null))); #line 5 this.ScenarioSetup(scenarioInfo); #line 6 testRunner.Given("I am on page \"User.Register\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Email", "Name", "Password"}); table1.AddRow(new string[] { "*****@*****.**", "Test User2", "password"}); #line 7 testRunner.When("I submit the form using", ((string)(null)), table1, "When "); #line 10 testRunner.Then("A cookie named \".ASPXAUTH\" should exist", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 11 testRunner.And("I should be redirected to \"/\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void AListContainingSyntax() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("a list containing syntax", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("I am a list specification", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "colours"}); table1.AddRow(new string[] { "Red"}); table1.AddRow(new string[] { "Green"}); table1.AddRow(new string[] { "Blue"}); #line 8 testRunner.And("I can see the list of available colours", ((string)(null)), table1, "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "colours"}); table2.AddRow(new string[] { "Red"}); table2.AddRow(new string[] { "Green"}); table2.AddRow(new string[] { "Blue"}); #line 13 testRunner.Then("I should see a list of available colours containing", ((string)(null)), table2, "Then "); #line hidden this.ScenarioCleanup(); }
public void GivenIHaveTheFollowingRecordsetToSort(Table table) { List<TableRow> tableRows = table.Rows.ToList(); if(tableRows.Count == 0) { var rs = table.Header.ToArray()[0]; var field = table.Header.ToArray()[1]; List<Tuple<string, string>> emptyRecordset; bool isAdded = ScenarioContext.Current.TryGetValue("rs", out emptyRecordset); if(!isAdded) { emptyRecordset = new List<Tuple<string, string>>(); ScenarioContext.Current.Add("rs", emptyRecordset); } emptyRecordset.Add(new Tuple<string, string>(rs, field)); } foreach(TableRow t in tableRows) { List<Tuple<string, string>> variableList; ScenarioContext.Current.TryGetValue("variableList", out variableList); if(variableList == null) { variableList = new List<Tuple<string, string>>(); ScenarioContext.Current.Add("variableList", variableList); } variableList.Add(new Tuple<string, string>(t[0], t[1])); } }
public virtual void AddPizza() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add Pizza", ((string[])(null))); #line 4 this.ScenarioSetup(scenarioInfo); #line 5 testRunner.Given("I have navigated to Pizza/Compose page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 6 testRunner.And("I wait 5 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Name"}); table1.AddRow(new string[] { "pizzaName"}); #line 7 testRunner.When("I enter pizza data", ((string)(null)), table1, "When "); #line 10 testRunner.And("I have selected ingredients", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.And("I press add pizza button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 testRunner.Then("I wait 5 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 13 testRunner.And("Should go to Pizza", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void DeadCellWith0NeighborsStaysDead() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Dead cell with 0 neighbors stays dead", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "*", "*", "*"}); table1.AddRow(new string[] { ".", ".", "."}); table1.AddRow(new string[] { ".", ".", "."}); table1.AddRow(new string[] { ".", ".", "."}); #line 7 testRunner.Given("the following setup", ((string)(null)), table1); #line 12 testRunner.When("I evolve the board"); #line 13 testRunner.Then("the center cell should be dead"); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void FullyArmed() { var scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Fully armed", ((string[]) (null))); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden var table1 = new TechTalk.SpecFlow.Table(new string[] { "belt_level", "katana", "sake", "fought", "magic" }); table1.AddRow(new string[] { "third", "two", "three", "samurai", "five" }); #line 8 testRunner.Given("a ninja with the following experience", ((string) (null)), table1); #line 11 testRunner.When("attacked by a samurai"); #line 12 testRunner.Then("the ninja should engage the opponent"); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void FeatureBackground() { #line 7 #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "numero", "valor"}); table1.AddRow(new string[] { "1", "10"}); table1.AddRow(new string[] { "2", "20"}); table1.AddRow(new string[] { "3", "30"}); table1.AddRow(new string[] { "4", "40"}); #line 8 testRunner.Given("os seguintes boletos em aberto no sistema", ((string)(null)), table1, "Dado "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "numero", "valor"}); table2.AddRow(new string[] { "10", "100"}); #line 14 testRunner.And("os seguintes boletos fechados no sistema", ((string)(null)), table2, "E "); #line hidden }
public virtual void RegisterUser() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Register User", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line 7 testRunner.Given("I am on the site home page"); #line 8 testRunner.When("I click the Register link"); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Control", "Value"}); table1.AddRow(new string[] { "User Name", "RegisterUserTest"}); table1.AddRow(new string[] { "Email", "*****@*****.**"}); table1.AddRow(new string[] { "Password", "password"}); table1.AddRow(new string[] { "Display Name", "RegisterUserTest DN"}); #line 9 testRunner.And("I fill in the Register User form", ((string)(null)), table1); #line 15 testRunner.And("I click the Register button"); #line 16 testRunner.Then("I am logged in as the RegisterUserTest DN user"); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 5 #line 6 testRunner.Given("user have entered web browser", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 7 testRunner.And("he navigates to aplication URL", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 8 testRunner.And("he also navigates to register subpage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Id", "Name", "Email"}); table1.AddRow(new string[] { "1", "Damdud", "*****@*****.**"}); table1.AddRow(new string[] { "2", "Deino", "*****@*****.**"}); table1.AddRow(new string[] { "3", "Ziachu", "*****@*****.**"}); #line 9 testRunner.Given("the following users exist:", ((string)(null)), table1, "Given "); #line hidden }
public virtual void FullyArmed() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Fully armed", ((string[])(null))); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value"}); table1.AddRow(new string[] { "BeltLevel", "third"}); table1.AddRow(new string[] { "Katana", "two"}); table1.AddRow(new string[] { "Sake", "three"}); table1.AddRow(new string[] { "Fought", "samurai"}); table1.AddRow(new string[] { "Magic", "five"}); #line 8 testRunner.Given("a ninja with the following parameterized experience", ((string)(null)), table1); #line 16 testRunner.When("attacked by a samurai"); #line 17 testRunner.Then("the ninja should engage the opponent"); #line hidden testRunner.CollectScenarioErrors(); }
public virtual void FeatureBackground() { #line 7 #line 8 testRunner.Given("Setup mocking", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Id", "SecretCode", "Points", "MaximumGuessAmount", "CurrentOrderedCoupon"}); table1.AddRow(new string[] { "1", "s01", "0", "5", "0"}); table1.AddRow(new string[] { "2", "s02", "100", "5", "0"}); table1.AddRow(new string[] { "3", "s03", "10000", "5", "0"}); #line 9 testRunner.And("ผู้ใช้ในระบบมีดังนี้", ((string)(null)), table1, "And "); #line hidden }
public void ThenIRequestDataThruGetAction(Table table) { Order expected = table.CreateSet<Order>().Single(); var actual = (List<Order>)ScenarioContext.Current[ResopnseKey]; Assert.Equal(1, actual.Count); Assert.True(expected.Equals(actual.Single())); }
public virtual void RootRequestShowsSetupForm() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Root request shows setup form", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "extension", "names"}); table1.AddRow(new string[] { "Module", "Orchard.Setup, Orchard.Pages, Orchard.ContentPicker, Orchard.Users, Orchard.Roles" + ", Orchard.Messaging, Orchard.Comments, Orchard.PublishLater, Orchard.Themes, Orc" + "hard.jQuery, TinyMce"}); table1.AddRow(new string[] { "Core", "Common, Contents, Dashboard, Feeds, Navigation, Scheduling, Settings, Shapes, Xml" + "Rpc, Title"}); table1.AddRow(new string[] { "Theme", "SafeMode"}); #line 7 testRunner.Given("I have a clean site with", ((string)(null)), table1, "Given "); #line 12 testRunner.When("I go to \"/\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 13 testRunner.Then("I should see \"Welcome to Orchard\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 14 testRunner.And("I should see \"Finish Setup\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 testRunner.And("the status should be 200 \"OK\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 3 #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "name", "password", "email", "mobile", "gender", "activated"}); table1.AddRow(new string[] { "Tala", "aya@123", "*****@*****.**", "00972598", "Female", "yes"}); #line 4 testRunner.Given("I am registered with the following data:", ((string)(null)), table1, "Given "); #line 8 testRunner.And("I\'m logged in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 testRunner.And("I am on \"home\" page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 testRunner.When("I click on \"MyAccount\" link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden }
public void Thenระบบสงผลการทายผลรายเดอนในสวนของแมชกลบไปเปน(Table table) { var expecteds = CommonSetup.ConvertToMatchInformationList(table.Rows).OrderBy(it => it.Id).ToList(); var actuals = ScenarioContext.Current.Get<GetGuessHistoryByMonthRespond>().Histories .SelectMany(it => it.Matches) .OrderBy(it => it.Id).ToList(); Assert.AreEqual(expecteds.Count(), actuals.Count(), "Matches element aren't equal"); for (int elementIndex = 0; elementIndex < expecteds.Count(); elementIndex++) { var messageMatchInfo = string.Format(" (Match's ID: {0})", expecteds[elementIndex].Id); Assert.AreEqual(expecteds[elementIndex].Id, actuals[elementIndex].Id, "Match's Id aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].LeagueName, actuals[elementIndex].LeagueName, "Match's LeagueName aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].Status, actuals[elementIndex].Status, "Match's Status aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].BeginDate, actuals[elementIndex].BeginDate, "Match's BeginDate aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].StartedDate, actuals[elementIndex].StartedDate, "Match's StartedDate aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].CompletedDate, actuals[elementIndex].CompletedDate, "Match's CompletedDate aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamAway.Id, actuals[elementIndex].TeamAway.Id, "Match's TeamAway.Id aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamAway.Name, actuals[elementIndex].TeamAway.Name, "Match's TeamAway.Name aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamAway.IsSelected, actuals[elementIndex].TeamAway.IsSelected, "Match's TeamAway.IsSelected aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamAway.CurrentPredictionPoints, actuals[elementIndex].TeamAway.CurrentPredictionPoints, "Match's TeamAway.CurrentPredictionPoints aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamAway.CurrentScore, actuals[elementIndex].TeamAway.CurrentScore, "Match's TeamAway.CurrentScore aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamAway.WinningPredictionPoints, actuals[elementIndex].TeamAway.WinningPredictionPoints, "Match's TeamAway.WinningPredictionPoints aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamHome.Id, actuals[elementIndex].TeamHome.Id, "Match's TeamHome.Id aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamHome.Name, actuals[elementIndex].TeamHome.Name, "Match's TeamHome.Name aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamHome.IsSelected, actuals[elementIndex].TeamHome.IsSelected, "Match's TeamHome.IsSelected aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamHome.CurrentPredictionPoints, actuals[elementIndex].TeamHome.CurrentPredictionPoints, "Match's TeamHome.CurrentPredictionPoints aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamHome.CurrentScore, actuals[elementIndex].TeamHome.CurrentScore, "Match's TeamHome.CurrentScore aren't equal" + messageMatchInfo); Assert.AreEqual(expecteds[elementIndex].TeamHome.WinningPredictionPoints, actuals[elementIndex].TeamHome.WinningPredictionPoints, "Match's TeamHome.WinningPredictionPoints aren't equal" + messageMatchInfo); } }
public void WhenIRoll(Table rolls) { foreach (var row in rolls.Rows) { _game.Roll(int.Parse(row["Pins"])); } }
public virtual void SchedulingHomePage() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Scheduling home page", new string[] { "selenium"}); #line 7 this.ScenarioSetup(scenarioInfo); #line 8 testRunner.When("I navigate to the scheduling area"); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Text", "Url"}); table1.AddRow(new string[] { "ISIS", "http://localhost:1481/"}); table1.AddRow(new string[] { "Course Scheduling", "http://localhost:1481/Schedule"}); table1.AddRow(new string[] { "Home", ""}); #line 9 testRunner.Then("the page has breadcrumbs as follows", ((string)(null)), table1); #line 14 testRunner.And("the page has a link to Instructors"); #line 15 testRunner.And("the page has a link to Templates"); #line 16 testRunner.And("the page has a link to Sections"); #line hidden this.ScenarioCleanup(); }
public virtual void ICanCreateAndPublishANewPageWithInternationalCharactersInItsRoute() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can create and publish a new Page with international characters in its route", ((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/contents/create/page\"", ((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", "Χελλο"}); #line 9 testRunner.And("I fill in", ((string)(null)), table1, "And "); #line 12 testRunner.And("I hit \"Publish Now\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 testRunner.And("I go to \"Χελλο\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.Then("I should see \"<h1[^>]*>.*?Χελλο.*?</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void CreateDynamicInstanceFromTableWithOneRow() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create dynamic instance from table with one row", ((string[])(null))); #line 6 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Name", "Age", "Birth date", "Length in meters"}); table1.AddRow(new string[] { "Marcus", "39", "1972-10-09", "1.96"}); #line 7 testRunner.When("I create a dynamic instance from this table", ((string)(null)), table1); #line 10 testRunner.Then("the Name property should equal \'Marcus\'"); #line 11 testRunner.And("the Age property should equal 39"); #line 12 testRunner.And("the BirthDate property should equal 1972-10-09"); #line 13 testRunner.And("the LengthInMeters property should equal 1.96"); #line hidden this.ScenarioCleanup(); }
public void WhenISendDataThruPostWithResponseAction(Table table) { Order order = table.CreateSet<Order>().Single(); JsonServiceClient client = GetClient(); var response = client.Post<bool>(order); ScenarioContext.Current[ResopnseKey] = response; }
public virtual void FeatureBackground() { #line 5 #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Forename", "Surname", "PcName"}); table1.AddRow(new string[] { "Tom", "Jerrum", "DESKTOP-3L5QH7C\\tomje"}); #line 6 testRunner.Given("I have the following users stored", ((string)(null)), table1, "Given "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Title", "Contents", "Author"}); table2.AddRow(new string[] { "Test 1", "Test blog post 1", "Tom Jerrum"}); #line 9 testRunner.And("I have the following blog posts stored", ((string)(null)), table2, "And "); #line 12 testRunner.And("I am the following user \'DESKTOP-3L5QH7C\\tomje\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden }
public virtual void WhatIfThereIsNoSpoon() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("What If There Is No Spoon", new string[] { "TutorialNoSpoonSteps"}); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "First Name", "Last Name"}); table1.AddRow(new string[] { "Fox", "Smith"}); #line 9 testRunner.Given("I have a Person", ((string)(null)), table1, "Given "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "First Name", "Last Name"}); table2.AddRow(new string[] { "Fox", "Smith"}); #line 13 testRunner.Then("There is a Person", ((string)(null)), table2, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void CreateANewsManagementArticleInATransaction() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create a News Management Article in a transaction", ((string[])(null))); #line 4 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "CreatedBy", "Title", "Content"}); table1.AddRow(new string[] { "Jonathan", "Test Title", "Test Content"}); #line 5 testRunner.Given("I have a news management article with the properties", ((string)(null)), table1); #line 8 testRunner.When("I attempt to create the article in a transaction"); #line 9 testRunner.Then("the repository result will be true"); #line 10 testRunner.And("the article repository count should be 1"); #line 11 testRunner.And("the Creator will be Jonathan"); #line 12 testRunner.And("the Title will be Test Title"); #line 13 testRunner.And("the Content will be Test Content"); #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 11 testRunner.When("I navigate to the game play page"); #line 12 testRunner.And("I click on the tile at coordinate 2,2"); #line 13 testRunner.Then("I should see a message telling me that \"You have lost!\""); #line 14 testRunner.And("I should see a button labelled \"Start New Game\""); #line hidden this.ScenarioCleanup(); }
public void TestGivenNavigateToPageStepWithArguments() { var testPage = new Mock<IPage>(); var pipelineService = new Mock<IActionPipelineService>(MockBehavior.Strict); pipelineService.Setup(p => p.PerformAction<PageNavigationAction>( null, It.Is<PageNavigationAction.PageNavigationActionContext>(c => c.PropertyName == "mypage" && c.PageAction == PageNavigationAction.PageAction.NavigateToPage && c.PageArguments != null && c.PageArguments.Count == 2))) .Returns(ActionResult.Successful(testPage.Object)); var scenarioContext = new Mock<IScenarioContextHelper>(MockBehavior.Strict); scenarioContext.Setup(s => s.SetValue(It.IsAny<IPage>(), PageStepBase.CurrentPageKey)); var tokenManager = new Mock<ITokenManager>(MockBehavior.Strict); tokenManager.Setup(t => t.GetToken(It.IsAny<string>())).Returns<string>(s => s); var steps = new PageNavigationSteps(scenarioContext.Object, pipelineService.Object, tokenManager.Object); var table = new Table("Id", "Part"); table.AddRow("1", "A"); steps.GivenNavigateToPageWithArgumentsStep("mypage", table); scenarioContext.VerifyAll(); pipelineService.VerifyAll(); }
public virtual void FeatureBackground() { #line 7 #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Author", "Title", "Price"}); table1.AddRow(new string[] { "Martin Fowler", "Analysis Patterns", "50.20"}); table1.AddRow(new string[] { "Eric Evans", "Domain Driven Design", "46.34"}); table1.AddRow(new string[] { "Ted Pattison", "Inside Windows SharePoint Services", "31.49"}); table1.AddRow(new string[] { "Gojko Adzic", "Bridging the Communication Gap", "24.75"}); #line 8 testRunner.Given("the following books", ((string)(null)), table1, "Given "); #line hidden }
public virtual void InstalledModulesAreListed() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Installed modules are 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.When("I go to \"admin/modules\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 9 testRunner.Then("I should see \"<h1 id=\"page-title\">Modules</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "name", "value"}); table1.AddRow(new string[] { "Options.SearchText", "Themes"}); #line 10 testRunner.When("I fill in", ((string)(null)), table1, "When "); #line 13 testRunner.And("I hit \"Search\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.Then("I should see \"<h1 id=\"page-title\">Modules</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 15 testRunner.And("I should see \"<h2[^>]*>Themes\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 testRunner.And("the status should be 200 \"OK\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void ErrorIsReturnedWhenAccountAccessConsentDoesntExist() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Error is returned when Account Access Consent doesn\'t exist", 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(); TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table18.AddRow(new string[] { "token_endpoint_auth_method", "tls_client_auth" }); table18.AddRow(new string[] { "response_types", "[token,code,id_token]" }); table18.AddRow(new string[] { "grant_types", "[client_credentials]" }); table18.AddRow(new string[] { "scope", "accounts" }); table18.AddRow(new string[] { "redirect_uris", "[https://localhost:8080/callback]" }); table18.AddRow(new string[] { "tls_client_auth_san_dns", "firstMtlsClient" }); #line 5 testRunner.When("execute HTTP POST JSON request \'https://localhost:8080/register\'", ((string)(null)), table18, "When "); #line hidden #line 14 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 15 testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table19.AddRow(new string[] { "response_type", "id_token" }); table19.AddRow(new string[] { "client_id", "$client_id$" }); table19.AddRow(new string[] { "state", "state" }); table19.AddRow(new string[] { "response_mode", "query" }); table19.AddRow(new string[] { "scope", "accounts" }); table19.AddRow(new string[] { "redirect_uri", "https://localhost:8080/callback" }); table19.AddRow(new string[] { "nonce", "nonce" }); table19.AddRow(new string[] { "claims", "{ id_token: { openbanking_intent_id: { value: \"value\", essential : true } } }" }); #line 17 testRunner.And("execute HTTP GET request \'https://localhost:8080/authorization\'", ((string)(null)), table19, "And "); #line hidden #line 28 testRunner.And("extract query parameters into JSON", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 30 testRunner.Then("JSON \'error\'=\'invalid_request\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 31 testRunner.Then("JSON \'error_description\'=\'account access consent \'value\' doesn\'t exist\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void AsSellerIShouldAbleToDeleteEducation() { string[] tagsOfScenario = new string[] { "automate" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("as seller I should able to delete Education", null, new string[] { "automate" }); #line 20 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(); TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { "Email", "Password" }); table14.AddRow(new string[] { "*****@*****.**", "123456" }); #line 21 testRunner.Given("I login with valid user", ((string)(null)), table14, "Given "); #line hidden TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] { "University", "Country", "Title", "Degree", "GraduationYear" }); table15.AddRow(new string[] { "Auckland Univercity", "New Zealand", "B.Tech", "Bachlor", "2005" }); #line 24 testRunner.And("I can delete this education", ((string)(null)), table15, "And "); #line hidden TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] { "University", "Country", "Title", "Degree", "GraduationYear" }); table16.AddRow(new string[] { "Auckland Univercity", "New Zealand", "B.Tech", "Bachlor", "2005" }); #line 27 testRunner.Then("I cannot see deleted education", ((string)(null)), table16, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void RecordsetLengthForInvalidRecordset() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Recordset length for invalid recordset", ((string[])(null))); #line 119 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table2264 = new TechTalk.SpecFlow.Table(new string[] { "rs", "" }); table2264.AddRow(new string[] { "rs(1).row", "1" }); table2264.AddRow(new string[] { "rs(2).row", "2" }); table2264.AddRow(new string[] { "rs(3).row", "3" }); table2264.AddRow(new string[] { "rs(4).row", "4" }); table2264.AddRow(new string[] { "rs(5).row", "5" }); table2264.AddRow(new string[] { "rs(6).row", "6" }); table2264.AddRow(new string[] { "rs(7).row", "7" }); table2264.AddRow(new string[] { "rs(8).row", "8" }); #line 120 testRunner.Given("I get the length from a recordset that looks like with this shape", ((string)(null)), table2264, "Given "); #line 130 testRunner.And("get length on record \"[[rs().&^]]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 131 testRunner.When("the length tool is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 132 testRunner.Then("the execution has \"AN\" error", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2265 = new TechTalk.SpecFlow.Table(new string[] { "Recordset" }); #line 133 testRunner.And("the debug inputs as", ((string)(null)), table2265, "And "); #line hidden TechTalk.SpecFlow.Table table2266 = new TechTalk.SpecFlow.Table(new string[] { "" }); #line 135 testRunner.And("the debug output as", ((string)(null)), table2266, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void RecordsetLength() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Recordset length", ((string[])(null))); #line 92 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table2261 = new TechTalk.SpecFlow.Table(new string[] { "rs", "" }); table2261.AddRow(new string[] { "rs().row", "1" }); table2261.AddRow(new string[] { "rs().row", "2" }); table2261.AddRow(new string[] { "rs().row", "3" }); table2261.AddRow(new string[] { "rs().row", "4" }); table2261.AddRow(new string[] { "rs().row2", "5" }); table2261.AddRow(new string[] { "rs().row2", "6" }); table2261.AddRow(new string[] { "rs().row2", "7" }); #line 93 testRunner.Given("I get the length from a recordset that looks like with this shape", ((string)(null)), table2261, "Given "); #line 102 testRunner.And("get length on record \"[[rs()]]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 103 testRunner.When("the length tool is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 104 testRunner.Then("the length result should be 6", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 105 testRunner.And("the execution has \"NO\" error", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2262 = new TechTalk.SpecFlow.Table(new string[] { "Recordset" }); table2262.AddRow(new string[] { "[[rs(1).row]] = 1" }); table2262.AddRow(new string[] { "[[rs(2).row]] = 2" }); table2262.AddRow(new string[] { "[[rs(3).row]] = 3" }); table2262.AddRow(new string[] { "[[rs(4).row]] = 4" }); table2262.AddRow(new string[] { "[[rs(4).row2]] = 5" }); table2262.AddRow(new string[] { "[[rs(5).row2]] = 6" }); table2262.AddRow(new string[] { "[[rs(6).row2]] = 7" }); #line 106 testRunner.And("the debug inputs as", ((string)(null)), table2262, "And "); #line hidden TechTalk.SpecFlow.Table table2263 = new TechTalk.SpecFlow.Table(new string[] { "" }); table2263.AddRow(new string[] { "[[result]] = 6" }); #line 115 testRunner.And("the debug output as", ((string)(null)), table2263, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void RecordsetLengthForColoumnsInvalid() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Recordset length for coloumns invalid", ((string[])(null))); #line 74 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table2258 = new TechTalk.SpecFlow.Table(new string[] { "rs", "" }); table2258.AddRow(new string[] { "rs().row", "1" }); table2258.AddRow(new string[] { "rs().row", "2" }); table2258.AddRow(new string[] { "rs().row", "3" }); table2258.AddRow(new string[] { "rs().row", "4" }); table2258.AddRow(new string[] { "rs().row2", "5" }); table2258.AddRow(new string[] { "rs().row2", "6" }); table2258.AddRow(new string[] { "rs().row2", "7" }); #line 75 testRunner.Given("I get the length from a recordset that looks like with this shape", ((string)(null)), table2258, "Given "); #line 84 testRunner.And("get length on record \"[[rs().row]]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 85 testRunner.When("the length tool is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 86 testRunner.Then("the execution has \"AN\" error", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2259 = new TechTalk.SpecFlow.Table(new string[] { "Recordset" }); #line 87 testRunner.And("the debug inputs as", ((string)(null)), table2259, "And "); #line hidden TechTalk.SpecFlow.Table table2260 = new TechTalk.SpecFlow.Table(new string[] { "" }); #line 89 testRunner.And("the debug output as", ((string)(null)), table2260, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void RecordsetLengthForColoumn() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Recordset length for coloumn", ((string[])(null))); #line 55 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table2255 = new TechTalk.SpecFlow.Table(new string[] { "rs", "" }); table2255.AddRow(new string[] { "rs(1).row", "1" }); table2255.AddRow(new string[] { "rs(2).row", "2" }); table2255.AddRow(new string[] { "rs(3).row", "3" }); table2255.AddRow(new string[] { "rs(4).row", "4" }); table2255.AddRow(new string[] { "rs(5).row", "5" }); table2255.AddRow(new string[] { "rs(6).row", "6" }); table2255.AddRow(new string[] { "rs(7).row", "7" }); table2255.AddRow(new string[] { "rs(8).row", "8" }); #line 56 testRunner.Given("I get the length from a recordset that looks like with this shape", ((string)(null)), table2255, "Given "); #line 66 testRunner.And("get length on record \"[[rs().row]]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 67 testRunner.When("the length tool is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 68 testRunner.Then("the execution has \"AN\" error", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2256 = new TechTalk.SpecFlow.Table(new string[] { "Recordset" }); #line 69 testRunner.And("the debug inputs as", ((string)(null)), table2256, "And "); #line hidden TechTalk.SpecFlow.Table table2257 = new TechTalk.SpecFlow.Table(new string[] { "" }); #line 71 testRunner.And("the debug output as", ((string)(null)), table2257, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void LengthOfARecordsetWith8Rows() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Length of a recordset with 8 rows", ((string[])(null))); #line 26 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table2252 = new TechTalk.SpecFlow.Table(new string[] { "rs", "" }); table2252.AddRow(new string[] { "rs(1).row", "1" }); table2252.AddRow(new string[] { "rs(2).row", "2" }); table2252.AddRow(new string[] { "rs(3).row", "3" }); table2252.AddRow(new string[] { "rs(4).row", "4" }); table2252.AddRow(new string[] { "rs(5).row", "5" }); table2252.AddRow(new string[] { "rs(6).row", "6" }); table2252.AddRow(new string[] { "rs(7).row", "7" }); table2252.AddRow(new string[] { "rs(8).row", "8" }); #line 27 testRunner.Given("I get the length from a recordset that looks like with this shape", ((string)(null)), table2252, "Given "); #line 37 testRunner.And("get length on record \"[[rs()]]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 38 testRunner.When("the length tool is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 39 testRunner.Then("the length result should be 8", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 40 testRunner.And("the execution has \"NO\" error", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2253 = new TechTalk.SpecFlow.Table(new string[] { "Recordset" }); table2253.AddRow(new string[] { "[[rs(1).row]] = 1" }); table2253.AddRow(new string[] { "[[rs(2).row]] = 2" }); table2253.AddRow(new string[] { "[[rs(3).row]] = 3" }); table2253.AddRow(new string[] { "[[rs(4).row]] = 4" }); table2253.AddRow(new string[] { "[[rs(5).row]] = 5" }); table2253.AddRow(new string[] { "[[rs(6).row]] = 6" }); table2253.AddRow(new string[] { "[[rs(7).row]] = 7" }); table2253.AddRow(new string[] { "[[rs(8).row]] = 8" }); #line 41 testRunner.And("the debug inputs as", ((string)(null)), table2253, "And "); #line hidden TechTalk.SpecFlow.Table table2254 = new TechTalk.SpecFlow.Table(new string[] { "" }); table2254.AddRow(new string[] { "[[result]] = 8" }); #line 51 testRunner.And("the debug output as", ((string)(null)), table2254, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void CreatingAndUsingEnumerationFields() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Creating and using Enumeration 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", "Location" }); table2.AddRow(new string[] { "Name", "Location" }); table2.AddRow(new string[] { "FieldTypeName", "EnumerationField" }); #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 \\\"Location\\\" field has been added.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 35 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table3.AddRow(new string[] { "Fields[0].EnumerationFieldSettings.Options", "Seattle" }); #line 36 testRunner.And("I fill in", ((string)(null)), table3, "And "); #line 39 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 40 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 41 testRunner.Then("I should see \"<option>Seattle</option>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 44 testRunner.When("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 45 testRunner.Then("I should see \"Location\"", ((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.Location.Value", "Seattle" }); #line 46 testRunner.When("I fill in", ((string)(null)), table4, "When "); #line 49 testRunner.And("I hit \"Save Draft\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 50 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 51 testRunner.Then("I should see \"The Event has been created as a draft.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 52 testRunner.When("I go to \"Admin/Contents/List\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 53 testRunner.Then("I should see \"Location:\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 54 testRunner.And("I should see \"Seattle\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 57 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((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[] { "Fields[0].EnumerationFieldSettings.Hint", "Please select a location" }); #line 58 testRunner.And("I fill in", ((string)(null)), table5, "And "); #line 61 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 62 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 63 testRunner.Then("I should see \"Please select a location\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 66 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].EnumerationFieldSettings.ListMode", "Dropdown" }); #line 67 testRunner.And("I fill in", ((string)(null)), table6, "And "); #line 70 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 71 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 72 testRunner.Then("I should see \"select id=\\\"Event_Location_Value\\\" name=\\\"Event.Location.Value\\\"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 75 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].EnumerationFieldSettings.ListMode", "Radiobutton" }); #line 76 testRunner.And("I fill in", ((string)(null)), table7, "And "); #line 79 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 80 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 81 testRunner.Then("I should see \"input id=\\\"Event_Location_Value\\\" name=\\\"Event.Location.Value\\\" typ" + "e=\\\"radio\\\"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 84 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].EnumerationFieldSettings.ListMode", "Listbox" }); #line 85 testRunner.And("I fill in", ((string)(null)), table8, "And "); #line 88 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 89 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 90 testRunner.Then("I should see \"select id=\\\"Event_Location_SelectedValues\\\" multiple=\\\"multiple\\\" n" + "ame=\\\"Event.Location.SelectedValues\\\"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 93 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].EnumerationFieldSettings.ListMode", "Checkbox" }); #line 94 testRunner.And("I fill in", ((string)(null)), table9, "And "); #line 97 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 98 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 99 testRunner.Then("I should see \"input type=\\\"checkbox\\\" name=\\\"Event.Location.SelectedValues\\\"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 102 testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table10.AddRow(new string[] { "Fields[0].EnumerationFieldSettings.Required", "true" }); #line 103 testRunner.And("I fill in", ((string)(null)), table10, "And "); #line 106 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 107 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 108 testRunner.And("I hit \"Save Draft\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 109 testRunner.Then("I should see \"The Location field is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 112 testRunner.When("I go to \"Admin/ContentTypes/Edit/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[] { "Fields[0].EnumerationFieldSettings.Options", "Seattle" }); table11.AddRow(new string[] { "Fields[0].EnumerationFieldSettings.ListMode", "Dropdown" }); table11.AddRow(new string[] { "Fields[0].EnumerationFieldSettings.DefaultValue", "Seattle" }); #line 113 testRunner.And("I fill in", ((string)(null)), table11, "And "); #line 118 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 119 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 120 testRunner.Then("I should see \"selected=\\\"selected\">Seattle\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 123 testRunner.When("I go to \"Admin/ContentTypes/Edit/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[] { "Fields[0].EnumerationFieldSettings.Required", "true" }); table12.AddRow(new string[] { "Fields[0].EnumerationFieldSettings.ListMode", "Listbox" }); #line 124 testRunner.And("I fill in", ((string)(null)), table12, "And "); #line 128 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 129 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 130 testRunner.Then("I should see \"required=\\\"required\\\"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 133 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].EnumerationFieldSettings.Required", "false" }); table13.AddRow(new string[] { "Fields[0].EnumerationFieldSettings.ListMode", "Listbox" }); #line 134 testRunner.And("I fill in", ((string)(null)), table13, "And "); #line 138 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 139 testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 140 testRunner.Then("I should not see \"required=\\\"required\\\"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void OmniscientGodAIShouldFindMoveResults() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Omniscient god AI should find move results", ((string[])(null))); #line 103 this.ScenarioSetup(scenarioInfo); #line 6 this.FeatureBackground(); #line hidden TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { "Move" }); table13.AddRow(new string[] { "Center" }); #line 104 testRunner.Given("I start a new game with the following moves", ((string)(null)), table13, "Given "); #line hidden TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { "Board", "Player", "Response", "Outcome" }); table14.AddRow(new string[] { "____X____", "O", "Southern", "Tie" }); table14.AddRow(new string[] { "____X____", "O", "Western", "XWin" }); table14.AddRow(new string[] { "____X____", "O", "Eastern", "Tie" }); #line 107 testRunner.Given("I setup the mock IMoveResponseRepository.FindMoveResponses method to return the f" + "ollowing MoveResponses for game board \"____X____\" and player \"O\"", ((string)(null)), table14, "Given "); #line 112 testRunner.When("I have the AI find move results for the current game", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] { "MoveMade", "GameStateAfterMove" }); table15.AddRow(new string[] { "Southern", "Tie" }); table15.AddRow(new string[] { "Western", "XWin" }); table15.AddRow(new string[] { "Eastern", "Tie" }); #line 113 testRunner.Then("The move results should contain the following", ((string)(null)), table15, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ValidateBorrowingLimit(string type, string dependants, string purpose, string income, string otherIncome, string expense, string hlRepay, string otherLoan, string commitments, string creditCardLimit, string limit, string[] exampleTags) { string[] @__tags = new string[] { "smoke" }; 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("Type", type); argumentsOfScenario.Add("Dependants", dependants); argumentsOfScenario.Add("Purpose", purpose); argumentsOfScenario.Add("Income", income); argumentsOfScenario.Add("OtherIncome", otherIncome); argumentsOfScenario.Add("Expense", expense); argumentsOfScenario.Add("HlRepay", hlRepay); argumentsOfScenario.Add("OtherLoan", otherLoan); argumentsOfScenario.Add("Commitments", commitments); argumentsOfScenario.Add("CreditCardLimit", creditCardLimit); argumentsOfScenario.Add("Limit", limit); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Validate borrowing limit", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #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 at loan calculator page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table1.AddRow(new string[] { "ApplicationType", string.Format("{0}", type) }); table1.AddRow(new string[] { "Dependants", string.Format("{0}", dependants) }); table1.AddRow(new string[] { "PropertyPurpose", string.Format("{0}", purpose) }); #line 9 testRunner.When("I enter your details as:", ((string)(null)), table1, "When "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table2.AddRow(new string[] { "IncomeBeforeTax", string.Format("{0}", income) }); table2.AddRow(new string[] { "OtherIncome", string.Format("{0}", otherIncome) }); #line 14 testRunner.And("I enter your earnings as:", ((string)(null)), table2, "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table3.AddRow(new string[] { "LivingExpenses", string.Format("{0}", expense) }); table3.AddRow(new string[] { "CurrentHlRepay", string.Format("{0}", hlRepay) }); table3.AddRow(new string[] { "OtherLoanRepay", string.Format("{0}", otherLoan) }); table3.AddRow(new string[] { "OtherCommitments", string.Format("{0}", commitments) }); table3.AddRow(new string[] { "CreditCardLimit", string.Format("{0}", creditCardLimit) }); #line 18 testRunner.And("I enter your expenses as:", ((string)(null)), table3, "And "); #line hidden #line 25 testRunner.Then(string.Format("I verify borrowing estimate is \"{0}\"", limit), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void IShouldBeAbleToFilterUsersByStatus() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I should be able to filter users by status", new string[] { "filtering" }); #line 229 this.ScenarioSetup(scenarioInfo); #line 230 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 231 testRunner.When("I go to \"admin/users\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 233 testRunner.And("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table20.AddRow(new string[] { "UserName", "user1" }); table20.AddRow(new string[] { "Email", "*****@*****.**" }); table20.AddRow(new string[] { "Password", "a12345!" }); table20.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 234 testRunner.And("I fill in", ((string)(null)), table20, "And "); #line 240 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 241 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 243 testRunner.And("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table21.AddRow(new string[] { "UserName", "user2" }); table21.AddRow(new string[] { "Email", "*****@*****.**" }); table21.AddRow(new string[] { "Password", "a12345!" }); table21.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 244 testRunner.And("I fill in", ((string)(null)), table21, "And "); #line 250 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 251 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 252 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 253 testRunner.And("I should see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table22.AddRow(new string[] { "Options.Search", "user1" }); #line 254 testRunner.When("I fill in", ((string)(null)), table22, "When "); #line 257 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 258 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 259 testRunner.When("I hit \"Disable\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 260 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 261 testRunner.Then("I should see \"User user1 disabled\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table23.AddRow(new string[] { "Options.Search", "" }); table23.AddRow(new string[] { "Options.Filter", "Pending" }); #line 262 testRunner.When("I fill in", ((string)(null)), table23, "When "); #line 266 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 267 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 268 testRunner.And("I should not see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 269 testRunner.And("I should not see \"<a[^>]*>admin</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table24.AddRow(new string[] { "Options.Search", "" }); table24.AddRow(new string[] { "Options.Filter", "EmailPending" }); #line 270 testRunner.When("I fill in", ((string)(null)), table24, "When "); #line 274 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 275 testRunner.Then("I should not see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 276 testRunner.And("I should not see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 277 testRunner.And("I should not see \"<a[^>]*>admin</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table25.AddRow(new string[] { "Options.Search", "" }); table25.AddRow(new string[] { "Options.Filter", "Approved" }); #line 278 testRunner.When("I fill in", ((string)(null)), table25, "When "); #line 282 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 283 testRunner.Then("I should not see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 284 testRunner.And("I should see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 285 testRunner.And("I should see \"<a[^>]*>admin</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table26.AddRow(new string[] { "Options.Search", "" }); table26.AddRow(new string[] { "Options.Filter", "All" }); #line 286 testRunner.When("I fill in", ((string)(null)), table26, "When "); #line 290 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 291 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 292 testRunner.And("I should see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 293 testRunner.And("I should see \"<a[^>]*>admin</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void CreateAdjustmentLetters() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create AdjustmentLetters", new string[] { "CreateAdjustmentLetters" }); #line 7 this.ScenarioSetup(scenarioInfo); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table1.AddRow(new string[] { "JobIdentifier", "NEDF_26ed3b9c-158e-425b-b868/NGAL-097ede2d-2a5a-4d1b-9c64-aed5cacc7cbf" }); table1.AddRow(new string[] { "processingDate", "2015-09-02" }); #line 8 testRunner.Given("a valid AdjustmentLetters request is available in the request queue with this inf" + "ormation", ((string)(null)), table1, "Given "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "ScannedBatchNumber", "DocumentReferenceNumber", "AdjustedFlag", "TransactionLinkNumber", "AccountNumber", "BsbNumber", "OutputFilenamePrefix", "CollectingBank" }); table2.AddRow(new string[] { "67500031", "175000019", "true", "1", "899920322", "081408", "coles", "082988" }); table2.AddRow(new string[] { "67500031", "175000020", "false", "1", "899920322", "082001", "coles", "082991" }); table2.AddRow(new string[] { "67500032", "175000022", "true", "1", "899920322", "082003", "super", "082996" }); table2.AddRow(new string[] { "67500032", "175000023", "false", "1", "899920322", "082004", "super", "083001" }); table2.AddRow(new string[] { "67500033", "175000025", "true", "1", "899920322", "082005", "cuscal", "083002" }); table2.AddRow(new string[] { "67500033", "175000026", "false", "1", "899920322", "082008", "cuscal", "083002" }); #line 12 testRunner.And("AdjustmentLetters payload contains these voucherProcess", ((string)(null)), table2, "And "); #line 20 testRunner.When("create AdjustmentLetters process run", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "FileName" }); table3.AddRow(new string[] { "coles_0001.pdf" }); table3.AddRow(new string[] { "super_0002.pdf" }); table3.AddRow(new string[] { "cuscal_0003.pdf" }); table3.AddRow(new string[] { "DEV.NAB.RPT.LTR.ADJC.20150902.2" }); #line 21 testRunner.Then("these AdjustmentLetters files will be created", ((string)(null)), table3, "Then "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "documentReferenceNumber", "filename", "processingDate", "scannedBatchNumber", "transactionLinkNumber" }); table4.AddRow(new string[] { "175000019", "coles_0001.pdf", "2015-09-02", "67500031", "1" }); table4.AddRow(new string[] { "175000022", "super_0002.pdf", "2015-09-02", "67500032", "1" }); table4.AddRow(new string[] { "175000025", "cuscal_0003.pdf", "2015-09-02", "67500033", "1" }); #line 27 testRunner.And("AdjustmentLetters response will be created", ((string)(null)), table4, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void IShouldBeAbleToRemoveAnExistingUser() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I should be able to remove an existing user", new string[] { "management", "ignore" }); #line 155 this.ScenarioSetup(scenarioInfo); #line 156 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 157 testRunner.When("I go to \"admin/users\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 159 testRunner.And("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table13.AddRow(new string[] { "UserName", "user1" }); table13.AddRow(new string[] { "Email", "*****@*****.**" }); table13.AddRow(new string[] { "Password", "a12345!" }); table13.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 160 testRunner.And("I fill in", ((string)(null)), table13, "And "); #line 166 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 167 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 168 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table14.AddRow(new string[] { "Options.Search", "user1" }); #line 170 testRunner.When("I fill in", ((string)(null)), table14, "When "); #line 173 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 174 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 175 testRunner.When("I follow \"Delete\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 176 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 177 testRunner.Then("I should see \"User user1 deleted\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 178 testRunner.And("I should not see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void ICanCreateANewUser() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can create a new user", new string[] { "management" }); #line 14 this.ScenarioSetup(scenarioInfo); #line 15 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 16 testRunner.When("I go to \"admin/users\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 17 testRunner.Then("I should see \"Users\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 18 testRunner.When("I follow \"Add a new user\"", ((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[] { "UserName", "user1" }); table1.AddRow(new string[] { "Email", "*****@*****.**" }); table1.AddRow(new string[] { "Password", "a12345!" }); table1.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 19 testRunner.And("I fill in", ((string)(null)), table1, "And "); #line 25 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 26 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 27 testRunner.Then("I should see \"User created\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 28 testRunner.When("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table2.AddRow(new string[] { "UserName", "user2" }); table2.AddRow(new string[] { "Email", "*****@*****.**" }); table2.AddRow(new string[] { "Password", "a12345!" }); table2.AddRow(new string[] { "ConfirmPassword", "a12345!" }); table2.AddRow(new string[] { "UserRoles.Roles[0].Granted", "true" }); #line 29 testRunner.And("I fill in", ((string)(null)), table2, "And "); #line 36 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 37 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 38 testRunner.Then("I should see \"User created\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 39 testRunner.And("I should see \"Adding role Administrator to user user2\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 40 testRunner.When("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table3.AddRow(new string[] { "UserName", "user3" }); table3.AddRow(new string[] { "Email", "*****@*****.**" }); table3.AddRow(new string[] { "Password", "a12345!" }); table3.AddRow(new string[] { "ConfirmPassword", "a12345!" }); table3.AddRow(new string[] { "UserRoles.Roles[0].Granted", "true" }); table3.AddRow(new string[] { "UserRoles.Roles[1].Granted", "true" }); table3.AddRow(new string[] { "UserRoles.Roles[2].Granted", "true" }); table3.AddRow(new string[] { "UserRoles.Roles[3].Granted", "true" }); table3.AddRow(new string[] { "UserRoles.Roles[4].Granted", "true" }); #line 41 testRunner.And("I fill in", ((string)(null)), table3, "And "); #line 52 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 53 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 54 testRunner.Then("I should see \"User created\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 55 testRunner.And("I should see \"Adding role Administrator to user user3\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 56 testRunner.And("I should see \"Adding role Editor to user user3\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 57 testRunner.And("I should see \"Adding role Moderator to user user3\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 58 testRunner.And("I should see \"Adding role Author to user user3\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 59 testRunner.And("I should see \"Adding role Contributor to user user3\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 60 testRunner.When("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 61 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 62 testRunner.Then("I should see \"The UserName field is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 63 testRunner.Then("I should see \"The Email field is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 64 testRunner.Then("I should see \"The Password field is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 65 testRunner.Then("I should see \"The ConfirmPassword field is required.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 66 testRunner.When("I go to \"admin/users\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 67 testRunner.And("I follow \"Add a new user\"", ((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[] { "UserName", "user4" }); table4.AddRow(new string[] { "Email", "*****@*****.**" }); table4.AddRow(new string[] { "Password", "a12345!" }); table4.AddRow(new string[] { "ConfirmPassword", "a123456!" }); #line 68 testRunner.And("I fill in", ((string)(null)), table4, "And "); #line 74 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 75 testRunner.Then("I should see \"Password confirmation must match\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void ICanEditAnExistingUser() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can edit an existing user", new string[] { "management" }); #line 78 this.ScenarioSetup(scenarioInfo); #line 79 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 80 testRunner.When("I go to \"admin/users\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 81 testRunner.And("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table5.AddRow(new string[] { "UserName", "user1" }); table5.AddRow(new string[] { "Email", "*****@*****.**" }); table5.AddRow(new string[] { "Password", "a12345!" }); table5.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 82 testRunner.And("I fill in", ((string)(null)), table5, "And "); #line 88 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 89 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 90 testRunner.Then("I should see \"User created\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table6.AddRow(new string[] { "Options.Search", "user1" }); #line 91 testRunner.When("I fill in", ((string)(null)), table6, "When "); #line 94 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 95 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 96 testRunner.When("I follow \"Edit\"", ((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[] { "UserName", "user2" }); table7.AddRow(new string[] { "Email", "*****@*****.**" }); #line 97 testRunner.And("I fill in", ((string)(null)), table7, "And "); #line 101 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 102 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 103 testRunner.Then("I should see \"User information updated\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 104 testRunner.And("I should see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 105 testRunner.And("I should see \"[email protected]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void IShouldNotBeAbleToFilterUsersByName() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I should not be able to filter users by name", new string[] { "filtering" }); #line 181 this.ScenarioSetup(scenarioInfo); #line 182 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 183 testRunner.When("I go to \"admin/users\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 185 testRunner.And("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table15.AddRow(new string[] { "UserName", "user1" }); table15.AddRow(new string[] { "Email", "*****@*****.**" }); table15.AddRow(new string[] { "Password", "a12345!" }); table15.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 186 testRunner.And("I fill in", ((string)(null)), table15, "And "); #line 192 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 193 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 195 testRunner.And("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table16.AddRow(new string[] { "UserName", "user2" }); table16.AddRow(new string[] { "Email", "*****@*****.**" }); table16.AddRow(new string[] { "Password", "a12345!" }); table16.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 196 testRunner.And("I fill in", ((string)(null)), table16, "And "); #line 202 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 203 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 204 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 205 testRunner.And("I should see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table17.AddRow(new string[] { "Options.Search", "user1" }); #line 206 testRunner.When("I fill in", ((string)(null)), table17, "When "); #line 209 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 210 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 211 testRunner.And("I should not see \"<a[^>]*>admin</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 212 testRunner.And("I should not see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table18.AddRow(new string[] { "Options.Search", "*****@*****.**" }); #line 213 testRunner.When("I fill in", ((string)(null)), table18, "When "); #line 216 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 217 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 218 testRunner.And("I should not see \"<a[^>]*>admin</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 219 testRunner.And("I should not see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table19.AddRow(new string[] { "Options.Search", "@domain.com" }); #line 220 testRunner.When("I fill in", ((string)(null)), table19, "When "); #line 223 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 224 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 225 testRunner.And("I should see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 226 testRunner.And("I should not see \"<a[^>]*>admin</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void MonthThreeSubmissionMultipleSubmissionMonth() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Month three submission (Multiple submission month)", ((string[])(null))); #line 3 this.ScenarioSetup(scenarioInfo); #line 4 testRunner.Given("I have an account", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Paye_scheme", "LevyDueYtd", "Payroll_Year", "Payroll_Month", "English_Fraction", "SubmissionDate", "CreatedDate" }); table1.AddRow(new string[] { "123/ABC", "10000", "17-18", "1", "1", "2017-05-15", "2017-05-23" }); table1.AddRow(new string[] { "123/ABC", "20000", "17-18", "2", "1", "2017-06-15", "2017-06-23" }); table1.AddRow(new string[] { "123/ABC", "35000", "17-18", "3", "1", "2017-07-15", "2017-07-23" }); table1.AddRow(new string[] { "123/ABC", "25000", "17-18", "3", "1", "2017-07-16", "2017-07-23" }); table1.AddRow(new string[] { "123/ABC", "30000", "17-18", "3", "1", "2017-07-17", "2017-07-23" }); #line 5 testRunner.When("I have the following submissions", ((string)(null)), table1, "When "); #line 12 testRunner.Then("the balance on 07/2017 should be 33000 on the screen", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 13 testRunner.And("the total levy shown for month 07/2017 should be 11000", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 testRunner.And("For month 07/2017 the levy declared should be 10000 and the topup should be 1000", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }
public virtual void IShouldNotBeAbleToReuseAnExistingUsernameOrEmail() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I should not be able to reuse an existing username or email", new string[] { "management" }); #line 108 this.ScenarioSetup(scenarioInfo); #line 109 testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 110 testRunner.When("I go to \"admin/users\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 112 testRunner.And("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table8.AddRow(new string[] { "UserName", "user1" }); table8.AddRow(new string[] { "Email", "*****@*****.**" }); table8.AddRow(new string[] { "Password", "a12345!" }); table8.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 113 testRunner.And("I fill in", ((string)(null)), table8, "And "); #line 119 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 120 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 122 testRunner.And("I follow \"Add a new user\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table9.AddRow(new string[] { "UserName", "user2" }); table9.AddRow(new string[] { "Email", "*****@*****.**" }); table9.AddRow(new string[] { "Password", "a12345!" }); table9.AddRow(new string[] { "ConfirmPassword", "a12345!" }); #line 123 testRunner.And("I fill in", ((string)(null)), table9, "And "); #line 129 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 130 testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 131 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 132 testRunner.And("I should see \"<a[^>]*>user2</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table10.AddRow(new string[] { "Options.Search", "user1" }); #line 134 testRunner.When("I fill in", ((string)(null)), table10, "When "); #line 137 testRunner.And("I hit \"Filter\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 138 testRunner.Then("I should see \"<a[^>]*>user1</a>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 139 testRunner.When("I follow \"Edit\"", ((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[] { "UserName", "user2" }); table11.AddRow(new string[] { "Email", "*****@*****.**" }); #line 140 testRunner.And("I fill in", ((string)(null)), table11, "And "); #line 144 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 145 testRunner.Then("I should see \"User with that username and/or email already exists.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { "name", "value" }); table12.AddRow(new string[] { "UserName", "user1" }); table12.AddRow(new string[] { "Email", "*****@*****.**" }); #line 146 testRunner.When("I fill in", ((string)(null)), table12, "When "); #line 150 testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 151 testRunner.Then("I should see \"User with that username and/or email already exists.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void RechercheParLeBinome() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Recherche par le binôme", null, ((string[])(null))); #line 58 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 6 this.FeatureBackground(); #line 59 testRunner.When("Je lance une recherche d\'opérations avec le filtre \"marie\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table33 = new TechTalk.SpecFlow.Table(new string[] { "Type", "OperationId", "Periode", "Montant", "Libelle", "Binome", "Categorie" }); table33.AddRow(new string[] { "Dépense", "1", "2001-01", "100", "Leclerc", "Marie", "Commun" }); table33.AddRow(new string[] { "Dépense", "4", "2001-01", "50", "spectacle", "Marie", "Commun" }); table33.AddRow(new string[] { "Dépense", "6", "2001-01", "1234.56", "bricolage", "Marie", "Commun" }); table33.AddRow(new string[] { "Recette", "7", "2001-01", "10", "CAF", "Marie", "Commun" }); table33.AddRow(new string[] { "Recette", "9", "2001-01", "20", "Noel", "Marie", "Commun" }); #line 60 testRunner.Then("La liste des opérations trouvées est", ((string)(null)), table33, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void SendNewsletterToRegisteredUsers() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Send Newsletter To Registered Users", new string[] { "MustHaveEmailSetUpForSiteDumpToFolder", "MustHaveUser1Added", "MustHaveEmptyEmailFolder", "SiteMustRunInFullTrust" }); #line 10 this.ScenarioSetup(scenarioInfo); #line 11 testRunner.Given("I am on the site home page"); #line 12 testRunner.And("I have logged in as the host"); #line 13 testRunner.And("I am on the Admin Page Newsletters"); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table1.AddRow(new string[] { "FromAddress", "*****@*****.**" }); table1.AddRow(new string[] { "ReplyTo", "*****@*****.**" }); table1.AddRow(new string[] { "SubjectField", "New Newsletter Subject" }); table1.AddRow(new string[] { "ContentField", "This is the Newsletter" }); #line 14 testRunner.When("I fill in the newsletter form with the following information", ((string)(null)), table1); #line 20 testRunner.And("I check the role Registered Users on the newsletters page"); #line 21 testRunner.And("I click Send"); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table2.AddRow(new string[] { "From", "*****@*****.**" }); table2.AddRow(new string[] { "ReplyTo", "*****@*****.**" }); table2.AddRow(new string[] { "Subject", "New Newsletter Subject" }); table2.AddRow(new string[] { "Content", "This is the Newsletter" }); #line 22 testRunner.Then("The following newsletter should be sent to [email protected]", ((string)(null)), table2); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table3.AddRow(new string[] { "From", "*****@*****.**" }); table3.AddRow(new string[] { "ReplyTo", "*****@*****.**" }); table3.AddRow(new string[] { "Subject", "New Newsletter Subject" }); table3.AddRow(new string[] { "Content", "This is the Newsletter" }); #line 28 testRunner.And("The following newsletter should be sent to [email protected]", ((string)(null)), table3); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Label", "Value" }); table4.AddRow(new string[] { "From", "*****@*****.**" }); table4.AddRow(new string[] { "Recipients", "2" }); table4.AddRow(new string[] { "Messages", "2" }); table4.AddRow(new string[] { "Subject", "New Newsletter Subject" }); #line 34 testRunner.And("The following bulk email report should be sent to [email protected]", ((string)(null)), table4); #line hidden this.ScenarioCleanup(); }
public virtual void FeatureBackground() { #line 4 #line hidden #line 5 testRunner.Given("I logon to the editor", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 6 testRunner.Given("I set the content type to be \"SharedContent\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 7 testRunner.Given("I set up a data prefix for \"Title\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 10 testRunner.And("I Navigate to \"/Admin/Contents/ContentTypes/SharedContent/Create\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 12 testRunner.And("I capture the generated URI", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table76 = new TechTalk.SpecFlow.Table(new string[] { "Title", "Content" }); table76.AddRow(new string[] { "New Shared Content", "<p>Here it is</p>" }); #line 13 testRunner.And("I Enter the following form data for \"SharedContent\"", ((string)(null)), table76, "And "); #line hidden #line 16 testRunner.When("I publish the item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 17 testRunner.Then("the edit action completes succesfully", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 19 testRunner.Given("I search for the \"Title\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 20 testRunner.And("I select the first item that is found", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table77 = new TechTalk.SpecFlow.Table(new string[] { "Title", "Content" }); table77.AddRow(new string[] { "Update Shared Content", "<p>Here it is again</p>" }); #line 21 testRunner.And("I Enter the following form data for \"SharedContent\"", ((string)(null)), table77, "And "); #line hidden #line 24 testRunner.When("I save the draft item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 25 testRunner.Then("the save action completes succesfully", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 26 testRunner.Given("I check the number of events sent for this contentItem", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden }
public virtual void FeatureBackground() { #line 6 #line 7 testRunner.Given("Je suis connecté à l\'application avec l\'utilisateur Aurélien et le mot de passe 1" + "234", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 testRunner.And("J\'ai demandé la création d\'une période pour le mois 1 et l\'année 2001", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 9 testRunner.And("J\'ai demandé la création d\'une période pour le mois 3 et l\'année 2001", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] { "Periode", "Montant", "Libelle", "Binome", "Categorie" }); table27.AddRow(new string[] { "2001-01", "100", "Leclerc", "Marie", "Commun" }); table27.AddRow(new string[] { "2001-01", "18", "leroy merlin", "Aurélien", "Commun" }); table27.AddRow(new string[] { "2001-01", "25", "restaurant", "Aurélien", "Commun" }); table27.AddRow(new string[] { "2001-01", "50", "spectacle", "Marie", "Commun" }); table27.AddRow(new string[] { "2001-01", "100", "liquide", "Aurélien", "Avance" }); table27.AddRow(new string[] { "2001-03", "30", "cadeaux", "Aurélien", "Commun" }); table27.AddRow(new string[] { "2001-01", "1234.56", "bricolage", "Marie", "Commun" }); #line 10 testRunner.And("J\'ai ajouté des dépenses dans l\'application", ((string)(null)), table27, "And "); #line hidden TechTalk.SpecFlow.Table table28 = new TechTalk.SpecFlow.Table(new string[] { "Periode", "Montant", "Libelle", "Binome", "Categorie" }); table28.AddRow(new string[] { "2001-01", "10", "CAF", "Marie", "Commun" }); table28.AddRow(new string[] { "2001-01", "10", "Cadeau", "Aurélien", "Commun" }); table28.AddRow(new string[] { "2001-01", "20", "Noel", "Marie", "Commun" }); #line 19 testRunner.And("J\'ai ajouté des recettes dans l\'application", ((string)(null)), table28, "And "); #line hidden }
public virtual void _24_UpdatesWithValidationIssuesAreMadeToAnExistingDraftVersionOfAPublishedContentItem() { string[] tagsOfScenario = new string[] { "Editor", "NotPP", "NegativeTest" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("24. Updates with validation issues are made to an existing draft version of a pu" + "blished content item", null, new string[] { "Editor", "NotPP", "NegativeTest" }); #line 43 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 4 this.FeatureBackground(); #line hidden #line 44 testRunner.Given("I search for the \"Title\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 45 testRunner.And("I select the first item that is found", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table79 = new TechTalk.SpecFlow.Table(new string[] { "Title", "Content" }); table79.AddRow(new string[] { "", "<p>Here it is again</p>" }); #line 46 testRunner.And("I Enter the following form data for \"SharedContent\"", ((string)(null)), table79, "And "); #line hidden #line 49 testRunner.When("I save the draft item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 50 testRunner.Then("an \"EmptyField\" validation error is shown for \"Title\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 52 testRunner.And("the intial data is present in the PUBLISH Graph database", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 53 testRunner.And("the number of events sent for this content Item is 2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void ValidateTheAbilityToCreateNewContact() { string[] tagsOfScenario = new string[] { "mytag1" }; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Validate the ability to create new Contact", 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("I navigate on fileinvite signin page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { "Email Address", "Password" }); table2.AddRow(new string[] { "*****@*****.**", "Q@t45678123" }); #line 7 testRunner.And("I sign in using correct email address and password", ((string)(null)), table2, "And "); #line hidden #line 10 testRunner.When("I click Create Person button from Contacts form", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table3.AddRow(new string[] { "FirstName", "FirstJSA4E" }); table3.AddRow(new string[] { "LastName", "LastJSA4E" }); table3.AddRow(new string[] { "Company", "COMPANY JSA4E" }); table3.AddRow(new string[] { "EmailType", "Home" }); table3.AddRow(new string[] { "Email", "*****@*****.**" }); table3.AddRow(new string[] { "PhoneType", "Home" }); table3.AddRow(new string[] { "Mobile", "9985962461233322" }); table3.AddRow(new string[] { "AddressType", "Office" }); table3.AddRow(new string[] { "Address1", "Address Test 1" }); table3.AddRow(new string[] { "Address2", "Address Test 2" }); table3.AddRow(new string[] { "City", "Malolos" }); table3.AddRow(new string[] { "State", "Bulacan" }); table3.AddRow(new string[] { "Country", "Philippines" }); table3.AddRow(new string[] { "Zip Code", "3000" }); #line 11 testRunner.And("I enter Contact Details", ((string)(null)), table3, "And "); #line hidden #line 27 testRunner.And("I click Save Contact button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value" }); table4.AddRow(new string[] { "FirstName", "FirstJSA4E" }); table4.AddRow(new string[] { "LastName", "LastJSA4E" }); table4.AddRow(new string[] { "Company", "COMPANY JSA4E" }); table4.AddRow(new string[] { "Email", "*****@*****.**" }); table4.AddRow(new string[] { "Mobile", "9985962461233322" }); table4.AddRow(new string[] { "Address1", "Address Test 1" }); table4.AddRow(new string[] { "Address2", "Address Test 2" }); table4.AddRow(new string[] { "City", "Malolos" }); table4.AddRow(new string[] { "State", "Bulacan" }); table4.AddRow(new string[] { "Zip Code", "3000" }); #line 28 testRunner.Then("I am able to successfully create a new Contact with correct details", ((string)(null)), table4, "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void GetAccountsBasic() { string[] tagsOfScenario = ((string[])(null)); System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get accounts (Basic)", 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(); TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table4.AddRow(new string[] { "token_endpoint_auth_method", "tls_client_auth" }); table4.AddRow(new string[] { "response_types", "[token,code,id_token]" }); table4.AddRow(new string[] { "grant_types", "[client_credentials,authorization_code,implicit]" }); table4.AddRow(new string[] { "scope", "accounts" }); table4.AddRow(new string[] { "redirect_uris", "[https://localhost:8080/callback]" }); table4.AddRow(new string[] { "tls_client_auth_san_dns", "firstMtlsClient" }); table4.AddRow(new string[] { "id_token_signed_response_alg", "PS256" }); table4.AddRow(new string[] { "token_signed_response_alg", "PS256" }); #line 5 testRunner.When("execute HTTP POST JSON request \'https://localhost:8080/register\'", ((string)(null)), table4, "When "); #line hidden #line 16 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 17 testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table5.AddRow(new string[] { "X-Testing-ClientCert", "mtlsClient.crt" }); table5.AddRow(new string[] { "client_id", "$client_id$" }); table5.AddRow(new string[] { "scope", "accounts" }); table5.AddRow(new string[] { "grant_type", "client_credentials" }); #line 19 testRunner.And("execute HTTP POST request \'https://localhost:8080/mtls/token\'", ((string)(null)), table5, "And "); #line hidden #line 26 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 27 testRunner.And("extract parameter \'access_token\' from JSON body into \'accessToken\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table6.AddRow(new string[] { "Authorization", "Bearer $accessToken$" }); table6.AddRow(new string[] { "x-fapi-interaction-id", "guid" }); table6.AddRow(new string[] { "X-Testing-ClientCert", "mtlsClient.crt" }); table6.AddRow(new string[] { "data", "{ \"permissions\" : [ \"ReadAccountsBasic\" ] }" }); #line 29 testRunner.And("execute HTTP POST JSON request \'https://localhost:8080/v3.1/account-access-consen" + "ts\'", ((string)(null)), table6, "And "); #line hidden #line 36 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 37 testRunner.And("extract parameter \'Data.ConsentId\' from JSON body into \'consentId\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 39 testRunner.And("\'administrator\' confirm consent \'$consentId$\' for accounts \'22289\', with scopes \'" + "accounts\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table7.AddRow(new string[] { "X-Testing-ClientCert", "mtlsClient.crt" }); table7.AddRow(new string[] { "response_type", "id_token code" }); table7.AddRow(new string[] { "client_id", "$client_id$" }); table7.AddRow(new string[] { "state", "state" }); table7.AddRow(new string[] { "response_mode", "query" }); table7.AddRow(new string[] { "scope", "accounts" }); table7.AddRow(new string[] { "redirect_uri", "https://localhost:8080/callback" }); table7.AddRow(new string[] { "nonce", "nonce" }); table7.AddRow(new string[] { "state", "MTkCNSYlem" }); table7.AddRow(new string[] { "claims", "{ id_token: { openbanking_intent_id : { value: \"$consentId$\", essential: true } }" + " }" }); #line 41 testRunner.And("execute HTTP GET request \'https://localhost:8080/authorization\'", ((string)(null)), table7, "And "); #line hidden #line 54 testRunner.And("extract \'code\' from callback", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table8.AddRow(new string[] { "X-Testing-ClientCert", "mtlsClient.crt" }); table8.AddRow(new string[] { "client_id", "$client_id$" }); table8.AddRow(new string[] { "scope", "accounts" }); table8.AddRow(new string[] { "grant_type", "authorization_code" }); table8.AddRow(new string[] { "code", "$code$" }); table8.AddRow(new string[] { "redirect_uri", "https://localhost:8080/callback" }); #line 56 testRunner.And("execute HTTP POST request \'https://localhost:8080/mtls/token\'", ((string)(null)), table8, "And "); #line hidden #line 65 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 66 testRunner.And("extract parameter \'access_token\' from JSON body into \'accessToken\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { "Key", "Value" }); table9.AddRow(new string[] { "Authorization", "Bearer $accessToken$" }); table9.AddRow(new string[] { "X-Testing-ClientCert", "mtlsClient.crt" }); #line 68 testRunner.And("execute HTTP GET request \'https://localhost:8080/v3.1/accounts\'", ((string)(null)), table9, "And "); #line hidden #line 73 testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 75 testRunner.Then("HTTP status code equals to \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 76 testRunner.Then("JSON \'Data.Account[0].AccountId\'=\'22289\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 77 testRunner.Then("JSON \'Data.Account[0].AccountSubType\'=\'CurrentAccount\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 78 testRunner.Then("JSON doesn\'t exist \'Data.Account[0].Accounts[0].Identification\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 79 testRunner.Then("JSON doesn\'t exist \'Data.Account[0].Accounts[0].SecondaryIdentification\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } this.ScenarioCleanup(); }
public virtual void _26_AnExistingDraftVersionOfAPublishedContentItemIsEditedSoValidationErrorsExistsAndPublishingFails() { string[] tagsOfScenario = new string[] { "Editor", "NotPP", "NegativeTest" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("26. An existing draft version of a published content item is edited so validation" + " errors exists and publishing fails", null, new string[] { "Editor", "NotPP", "NegativeTest" }); #line 69 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 4 this.FeatureBackground(); #line hidden #line 70 testRunner.Given("I search for the \"Title\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 71 testRunner.And("I select the first item that is found", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table80 = new TechTalk.SpecFlow.Table(new string[] { "Title", "Content" }); table80.AddRow(new string[] { "", "<p>Here it is again</p>" }); #line 72 testRunner.And("I Enter the following form data for \"SharedContent\"", ((string)(null)), table80, "And "); #line hidden #line 75 testRunner.When("I publish the item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 76 testRunner.Then("an \"EmptyField\" validation error is shown for \"Title\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 78 testRunner.And("the intial data is present in the PUBLISH Graph database", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 79 testRunner.And("the number of events sent for this content Item is 2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void ExecuteCommandsWithStarNotation() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Execute commands with star notation", ((string[])(null))); #line 84 this.ScenarioSetup(scenarioInfo); #line 85 testRunner.Given("I have a command variable \"[[coms().command]]\" equal to \"bob\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 86 testRunner.And("I have a command variable \"[[coms().command]]\" equal to \"dora\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 87 testRunner.And("I have a command variable \"[[coms().command]]\" equal to \"bill\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 88 testRunner.And("I have a command variable \"[[results().res]]\" equal to \"res1\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 89 testRunner.And("I have a command result equal to \"[[results(*).res]]\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2408 = new TechTalk.SpecFlow.Table(new string[] { "script" }); table2408.AddRow(new string[] { "echo [[coms(*).command]]" }); #line 90 testRunner.And("I have these command scripts to execute in a single execution run", ((string)(null)), table2408, "And "); #line 93 testRunner.When("the command tool is executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 94 testRunner.Then("the execution has \"NO\" error", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table2409 = new TechTalk.SpecFlow.Table(new string[] { "Command" }); table2409.AddRow(new string[] { "String = String" }); table2409.AddRow(new string[] { "String = String" }); table2409.AddRow(new string[] { "String = String" }); #line 95 testRunner.And("the debug inputs as", ((string)(null)), table2409, "And "); #line hidden TechTalk.SpecFlow.Table table2410 = new TechTalk.SpecFlow.Table(new string[] { "" }); table2410.AddRow(new string[] { "[[results(1).res]] = bob" }); table2410.AddRow(new string[] { "[[results(2).res]] = dora" }); table2410.AddRow(new string[] { "[[results(3).res]] = bill" }); #line 100 testRunner.And("the debug output as", ((string)(null)), table2410, "And "); #line hidden this.ScenarioCleanup(); }
public virtual void _23_UpdatesAreMadeToAnExistingDraftVersionOfAPublishedContentItem() { string[] tagsOfScenario = new string[] { "Editor", "NotPP" }; TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("23. Updates are made to an existing draft version of a published content item", null, new string[] { "Editor", "NotPP" }); #line 29 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 4 this.FeatureBackground(); #line hidden #line 30 testRunner.Given("I search for the \"Title\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 31 testRunner.And("I select the first item that is found", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table78 = new TechTalk.SpecFlow.Table(new string[] { "Title", "Content" }); table78.AddRow(new string[] { "Newly updated Shared Content", "<p>Here it is again</p>" }); #line 32 testRunner.And("I Enter the following form data for \"SharedContent\"", ((string)(null)), table78, "And "); #line hidden #line 35 testRunner.When("I save the draft item", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 36 testRunner.Then("the save action completes succesfully", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 37 testRunner.And("an event of type \"Draft\" has been issued to notify consumers of the change", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 38 testRunner.Then("the data is present in the DRAFT Graph database", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 39 testRunner.And("the intial data is present in the PUBLISH Graph database", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 40 testRunner.And("the number of events sent for this content Item is 3", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden } this.ScenarioCleanup(); }
public virtual void BrowseBasedSearchHappyPath() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Browse based search happy path", new string[] { "SmokeTests"}); #line 26 this.ScenarioSetup(scenarioInfo); #line 27 testRunner.Given("I navigated to the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 28 testRunner.When("I choose CategoriesTab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Rule", "Value"}); table3.AddRow(new string[] { "Categories", "Exists", ""}); table3.AddRow(new string[] { "CategoryItemsCount", "Greater Than", "0"}); #line 29 testRunner.Then("I see", ((string)(null)), table3, "Then "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Rule", "Value"}); table4.AddRow(new string[] { "Text", "Equals", "Business, Administration and Law"}); #line 33 testRunner.When("I am on CategoryItems list item matching criteria", ((string)(null)), table4, "When "); #line 36 testRunner.And("I choose CategoryRadioButton", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 37 testRunner.And("I am on the ApprenticeshipSearchPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Value"}); table5.AddRow(new string[] { "Location", "London"}); table5.AddRow(new string[] { "WithInDistance", "40 miles"}); table5.AddRow(new string[] { "ApprenticeshipLevel", "All levels"}); #line 38 testRunner.And("I enter data", ((string)(null)), table5, "And "); #line 43 testRunner.And("I choose Browse", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 44 testRunner.Then("I am on the ApprenticeshipSearchResultPage page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { "Field", "Rule", "Value"}); table6.AddRow(new string[] { "SearchResultItemsCount", "Equals", "5"}); table6.AddRow(new string[] { "Categories", "Exists", ""}); table6.AddRow(new string[] { "CategoryItemsCount", "Greater Than", "0"}); #line 45 testRunner.Then("I see", ((string)(null)), table6, "Then "); #line hidden this.ScenarioCleanup(); }
public virtual void PlayingEntireGameWithShipsOnGrid() { TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Playing entire game with ships on grid", null, ((string[])(null))); #line 66 this.ScenarioInitialize(scenarioInfo); this.ScenarioStart(); #line 67 testRunner.Given("New Battleships game", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { "line", "column" }); table3.AddRow(new string[] { "1", "1" }); table3.AddRow(new string[] { "1", "2" }); table3.AddRow(new string[] { "1", "3" }); table3.AddRow(new string[] { "3", "4" }); table3.AddRow(new string[] { "4", "4" }); #line 68 testRunner.And("Ships in folowing grid points", ((string)(null)), table3, "And "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { "value" }); table4.AddRow(new string[] { "A1" }); table4.AddRow(new string[] { "A2" }); table4.AddRow(new string[] { "A3" }); table4.AddRow(new string[] { "C4" }); table4.AddRow(new string[] { "D4" }); #line 75 testRunner.And("I type grid coordinates", ((string)(null)), table4, "And "); #line 82 testRunner.When("Game play starts", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 83 testRunner.Then("Game is finished", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line 84 testRunner.And("Grid was displayed 6 times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); }