public virtual void EvaluatePermissionsBatchIncludingUnknownClaimPermissionId()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Evaluate permissions batch including unknown ClaimPermission id", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 34
            this.ScenarioInitialize(scenarioInfo);
#line hidden
            bool isScenarioIgnored = default(bool);
            bool isFeatureIgnored  = default(bool);
            if ((tagsOfScenario != null))
            {
                isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((this._featureTags != null))
            {
                isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((isScenarioIgnored || isFeatureIgnored))
            {
                testRunner.SkipScenario();
            }
            else
            {
                this.ScenarioStart();
#line 7
                this.FeatureBackground();
#line hidden
                TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] {
                    "ClaimsPermissionsId",
                    "ResourceUri",
                    "AccessType"
                });
                table17.AddRow(new string[] {
                    "id-none",
                    "foo",
                    "GET"
                });
#line 35
                testRunner.When("these permissions are evaluated via the getClaimPermissionsPermissionBatch endpoi" +
                                "nt", ((string)(null)), table17, "When ");
#line hidden
#line 38
                testRunner.Then("the HTTP status returned by the Claims service is 200", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
                TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] {
                    "ClaimsPermissionId",
                    "ResourceUri",
                    "AccessType",
                    "ResponseCode",
                    "Permission"
                });
                table18.AddRow(new string[] {
                    "id-none",
                    "foo",
                    "GET",
                    "404",
                    "deny"
                });
#line 39
                testRunner.And("the permissions batch response items are", ((string)(null)), table18, "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #2
0
        public virtual void ClickingMenuOptionFromTheMainMenuShouldOpenCorrespondingPage(string menuItem, string subMenuItem, string inputText, string searchResult, string title, 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("menuItem", menuItem);
            argumentsOfScenario.Add("subMenuItem", subMenuItem);
            argumentsOfScenario.Add("inputText", inputText);
            argumentsOfScenario.Add("searchResult", searchResult);
            argumentsOfScenario.Add("title", title);
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Clicking menu option from the main menu should open corresponding page", 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 open official SpecFlow web site", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 9
                testRunner.When(string.Format("I hover the \'{0}\' menu item from the main menu", menuItem), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 10
                testRunner.And(string.Format("I click \'{0}\' option from the main menu", subMenuItem), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 11
                testRunner.And("I click on searchField field", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 12
                testRunner.And(string.Format("I input \'{0}\' text to input field", inputText), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 13
                testRunner.And(string.Format("I click to \'{0}\' result", searchResult), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 14
                testRunner.Then(string.Format("Page with \'{0}\' title should be the same that search request", title), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void VerifyTheShoppingBasketItems()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verify the shopping basket items", 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 4
                this.FeatureBackground();
#line hidden
#line 9
                testRunner.When("I navigate to Amazon home page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 10
                testRunner.And("I perform search by \"Harry Potter and the Cursed Child\" in \"Books\" category", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 11
                testRunner.Then("I verify that the first search result is \"Harry Potter and the Cursed Child - Par" +
                                "ts One & Two\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 12
                testRunner.When("I navigate to book \"Harry Potter and the Cursed Child - Parts One and Two: The Of" +
                                "ficial Playscript of the Original West End Production\" details page and verify t" +
                                "he book title", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
                TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Price",
                    "Quantity"
                });
                table1.AddRow(new string[] {
                    "Paperback",
                    "£4.00",
                    "1"
                });
#line 13
                testRunner.Then("I verify the book details:", ((string)(null)), table1, "Then ");
#line hidden
#line 16
                testRunner.When("I add the book to the basket", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 17
                testRunner.Then("I verify that notification is shown with title: \"Added to Basket\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 19
                testRunner.Then("I stop the Chrome browser", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void DeleteClient()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Delete client", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 225
            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 table24 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table24.AddRow(new string[] {
                    "redirect_uris",
                    "[http://localhost]"
                });
                table24.AddRow(new string[] {
                    "response_types",
                    "[token]"
                });
                table24.AddRow(new string[] {
                    "grant_types",
                    "[implicit]"
                });
                table24.AddRow(new string[] {
                    "client_name",
                    "name"
                });
                table24.AddRow(new string[] {
                    "client_name#fr",
                    "nom"
                });
                table24.AddRow(new string[] {
                    "client_name#en",
                    "name"
                });
                table24.AddRow(new string[] {
                    "client_uri",
                    "http://localhost"
                });
                table24.AddRow(new string[] {
                    "client_uri#fr",
                    "http://localhost/fr"
                });
                table24.AddRow(new string[] {
                    "logo_uri",
                    "http://localhost/1.png"
                });
                table24.AddRow(new string[] {
                    "logo_uri#fr",
                    "http://localhost/fr/1.png"
                });
                table24.AddRow(new string[] {
                    "software_id",
                    "software"
                });
                table24.AddRow(new string[] {
                    "software_version",
                    "1.0"
                });
                table24.AddRow(new string[] {
                    "token_endpoint_auth_method",
                    "client_secret_basic"
                });
                table24.AddRow(new string[] {
                    "scope",
                    "scope1"
                });
                table24.AddRow(new string[] {
                    "contacts",
                    "[addr1,addr2]"
                });
                table24.AddRow(new string[] {
                    "tos_uri",
                    "http://localhost/tos"
                });
                table24.AddRow(new string[] {
                    "policy_uri",
                    "http://localhost/policy"
                });
                table24.AddRow(new string[] {
                    "jwks_uri",
                    "http://localhost/jwks"
                });
#line 226
                testRunner.When("execute HTTP POST JSON request \'https://localhost:8080/register\'", ((string)(null)), table24, "When ");
#line hidden
#line 247
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 248
                testRunner.And("extract parameter \'client_id\' from JSON body into \'clientId\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 249
                testRunner.And("extract parameter \'registration_access_token\' from JSON body into \'registrationAc" +
                               "cessToken\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table25.AddRow(new string[] {
                    "Authorization",
                    "Bearer $registrationAccessToken$"
                });
#line 251
                testRunner.And("execute HTTP DELETE request \'https://localhost:8080/register/$clientId$\'", ((string)(null)), table25, "And ");
#line hidden
                TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table26.AddRow(new string[] {
                    "Authorization",
                    "Bearer $registrationAccessToken$"
                });
#line 256
                testRunner.And("execute HTTP GET request \'https://localhost:8080/register/$clientId$\'", ((string)(null)), table26, "And ");
#line hidden
#line 260
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 262
                testRunner.Then("HTTP status code equals to \'401\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 263
                testRunner.Then("JSON \'error\'=\'invalid_token\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 264
                testRunner.Then("JSON \'error_description\'=\'access token is not correct\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void GivenThatDataWithFormat1AndFormat2AreIsSavedToTheServiceRetrieveShouldReturnFourItems()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Given that data with format1 and format2 are is saved to the service Retrieve sho" +
                                                                                             "uld return four items", null, tagsOfScenario, argumentsOfScenario);
#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();
#line 21
                testRunner.Given("I save format 1 tracker data from file \'TrackerDataFoo1.json\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 22
                testRunner.And("I save format 2 tracker data from file \'TrackerDataFoo2.json\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 23
                testRunner.When("I send a POST request to api/tracker/retrieve", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 24
                testRunner.Then("StatusCode should be 200", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 25
                testRunner.And("property type should be \'Succeed\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
                    "companyId:key",
                    "companyName",
                    "trackerId:key",
                    "trackerName",
                    "firstCrumbDtm:DateTime",
                    "lastCrumbDtm:DateTime",
                    "tempCount:Number",
                    "avgTemp:Number",
                    "humidityCount:Number",
                    "avgHumdity:Number"
                });
                table2.AddRow(new string[] {
                    "1",
                    "Foo1",
                    "1",
                    "ABC-100",
                    "2020-08-17T10:35:00",
                    "2020-08-17T10:45:00",
                    "3",
                    "23.15",
                    "3",
                    "81.5"
                });
                table2.AddRow(new string[] {
                    "1",
                    "Foo1",
                    "2",
                    "ABC-200",
                    "2020-08-18T10:35:00",
                    "2020-08-18T10:45:00",
                    "3",
                    "24.15",
                    "3",
                    "82.5"
                });
                table2.AddRow(new string[] {
                    "2",
                    "Foo2",
                    "1",
                    "XYZ-100",
                    "2020-08-18T10:35:00",
                    "2020-08-18T10:45:00",
                    "3",
                    "33.15",
                    "3",
                    "91.5"
                });
                table2.AddRow(new string[] {
                    "2",
                    "Foo2",
                    "2",
                    "XYZ-200",
                    "2020-08-19T10:35:00",
                    "2020-08-19T10:45:00",
                    "3",
                    "43.15",
                    "3",
                    "92.5"
                });
#line 26
                testRunner.And("property data should be the complex-element array", ((string)(null)), table2, "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #6
0
        public virtual void PatchNewPreferredContactMethod_MobileNumber()
        {
            string[] tagsOfScenario = new string[] {
                "contactdetails"
            };
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Patch new PreferredContactMethod - MobileNumber", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 146
            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 3
                this.FeatureBackground();
#line hidden
                TechTalk.SpecFlow.Table table231 = new TechTalk.SpecFlow.Table(new string[] {
                    "Field",
                    "Value"
                });
                table231.AddRow(new string[] {
                    "PreferredContactMethod",
                    "1"
                });
                table231.AddRow(new string[] {
                    "MobileNumber",
                    "07676 123456"
                });
                table231.AddRow(new string[] {
                    "HomeNumber",
                    "08654 123456"
                });
                table231.AddRow(new string[] {
                    "AlternativeNumber",
                    "07564656766"
                });
#line 147
                testRunner.Given("I post a Contact with the following details with unique email address:", ((string)(null)), table231, "Given ");
#line hidden
                TechTalk.SpecFlow.Table table232 = new TechTalk.SpecFlow.Table(new string[] {
                    "Field",
                    "Value"
                });
                table232.AddRow(new string[] {
                    "PreferredContactMethod",
                    "2"
                });
                table232.AddRow(new string[] {
                    "MobileNumber",
                    "07676 123456"
                });
#line 153
                testRunner.When("I patch the following Contact:", ((string)(null)), table232, "When ");
#line hidden
#line 157
                testRunner.Then("there should be a 200 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
                TechTalk.SpecFlow.Table table233 = new TechTalk.SpecFlow.Table(new string[] {
                    "Field",
                    "Value"
                });
                table233.AddRow(new string[] {
                    "PreferredContactMethod",
                    "2"
                });
                table233.AddRow(new string[] {
                    "MobileNumber",
                    "07676 123456"
                });
                table233.AddRow(new string[] {
                    "HomeNumber",
                    "08654 123456"
                });
                table233.AddRow(new string[] {
                    "AlternativeNumber",
                    "07564656766"
                });
#line 158
                testRunner.And("the response body should contain:", ((string)(null)), table233, "And ");
#line hidden
#line 164
                testRunner.Given("I wait for 5 Seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 165
                testRunner.Then("there should be a record in the dss-contacts table with ContactId", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void UpdateClient()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Update client", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 145
            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 table21 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table21.AddRow(new string[] {
                    "redirect_uris",
                    "[http://localhost]"
                });
                table21.AddRow(new string[] {
                    "response_types",
                    "[token]"
                });
                table21.AddRow(new string[] {
                    "grant_types",
                    "[implicit]"
                });
                table21.AddRow(new string[] {
                    "client_name",
                    "name"
                });
                table21.AddRow(new string[] {
                    "client_name#fr",
                    "nom"
                });
                table21.AddRow(new string[] {
                    "client_name#en",
                    "name"
                });
                table21.AddRow(new string[] {
                    "client_uri",
                    "http://localhost"
                });
                table21.AddRow(new string[] {
                    "client_uri#fr",
                    "http://localhost/fr"
                });
                table21.AddRow(new string[] {
                    "logo_uri",
                    "http://localhost/1.png"
                });
                table21.AddRow(new string[] {
                    "logo_uri#fr",
                    "http://localhost/fr/1.png"
                });
                table21.AddRow(new string[] {
                    "software_id",
                    "software"
                });
                table21.AddRow(new string[] {
                    "software_version",
                    "1.0"
                });
                table21.AddRow(new string[] {
                    "token_endpoint_auth_method",
                    "client_secret_basic"
                });
                table21.AddRow(new string[] {
                    "scope",
                    "scope1"
                });
                table21.AddRow(new string[] {
                    "contacts",
                    "[addr1,addr2]"
                });
                table21.AddRow(new string[] {
                    "tos_uri",
                    "http://localhost/tos"
                });
                table21.AddRow(new string[] {
                    "policy_uri",
                    "http://localhost/policy"
                });
                table21.AddRow(new string[] {
                    "jwks_uri",
                    "http://localhost/jwks"
                });
#line 146
                testRunner.When("execute HTTP POST JSON request \'https://localhost:8080/register\'", ((string)(null)), table21, "When ");
#line hidden
#line 167
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 168
                testRunner.And("extract parameter \'client_id\' from JSON body into \'clientId\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 169
                testRunner.And("extract parameter \'registration_access_token\' from JSON body into \'registrationAc" +
                               "cessToken\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table22.AddRow(new string[] {
                    "Authorization",
                    "Bearer $registrationAccessToken$"
                });
                table22.AddRow(new string[] {
                    "client_id",
                    "$clientId$"
                });
                table22.AddRow(new string[] {
                    "redirect_uris",
                    "[http://localhost]"
                });
                table22.AddRow(new string[] {
                    "response_types",
                    "[token]"
                });
                table22.AddRow(new string[] {
                    "grant_types",
                    "[implicit]"
                });
                table22.AddRow(new string[] {
                    "client_name",
                    "name"
                });
                table22.AddRow(new string[] {
                    "client_name#fr",
                    "nom"
                });
                table22.AddRow(new string[] {
                    "client_name#en",
                    "name"
                });
                table22.AddRow(new string[] {
                    "client_uri",
                    "http://clienturi"
                });
                table22.AddRow(new string[] {
                    "client_uri#fr",
                    "http://clienturi/fr"
                });
                table22.AddRow(new string[] {
                    "logo_uri",
                    "http://logouri/1.png"
                });
                table22.AddRow(new string[] {
                    "logo_uri#fr",
                    "http://logouri/fr/1.png"
                });
                table22.AddRow(new string[] {
                    "software_id",
                    "software"
                });
                table22.AddRow(new string[] {
                    "software_version",
                    "1.0"
                });
                table22.AddRow(new string[] {
                    "token_endpoint_auth_method",
                    "client_secret_basic"
                });
                table22.AddRow(new string[] {
                    "scope",
                    "scope1"
                });
                table22.AddRow(new string[] {
                    "contacts",
                    "[addr1,addr2]"
                });
                table22.AddRow(new string[] {
                    "tos_uri",
                    "http://tosuri/tos"
                });
                table22.AddRow(new string[] {
                    "policy_uri",
                    "http://policyuri/policy"
                });
                table22.AddRow(new string[] {
                    "jwks_uri",
                    "http://jwksuri/jwks"
                });
#line 171
                testRunner.And("execute HTTP PUT JSON request \'https://localhost:8080/register/$clientId$\'", ((string)(null)), table22, "And ");
#line hidden
                TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table23.AddRow(new string[] {
                    "Authorization",
                    "Bearer $registrationAccessToken$"
                });
#line 194
                testRunner.And("execute HTTP GET request \'https://localhost:8080/register/$clientId$\'", ((string)(null)), table23, "And ");
#line hidden
#line 198
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 200
                testRunner.Then("HTTP status code equals to \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 201
                testRunner.Then("JSON exists \'client_id\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 202
                testRunner.Then("JSON exists \'client_secret\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 203
                testRunner.Then("JSON exists \'client_id_issued_at\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 204
                testRunner.Then("JSON exists \'grant_types\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 205
                testRunner.Then("JSON exists \'redirect_uris\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 206
                testRunner.Then("JSON exists \'response_types\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 207
                testRunner.Then("JSON exists \'contacts\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 208
                testRunner.Then("JSON \'client_secret_expires_at\'=\'0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 209
                testRunner.Then("JSON \'token_endpoint_auth_method\'=\'client_secret_basic\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 210
                testRunner.Then("JSON \'client_uri\'=\'http://clienturi\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 211
                testRunner.Then("JSON \'client_uri#fr\'=\'http://clienturi/fr\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 212
                testRunner.Then("JSON \'logo_uri\'=\'http://logouri/1.png\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 213
                testRunner.Then("JSON \'logo_uri#fr\'=\'http://logouri/fr/1.png\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 214
                testRunner.Then("JSON \'scope\'=\'scope1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 215
                testRunner.Then("JSON \'tos_uri\'=\'http://tosuri/tos\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 216
                testRunner.Then("JSON \'policy_uri\'=\'http://policyuri/policy\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 217
                testRunner.Then("JSON \'jwks_uri\'=\'http://jwksuri/jwks\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 218
                testRunner.Then("JSON \'client_name\'=\'name\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 219
                testRunner.Then("JSON \'client_name#fr\'=\'nom\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 220
                testRunner.Then("JSON \'client_name#en\'=\'name\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 221
                testRunner.Then("JSON \'software_id\'=\'software\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 222
                testRunner.Then("JSON \'software_version\'=\'1.0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #8
0
        public virtual void DummyRegistration(string mobile, string password, string fName, string lName, string email, string iD_Type, string iD_No, string dOB_Day, string dOB_Month, string dOB_Year, string salary, string url, string[] exampleTags)
        {
            string[] tagsOfScenario = exampleTags;
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            argumentsOfScenario.Add("Mobile", mobile);
            argumentsOfScenario.Add("Password", password);
            argumentsOfScenario.Add("FName", fName);
            argumentsOfScenario.Add("LName", lName);
            argumentsOfScenario.Add("Email", email);
            argumentsOfScenario.Add("ID_Type", iD_Type);
            argumentsOfScenario.Add("ID_No", iD_No);
            argumentsOfScenario.Add("DOB_Day", dOB_Day);
            argumentsOfScenario.Add("DOB_Month", dOB_Month);
            argumentsOfScenario.Add("DOB_Year", dOB_Year);
            argumentsOfScenario.Add("Salary", salary);
            argumentsOfScenario.Add("Url", url);
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Dummy Registration", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 4
    this.ScenarioInitialize(scenarioInfo);
#line hidden
            bool isScenarioIgnored = default(bool);
            bool isFeatureIgnored = default(bool);
            if ((tagsOfScenario != null))
            {
                isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((this._featureTags != null))
            {
                isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((isScenarioIgnored || isFeatureIgnored))
            {
                testRunner.SkipScenario();
            }
            else
            {
                this.ScenarioStart();
#line 5
    testRunner.Given(string.Format("I navigate to Betway website {0}", url), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 6
    testRunner.Then("I validate the Betway home page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 7
    testRunner.When("I click the Sign Up button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 8
    testRunner.Then("I validate betway registration form is present", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 9
    testRunner.When(string.Format("I complete the first required registration fields {0},{1},{2},{3},{4}", mobile, password, fName, lName, email), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 10
    testRunner.And("I click the Next button on registration form", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 11
    testRunner.Then("I validate the second registration fields", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 12
    testRunner.Then(string.Format("I complete the second required registration fields {0},{1},{2},{3},{4},{5}", iD_Type, iD_No, dOB_Day, dOB_Month, dOB_Year, salary), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 13
    testRunner.Then("I close the browser", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void CreateNewEmployer()
        {
            string[] tagsOfScenario = new string[] {
                "some"
            };
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create new Employer", null, tagsOfScenario, argumentsOfScenario);
#line 4
            this.ScenarioInitialize(scenarioInfo);
#line hidden
            bool isScenarioIgnored = default(bool);
            bool isFeatureIgnored  = default(bool);
            if ((tagsOfScenario != null))
            {
                isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((this._featureTags != null))
            {
                isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((isScenarioIgnored || isFeatureIgnored))
            {
                testRunner.SkipScenario();
            }
            else
            {
                this.ScenarioStart();
#line 5
                testRunner.Given("I launch the application", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 6
                testRunner.And("I Click Login link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
                    "UserName",
                    "Password"
                });
                table3.AddRow(new string[] {
                    "admin",
                    "password"
                });
#line 7
                testRunner.And("I enter the following details", ((string)(null)), table3, "And ");
#line hidden
#line 10
                testRunner.And("I click login button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 11
                testRunner.When("I click on the Employee List link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 12
                testRunner.And("I click on the Create New button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
                    "Name",
                    "Salary",
                    "DurationWorked",
                    "Grade",
                    "Email"
                });
                table4.AddRow(new string[] {
                    "Aleksandra",
                    "400",
                    "100",
                    "10",
                    "*****@*****.**"
                });
#line 13
                testRunner.And("I fill the Employee Details", ((string)(null)), table4, "And ");
#line hidden
#line 16
                testRunner.And("I click on the Create Button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 17
                testRunner.And("I Searche \'Aleksandra\' Employer", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 18
                testRunner.And("I deleted the Employer \'Aleksandra\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 19
                testRunner.And("Confrm Delete button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #10
0
        public virtual void GeneratePopulatedTemplateHavingNestedObjectsInThePropertyBag()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Generate populated template having nested objects in the property bag", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 36
            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 table22 = new TechTalk.SpecFlow.Table(new string[] {
                    "body",
                    "title",
                    "contentType",
                    "actionUrl",
                    "image",
                    "notificationType"
                });
                table22.AddRow(new string[] {
                    "A new lead, {{lead.client.name}} ({{lead.client.number}}), was added by {{lead.ad" +
                    "dedBy}}",
                    "New lead added by {{lead.addedBy}}",
                    "application/vnd.marain.usernotifications.notificationtemplate.webpushtemplate.v1",
                    "https://www.google.co.uk/",
                    "Base+64xddfa",
                    "marain.NewLeadv2"
                });
#line 37
                testRunner.Given("I have created and stored a web push notification template", ((string)(null)), table22, "Given ");
#line hidden
#line 40
                testRunner.When("I send the generate template API request", @"      {
          ""notificationType"": ""marain.NewLeadv2"",
          ""timestamp"": ""2020-07-21T17:32:28Z"",
          ""userIds"": [
              ""1""
          ],
          ""correlationIds"": [""cid1"", ""cid2""],
          ""properties"": {
              ""lead"": {
			""addedBy"": ""TestUser123"",
			""client"": {
				""name"": ""Client123"",
				""number"": 5
			}
		},
          }
      }", ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 60
                testRunner.Then("the response status code should be \'OK\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 61
                testRunner.And(@"the response content should have a json property called 'webPushTemplate' with value '{ ""notificationType"": ""marain.NewLeadv2"", ""body"": ""A new lead, Client123 (5), was added by TestUser123"", ""title"": ""New lead added by TestUser123"", ""image"": ""Base+64xddfa"", ""actionUrl"": ""https://www.google.co.uk/"", ""contentType"": ""application/vnd.marain.usernotifications.notificationtemplate.webpushtemplate.v1"" }'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #11
0
        public virtual void GeneratePopulatedTemplate()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Generate populated template", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 6
            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 table19 = new TechTalk.SpecFlow.Table(new string[] {
                    "body",
                    "subject",
                    "contentType",
                    "image",
                    "notificationType"
                });
                table19.AddRow(new string[] {
                    "A new lead was added by {{leadAddedBy}}",
                    "A new lead added: {{leadAddedBy}}",
                    "application/vnd.marain.usernotifications.notificationtemplate.emailtemplate.v1",
                    "Base+64xddfa",
                    "marain.NewLeadv1"
                });
#line 7
                testRunner.Given("I have created and stored an email notification template", ((string)(null)), table19, "Given ");
#line hidden
                TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] {
                    "body",
                    "contentType",
                    "notificationType"
                });
                table20.AddRow(new string[] {
                    "New lead added by {{leadAddedBy}}",
                    "application/vnd.marain.usernotifications.notificationtemplate.smstemplate.v1",
                    "marain.NewLeadv1"
                });
#line 10
                testRunner.And("I have created and stored a sms notification template", ((string)(null)), table20, "And ");
#line hidden
                TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] {
                    "body",
                    "title",
                    "contentType",
                    "actionUrl",
                    "image",
                    "notificationType"
                });
                table21.AddRow(new string[] {
                    "A new lead was added by {{leadAddedBy}}",
                    "A new lead added: {{leadAddedBy}}",
                    "application/vnd.marain.usernotifications.notificationtemplate.webpushtemplate.v1",
                    "https://www.google.co.uk/",
                    "Base+64xddfa",
                    "marain.NewLeadv1"
                });
#line 13
                testRunner.And("I have created and stored a web push notification template", ((string)(null)), table21, "And ");
#line hidden
#line 16
                testRunner.When("I send the generate template API request", @"      {
          ""notificationType"": ""marain.NewLeadv1"",
          ""timestamp"": ""2020-07-21T17:32:28Z"",
          ""userIds"": [
              ""1""
          ],
          ""correlationIds"": [""cid1"", ""cid2""],
          ""properties"": {
              ""leadAddedBy"": ""TestUser123"",
          }
      }", ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 30
                testRunner.Then("the response status code should be \'OK\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 31
                testRunner.And("the response content should have a string property called \'notificationType\' with" +
                               " value \'marain.NewLeadv1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 32
                testRunner.And(@"the response content should have a json property called 'smsTemplate' with value '{ ""notificationType"": ""marain.NewLeadv1"", ""body"": ""New lead added by TestUser123"", ""contentType"": ""application/vnd.marain.usernotifications.notificationtemplate.smstemplate.v1"" }'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 33
                testRunner.And(@"the response content should have a json property called 'emailTemplate' with value '{ ""notificationType"": ""marain.NewLeadv1"", ""body"": ""A new lead was added by TestUser123"", ""subject"": ""A new lead added: TestUser123"", ""contentType"": ""application/vnd.marain.usernotifications.notificationtemplate.emailtemplate.v1"" }'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 34
                testRunner.And(@"the response content should have a json property called 'webPushTemplate' with value '{ ""notificationType"": ""marain.NewLeadv1"", ""body"": ""A new lead was added by TestUser123"", ""title"": ""A new lead added: TestUser123"", ""image"": ""Base+64xddfa"", ""actionUrl"": ""https://www.google.co.uk/"", ""contentType"": ""application/vnd.marain.usernotifications.notificationtemplate.webpushtemplate.v1"" }'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void RequestingAnItemBySlugAndIdWithAnEtagThatDoesNotMatchTheItemReturnsTheItem()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Requesting an item by slug and Id with an etag that does not match the item retur" +
                                                                                             "ns the item", null, tagsOfScenario, argumentsOfScenario);
#line 34
            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 table21 = new TechTalk.SpecFlow.Table(new string[] {
                    "Name",
                    "Id",
                    "Slug",
                    "Tags",
                    "CategoryPaths",
                    "Author.Name",
                    "Author.Id",
                    "Title",
                    "Description",
                    "Culture",
                    "Fragment"
                });
                table21.AddRow(new string[] {
                    "Expected",
                    "myid3",
                    "myslug3",
                    "First tag; Second tag",
                    "/standard/content;/books/hobbit;/books/lotr",
                    "Bilbo Baggins",
                    "{newguid}",
                    "This is the title",
                    "A description of the content",
                    "en-GB",
                    "This is the fragment of text"
                });
#line 35
                testRunner.Given("a content item has been created", ((string)(null)), table21, "Given ");
#line hidden
#line 38
                testRunner.When("I request the content summary with slug \'{Expected.Slug}\' and Id \'{Expected.Id}\' " +
                                "using a random etag", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 39
                testRunner.Then("the response should have a status of \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 40
                testRunner.And("the response body should contain a summary of the content item \'Expected\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 41
                testRunner.And("the ETag header should be set", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 42
                testRunner.And("the Cache header should be set to \'max-age=31536000\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 43
                testRunner.And("the response should contain a \'self\' link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 44
                testRunner.And("the response should contain a \'content\' link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 45
                testRunner.And("the response should contain a \'history\' link", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void RequestingAnItemBySlugAndIdWithAnEtagThatMatchesTheItemReturnsA304NotModified()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Requesting an item by slug and Id with an etag that matches the item returns a 30" +
                                                                                             "4 Not Modified", null, tagsOfScenario, argumentsOfScenario);
#line 25
            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 table20 = new TechTalk.SpecFlow.Table(new string[] {
                    "Name",
                    "Id",
                    "Slug",
                    "Tags",
                    "CategoryPaths",
                    "Author.Name",
                    "Author.Id",
                    "Title",
                    "Description",
                    "Culture",
                    "Fragment"
                });
                table20.AddRow(new string[] {
                    "Expected",
                    "myid2",
                    "myslug2",
                    "First tag; Second tag",
                    "/standard/content;/books/hobbit;/books/lotr",
                    "Bilbo Baggins",
                    "{newguid}",
                    "This is the title",
                    "A description of the content",
                    "en-GB",
                    "This is the fragment of text"
                });
#line 26
                testRunner.Given("a content item has been created", ((string)(null)), table20, "Given ");
#line hidden
#line 29
                testRunner.And("I have requested the content summary with slug \'{Expected.Slug}\' and Id \'{Expecte" +
                               "d.Id}\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 30
                testRunner.When("I request the content summary with slug \'{Expected.Slug}\' and Id \'{Expected.Id}\' " +
                                "using the etag returned by the previous request", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 31
                testRunner.Then("the response should have a status of \'304\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 32
                testRunner.And("there should be no response body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #14
0
        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 table24 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table24.AddRow(new string[] {
                    "SIG",
                    "1",
                    "RS256"
                });
#line 5
                testRunner.When("build JSON Web Keys, store JWKS into \'jwks\' and store the public keys into \'jwks_" +
                                "json\'", ((string)(null)), table24, "When ");
#line hidden
                TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table25.AddRow(new string[] {
                    "token_endpoint_auth_method",
                    "tls_client_auth"
                });
                table25.AddRow(new string[] {
                    "response_types",
                    "[token,code,id_token]"
                });
                table25.AddRow(new string[] {
                    "grant_types",
                    "[client_credentials]"
                });
                table25.AddRow(new string[] {
                    "scope",
                    "accounts"
                });
                table25.AddRow(new string[] {
                    "redirect_uris",
                    "[https://localhost:8080/callback]"
                });
                table25.AddRow(new string[] {
                    "tls_client_auth_san_dns",
                    "firstMtlsClient"
                });
                table25.AddRow(new string[] {
                    "request_object_signing_alg",
                    "RS256"
                });
                table25.AddRow(new string[] {
                    "jwks",
                    "$jwks_json$"
                });
#line 9
                testRunner.When("execute HTTP POST JSON request \'https://localhost:8080/register\'", ((string)(null)), table25, "When ");
#line hidden
#line 20
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 21
                testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table26.AddRow(new string[] {
                    "response_type",
                    "code id_token"
                });
                table26.AddRow(new string[] {
                    "client_id",
                    "$client_id$"
                });
                table26.AddRow(new string[] {
                    "state",
                    "state"
                });
                table26.AddRow(new string[] {
                    "response_mode",
                    "fragment"
                });
                table26.AddRow(new string[] {
                    "scope",
                    "accounts"
                });
                table26.AddRow(new string[] {
                    "redirect_uri",
                    "https://localhost:8080/callback"
                });
                table26.AddRow(new string[] {
                    "nonce",
                    "nonce"
                });
                table26.AddRow(new string[] {
                    "exp",
                    "$tomorrow$"
                });
                table26.AddRow(new string[] {
                    "aud",
                    "https://localhost:8080"
                });
                table26.AddRow(new string[] {
                    "claims",
                    "{ id_token: { openbanking_intent_id: { value: \"value\", essential : true } } }"
                });
#line 23
                testRunner.And("use \'1\' JWK from \'jwks\' to build JWS and store into \'request\'", ((string)(null)), table26, "And ");
#line hidden
                TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table27.AddRow(new string[] {
                    "response_type",
                    "code id_token"
                });
                table27.AddRow(new string[] {
                    "client_id",
                    "$client_id$"
                });
                table27.AddRow(new string[] {
                    "request",
                    "$request$"
                });
                table27.AddRow(new string[] {
                    "scope",
                    "accounts"
                });
#line 36
                testRunner.And("execute HTTP GET request \'https://localhost:8080/authorization\'", ((string)(null)), table27, "And ");
#line hidden
#line 43
                testRunner.And("extract query parameters into JSON", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 45
                testRunner.Then("JSON \'error\'=\'invalid_request\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 46
                testRunner.Then("JSON \'error_description\'=\'account access consent \'value\' doesn\'t exist\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #15
0
        public virtual void ErrorIsReturnedWhenRequestObjectContainsInvalidAudience()
        {
            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 request object contains invalid audience", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 179
            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 table40 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table40.AddRow(new string[] {
                    "SIG",
                    "1",
                    "RS256"
                });
#line 180
                testRunner.When("build JSON Web Keys, store JWKS into \'jwks\' and store the public keys into \'jwks_" +
                                "json\'", ((string)(null)), table40, "When ");
#line hidden
                TechTalk.SpecFlow.Table table41 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table41.AddRow(new string[] {
                    "token_endpoint_auth_method",
                    "tls_client_auth"
                });
                table41.AddRow(new string[] {
                    "response_types",
                    "[token,code,id_token]"
                });
                table41.AddRow(new string[] {
                    "grant_types",
                    "[client_credentials]"
                });
                table41.AddRow(new string[] {
                    "scope",
                    "accounts"
                });
                table41.AddRow(new string[] {
                    "request_object_signing_alg",
                    "RS256"
                });
                table41.AddRow(new string[] {
                    "jwks",
                    "$jwks_json$"
                });
                table41.AddRow(new string[] {
                    "client_id",
                    "invalid"
                });
                table41.AddRow(new string[] {
                    "redirect_uris",
                    "[https://localhost:8080/callback]"
                });
                table41.AddRow(new string[] {
                    "tls_client_auth_san_dns",
                    "firstMtlsClient"
                });
#line 184
                testRunner.And("execute HTTP POST JSON request \'https://localhost:8080/register\'", ((string)(null)), table41, "And ");
#line hidden
#line 196
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 197
                testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table42 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table42.AddRow(new string[] {
                    "response_type",
                    "id_token"
                });
                table42.AddRow(new string[] {
                    "client_id",
                    "$client_id$"
                });
                table42.AddRow(new string[] {
                    "state",
                    "state"
                });
                table42.AddRow(new string[] {
                    "response_mode",
                    "fragment"
                });
                table42.AddRow(new string[] {
                    "scope",
                    "accounts"
                });
                table42.AddRow(new string[] {
                    "redirect_uri",
                    "https://localhost:8080/callback"
                });
                table42.AddRow(new string[] {
                    "nonce",
                    "nonce"
                });
                table42.AddRow(new string[] {
                    "exp",
                    "$tomorrow$"
                });
                table42.AddRow(new string[] {
                    "aud",
                    "http://web.com"
                });
#line 199
                testRunner.And("use \'1\' JWK from \'jwks\' to build JWS and store into \'request\'", ((string)(null)), table42, "And ");
#line hidden
                TechTalk.SpecFlow.Table table43 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table43.AddRow(new string[] {
                    "response_type",
                    "id_token"
                });
                table43.AddRow(new string[] {
                    "client_id",
                    "$client_id$"
                });
                table43.AddRow(new string[] {
                    "request",
                    "$request$"
                });
                table43.AddRow(new string[] {
                    "scope",
                    "accounts"
                });
#line 211
                testRunner.And("execute HTTP GET request \'https://localhost:8080/authorization\'", ((string)(null)), table43, "And ");
#line hidden
#line 218
                testRunner.And("extract query parameters into JSON", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 220
                testRunner.Then("JSON \'error\'=\'invalid_request_object\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 221
                testRunner.Then("JSON \'error_description\'=\'request object has bad audience\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void CheckUserInformationAreReturnedWhenAccess_TokenIsPassedInTheHTTPBODY()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Check user information are returned when access_token is passed in the HTTP BODY", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 40
            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 table323 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table323.AddRow(new string[] {
                    "redirect_uris",
                    "[https://web.com]"
                });
                table323.AddRow(new string[] {
                    "scope",
                    "profile"
                });
#line 41
                testRunner.When("execute HTTP POST JSON request \'http://localhost/register\'", ((string)(null)), table323, "When ");
#line hidden
#line 46
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 47
                testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table324 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table324.AddRow(new string[] {
                    "SIG",
                    "1",
                    "ES256"
                });
#line 49
                testRunner.And("add JSON web key to Authorization Server and store into \'jwks\'", ((string)(null)), table324, "And ");
#line hidden
                TechTalk.SpecFlow.Table table325 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table325.AddRow(new string[] {
                    "sub",
                    "administrator"
                });
                table325.AddRow(new string[] {
                    "aud",
                    "$client_id$"
                });
                table325.AddRow(new string[] {
                    "scope",
                    "[openid,profile]"
                });
#line 53
                testRunner.And("use \'1\' JWK from \'jwks\' to build JWS and store into \'accesstoken\'", ((string)(null)), table325, "And ");
#line hidden
#line 59
                testRunner.And("add user consent : user=\'administrator\', scope=\'profile\', clientId=\'$client_id$\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table326 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table326.AddRow(new string[] {
                    "access_token",
                    "$accesstoken$"
                });
#line 61
                testRunner.And("execute HTTP POST request \'http://localhost/userinfo\'", ((string)(null)), table326, "And ");
#line hidden
#line 65
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 67
                testRunner.Then("HTTP status code equals to \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 68
                testRunner.Then("HTTP header \'Content-Type\' contains \'application/json\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 69
                testRunner.Then("JSON \'name\'=\'Thierry Habart\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #17
0
        public virtual void PatchEmailAddressWithInvalidData()
        {
            string[] tagsOfScenario = new string[] {
                "contactdetails"
            };
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Patch EmailAddress with invalid data", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 133
            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 3
                this.FeatureBackground();
#line hidden
                TechTalk.SpecFlow.Table table229 = new TechTalk.SpecFlow.Table(new string[] {
                    "Field",
                    "Value"
                });
                table229.AddRow(new string[] {
                    "PreferredContactMethod",
                    "1"
                });
                table229.AddRow(new string[] {
                    "MobileNumber",
                    "07676 123456"
                });
                table229.AddRow(new string[] {
                    "HomeNumber",
                    "08654 123456"
                });
                table229.AddRow(new string[] {
                    "AlternativeNumber",
                    "07564656766"
                });
#line 134
                testRunner.Given("I post a Contact with the following details with unique email address:", ((string)(null)), table229, "Given ");
#line hidden
                TechTalk.SpecFlow.Table table230 = new TechTalk.SpecFlow.Table(new string[] {
                    "Field",
                    "Value"
                });
                table230.AddRow(new string[] {
                    "EmailAddress",
                    "customeratcustomer.com"
                });
#line 140
                testRunner.When("I patch the following Contact:", ((string)(null)), table230, "When ");
#line hidden
#line 143
                testRunner.Then("there should be a 422 response", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void CheckUserInformationAreReturnedJWS()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Check user information are returned (JWS)", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 102
            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 table331 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table331.AddRow(new string[] {
                    "SIG",
                    "1",
                    "ES256"
                });
#line 103
                testRunner.When("add JSON web key to Authorization Server and store into \'jwks\'", ((string)(null)), table331, "When ");
#line hidden
                TechTalk.SpecFlow.Table table332 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table332.AddRow(new string[] {
                    "redirect_uris",
                    "[https://web.com]"
                });
                table332.AddRow(new string[] {
                    "scope",
                    "profile"
                });
                table332.AddRow(new string[] {
                    "userinfo_signed_response_alg",
                    "ES256"
                });
#line 107
                testRunner.And("execute HTTP POST JSON request \'http://localhost/register\'", ((string)(null)), table332, "And ");
#line hidden
#line 113
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 114
                testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table333 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table333.AddRow(new string[] {
                    "sub",
                    "administrator"
                });
                table333.AddRow(new string[] {
                    "aud",
                    "$client_id$"
                });
                table333.AddRow(new string[] {
                    "scope",
                    "[openid,profile]"
                });
#line 116
                testRunner.And("use \'1\' JWK from \'jwks\' to build JWS and store into \'accesstoken\'", ((string)(null)), table333, "And ");
#line hidden
#line 122
                testRunner.And("add user consent : user=\'administrator\', scope=\'profile\', clientId=\'$client_id$\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table334 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table334.AddRow(new string[] {
                    "Authorization",
                    "Bearer $accesstoken$"
                });
#line 124
                testRunner.And("execute HTTP GET request \'http://localhost/userinfo\'", ((string)(null)), table334, "And ");
#line hidden
#line 128
                testRunner.And("extract string from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 129
                testRunner.And("extract payload from JWS \'$strHttpBody$\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 130
                testRunner.Then("HTTP status code equals to \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 131
                testRunner.Then("HTTP header \'Content-Type\' contains \'application/jwt\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 132
                testRunner.Then("token contains \'iss\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 133
                testRunner.Then("token contains \'aud\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void CreateClient()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create client", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 21
            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 table16 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table16.AddRow(new string[] {
                    "redirect_uris",
                    "[http://localhost]"
                });
                table16.AddRow(new string[] {
                    "response_types",
                    "[token]"
                });
                table16.AddRow(new string[] {
                    "grant_types",
                    "[implicit]"
                });
                table16.AddRow(new string[] {
                    "client_name",
                    "name"
                });
                table16.AddRow(new string[] {
                    "client_name#fr",
                    "nom"
                });
                table16.AddRow(new string[] {
                    "client_name#en",
                    "name"
                });
                table16.AddRow(new string[] {
                    "client_uri",
                    "http://localhost"
                });
                table16.AddRow(new string[] {
                    "client_uri#fr",
                    "http://localhost/fr"
                });
                table16.AddRow(new string[] {
                    "logo_uri",
                    "http://localhost/1.png"
                });
                table16.AddRow(new string[] {
                    "logo_uri#fr",
                    "http://localhost/fr/1.png"
                });
                table16.AddRow(new string[] {
                    "software_id",
                    "software"
                });
                table16.AddRow(new string[] {
                    "software_version",
                    "1.0"
                });
                table16.AddRow(new string[] {
                    "token_endpoint_auth_method",
                    "client_secret_basic"
                });
                table16.AddRow(new string[] {
                    "scope",
                    "scope1"
                });
                table16.AddRow(new string[] {
                    "contacts",
                    "[addr1,addr2]"
                });
                table16.AddRow(new string[] {
                    "tos_uri",
                    "http://localhost/tos"
                });
                table16.AddRow(new string[] {
                    "policy_uri",
                    "http://localhost/policy"
                });
                table16.AddRow(new string[] {
                    "jwks_uri",
                    "http://localhost/jwks"
                });
#line 22
                testRunner.When("execute HTTP POST JSON request \'https://localhost:8080/register\'", ((string)(null)), table16, "When ");
#line hidden
#line 43
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 45
                testRunner.Then("HTTP status code equals to \'201\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 46
                testRunner.Then("JSON exists \'client_id\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 47
                testRunner.Then("JSON exists \'client_secret\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 48
                testRunner.Then("JSON exists \'client_id_issued_at\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 49
                testRunner.Then("JSON exists \'grant_types\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 50
                testRunner.Then("JSON exists \'redirect_uris\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 51
                testRunner.Then("JSON exists \'response_types\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 52
                testRunner.Then("JSON exists \'contacts\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 53
                testRunner.Then("JSON \'token_endpoint_auth_method\'=\'client_secret_basic\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 54
                testRunner.Then("JSON \'client_uri\'=\'http://localhost\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 55
                testRunner.Then("JSON \'client_uri#fr\'=\'http://localhost/fr\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 56
                testRunner.Then("JSON \'logo_uri\'=\'http://localhost/1.png\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 57
                testRunner.Then("JSON \'logo_uri#fr\'=\'http://localhost/fr/1.png\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 58
                testRunner.Then("JSON \'scope\'=\'scope1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 59
                testRunner.Then("JSON \'tos_uri\'=\'http://localhost/tos\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 60
                testRunner.Then("JSON \'policy_uri\'=\'http://localhost/policy\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 61
                testRunner.Then("JSON \'jwks_uri\'=\'http://localhost/jwks\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 62
                testRunner.Then("JSON \'client_name\'=\'name\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 63
                testRunner.Then("JSON \'client_name#fr\'=\'nom\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 64
                testRunner.Then("JSON \'client_name#en\'=\'name\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 65
                testRunner.Then("JSON \'software_id\'=\'software\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 66
                testRunner.Then("JSON \'software_version\'=\'1.0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void CheckUserInformationAreReturnedJWE()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Check user information are returned (JWE)", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 135
            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 table335 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table335.AddRow(new string[] {
                    "SIG",
                    "1",
                    "ES256"
                });
#line 136
                testRunner.When("add JSON web key to Authorization Server and store into \'jwks_sig\'", ((string)(null)), table335, "When ");
#line hidden
                TechTalk.SpecFlow.Table table336 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table336.AddRow(new string[] {
                    "ENC",
                    "2",
                    "RSA1_5"
                });
#line 140
                testRunner.And("build JSON Web Keys, store JWKS into \'jwks\' and store the public keys into \'jwks_" +
                               "json\'", ((string)(null)), table336, "And ");
#line hidden
                TechTalk.SpecFlow.Table table337 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table337.AddRow(new string[] {
                    "redirect_uris",
                    "[https://web.com]"
                });
                table337.AddRow(new string[] {
                    "scope",
                    "profile"
                });
                table337.AddRow(new string[] {
                    "userinfo_signed_response_alg",
                    "ES256"
                });
                table337.AddRow(new string[] {
                    "userinfo_encrypted_response_alg",
                    "RSA1_5"
                });
                table337.AddRow(new string[] {
                    "userinfo_encrypted_response_enc",
                    "A128CBC-HS256"
                });
                table337.AddRow(new string[] {
                    "jwks",
                    "$jwks_json$"
                });
#line 144
                testRunner.And("execute HTTP POST JSON request \'http://localhost/register\'", ((string)(null)), table337, "And ");
#line hidden
#line 153
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 154
                testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table338 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table338.AddRow(new string[] {
                    "sub",
                    "administrator"
                });
                table338.AddRow(new string[] {
                    "aud",
                    "$client_id$"
                });
                table338.AddRow(new string[] {
                    "scope",
                    "[openid,profile]"
                });
#line 156
                testRunner.And("use \'1\' JWK from \'jwks_sig\' to build JWS and store into \'accesstoken\'", ((string)(null)), table338, "And ");
#line hidden
#line 162
                testRunner.And("add user consent : user=\'administrator\', scope=\'profile\', clientId=\'$client_id$\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table339 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table339.AddRow(new string[] {
                    "Authorization",
                    "Bearer $accesstoken$"
                });
#line 164
                testRunner.And("execute HTTP GET request \'http://localhost/userinfo\'", ((string)(null)), table339, "And ");
#line hidden
#line 168
                testRunner.And("extract string from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 169
                testRunner.Then("HTTP status code equals to \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 170
                testRunner.Then("HTTP header \'Content-Type\' contains \'application/jwt\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void CreateMinimalistClient()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Create minimalist client", 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 table15 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table15.AddRow(new string[] {
                    "redirect_uris",
                    "[http://localhost]"
                });
#line 5
                testRunner.When("execute HTTP POST JSON request \'https://localhost:8080/register\'", ((string)(null)), table15, "When ");
#line hidden
#line 9
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 11
                testRunner.Then("HTTP status code equals to \'201\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 12
                testRunner.Then("JSON exists \'client_id\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 13
                testRunner.Then("JSON exists \'client_secret\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 14
                testRunner.Then("JSON exists \'client_id_issued_at\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 15
                testRunner.Then("JSON exists \'grant_types\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 16
                testRunner.Then("JSON exists \'redirect_uris\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 17
                testRunner.Then("JSON exists \'token_endpoint_auth_method\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 18
                testRunner.Then("JSON exists \'response_types\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 19
                testRunner.Then("JSON exists \'client_name\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void UseClaimsParameterToGetUserInformationFromUserInfoEndpoint()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Use claims parameter to get user information from UserInfo endpoint", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 172
            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 table340 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table340.AddRow(new string[] {
                    "SIG",
                    "1",
                    "ES256"
                });
#line 173
                testRunner.When("add JSON web key to Authorization Server and store into \'jwks\'", ((string)(null)), table340, "When ");
#line hidden
                TechTalk.SpecFlow.Table table341 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table341.AddRow(new string[] {
                    "redirect_uris",
                    "[https://web.com]"
                });
                table341.AddRow(new string[] {
                    "scope",
                    "email"
                });
#line 177
                testRunner.And("execute HTTP POST JSON request \'http://localhost/register\'", ((string)(null)), table341, "And ");
#line hidden
#line 182
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 183
                testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table342 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table342.AddRow(new string[] {
                    "sub",
                    "administrator"
                });
                table342.AddRow(new string[] {
                    "aud",
                    "$client_id$"
                });
                table342.AddRow(new string[] {
                    "claims",
                    "{ \"userinfo\": { name: { essential : true }, email: { essential : true } } }"
                });
#line 185
                testRunner.And("use \'1\' JWK from \'jwks\' to build JWS and store into \'accesstoken\'", ((string)(null)), table342, "And ");
#line hidden
#line 191
                testRunner.And("add user consent with claim : user=\'administrator\', scope=\'email\', clientId=\'$cli" +
                               "ent_id$\', claim=\'name email\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table343 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table343.AddRow(new string[] {
                    "Authorization",
                    "Bearer $accesstoken$"
                });
#line 193
                testRunner.And("execute HTTP GET request \'http://localhost/userinfo\'", ((string)(null)), table343, "And ");
#line hidden
#line 197
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 198
                testRunner.Then("HTTP status code equals to \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 199
                testRunner.Then("HTTP header \'Content-Type\' contains \'application/json\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 200
                testRunner.Then("JSON \'name\'=\'Thierry Habart\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 201
                testRunner.Then("JSON \'email\'=\'[email protected]\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #23
0
        public virtual void SetReadStateOfASubsetOfNotificationsForAUser()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Set read state of a subset of notifications for a user", null, tagsOfScenario, argumentsOfScenario);
#line 7
            this.ScenarioInitialize(scenarioInfo);
#line hidden
            bool isScenarioIgnored = default(bool);
            bool isFeatureIgnored  = default(bool);
            if ((tagsOfScenario != null))
            {
                isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((this._featureTags != null))
            {
                isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((isScenarioIgnored || isFeatureIgnored))
            {
                testRunner.SkipScenario();
            }
            else
            {
                this.ScenarioStart();
#line 8
                testRunner.Given("I have created and stored 25 notifications in the current transient tenant with t" +
                                 "imestamps at 30 second intervals for the user with Id \'user100\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 9
                testRunner.And("I have created and stored 5 notifications in the current transient tenant with ti" +
                               "mestamps at 30 second intervals for the user with Id \'user101\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 10
                testRunner.When("I send a management API request to batch update the read status of the first 10 s" +
                                "tored notifications for user \'user100\' to \'Read\' for the delivery channel with I" +
                                "d \'api\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 11
                testRunner.Then("the response status code should be \'Accepted\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 12
                testRunner.And("the response should contain a \'Location\' header", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 13
                testRunner.And("the long running operation whose Url is in the response Location header should no" +
                               "t have a \'status\' of \'NotStarted\' within 10 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 14
                testRunner.And("the long running operation whose Url is in the response Location header should ha" +
                               "ve a \'status\' of \'Succeeded\' within 30 seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 15
                testRunner.And("the first 10 notifications stored in the transient tenant for the user with Id \'u" +
                               "ser100\' have the read status \'Read\' for the delivery channel with Id \'api\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 16
                testRunner.And("the first 10 notifications stored in the transient tenant for the user with Id \'u" +
                               "ser100\' have the read status last updated set to within 60 seconds of now for th" +
                               "e delivery channel with Id \'api\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 17
                testRunner.And("the first 10 notifications stored in the transient tenant for the user with Id \'u" +
                               "ser100\' have the delivery status \'Unknown\' for the delivery channel with Id \'api" +
                               "\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 18
                testRunner.And("the first 10 notifications stored in the transient tenant for the user with Id \'u" +
                               "ser100\' have the delivery status last updated set to within 60 seconds of now fo" +
                               "r the delivery channel with Id \'api\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void UseOffline_AccessScopeToGetUserInformationFromUserInfoEndpoint()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Use offline_access scope to get user information from UserInfo endpoint", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 203
            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 table344 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table344.AddRow(new string[] {
                    "SIG",
                    "1",
                    "RS256"
                });
#line 204
                testRunner.When("add JSON web key to Authorization Server and store into \'jwks\'", ((string)(null)), table344, "When ");
#line hidden
                TechTalk.SpecFlow.Table table345 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table345.AddRow(new string[] {
                    "redirect_uris",
                    "[https://web.com]"
                });
                table345.AddRow(new string[] {
                    "grant_types",
                    "[authorization_code,refresh_token]"
                });
                table345.AddRow(new string[] {
                    "response_types",
                    "[code]"
                });
                table345.AddRow(new string[] {
                    "scope",
                    "offline_access"
                });
                table345.AddRow(new string[] {
                    "subject_type",
                    "public"
                });
                table345.AddRow(new string[] {
                    "token_endpoint_auth_method",
                    "client_secret_post"
                });
#line 208
                testRunner.When("execute HTTP POST JSON request \'http://localhost/register\'", ((string)(null)), table345, "When ");
#line hidden
#line 217
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 218
                testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 219
                testRunner.And("extract parameter \'client_secret\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 220
                testRunner.And("add user consent : user=\'administrator\', scope=\'offline_access\', clientId=\'$clien" +
                               "t_id$\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table346 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table346.AddRow(new string[] {
                    "response_type",
                    "code"
                });
                table346.AddRow(new string[] {
                    "client_id",
                    "$client_id$"
                });
                table346.AddRow(new string[] {
                    "state",
                    "state"
                });
                table346.AddRow(new string[] {
                    "response_mode",
                    "query"
                });
                table346.AddRow(new string[] {
                    "scope",
                    "openid offline_access"
                });
                table346.AddRow(new string[] {
                    "redirect_uri",
                    "https://web.com"
                });
                table346.AddRow(new string[] {
                    "ui_locales",
                    "en fr"
                });
                table346.AddRow(new string[] {
                    "nonce",
                    "nonce"
                });
#line 222
                testRunner.And("execute HTTP GET request \'http://localhost/authorization\'", ((string)(null)), table346, "And ");
#line hidden
#line 233
                testRunner.And("extract parameter \'refresh_token\' from redirect url", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table347 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table347.AddRow(new string[] {
                    "client_id",
                    "$client_id$"
                });
                table347.AddRow(new string[] {
                    "client_secret",
                    "$client_secret$"
                });
                table347.AddRow(new string[] {
                    "grant_type",
                    "refresh_token"
                });
                table347.AddRow(new string[] {
                    "refresh_token",
                    "$refresh_token$"
                });
#line 235
                testRunner.And("execute HTTP POST request \'http://localhost/token\'", ((string)(null)), table347, "And ");
#line hidden
#line 242
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 243
                testRunner.And("extract parameter \'access_token\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table348 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table348.AddRow(new string[] {
                    "Authorization",
                    "Bearer $access_token$"
                });
#line 245
                testRunner.And("execute HTTP GET request \'http://localhost/userinfo\'", ((string)(null)), table348, "And ");
#line hidden
#line 249
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 251
                testRunner.Then("HTTP status code equals to \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 252
                testRunner.Then("HTTP header \'Content-Type\' contains \'application/json\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 253
                testRunner.Then("JSON \'sub\'=\'administrator\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #25
0
        public virtual void ChangeOutputFolderInT4MoveGeneratedFilesToNewLocation()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Change output folder in T4 move generated files to new location", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 48
            this.ScenarioInitialize(scenarioInfo);
#line hidden
            bool isScenarioIgnored = default(bool);
            bool isFeatureIgnored  = default(bool);
            if ((tagsOfScenario != null))
            {
                isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((this._featureTags != null))
            {
                isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((isScenarioIgnored || isFeatureIgnored))
            {
                testRunner.SkipScenario();
            }
            else
            {
                this.ScenarioStart();
#line 6
                this.FeatureBackground();
#line hidden
#line 49
                testRunner.When("I run the script", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
                TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
                    "From",
                    "To"
                });
                table8.AddRow(new string[] {
                    "fileManager.CreateNewFile(itm + \".g.cs\",\"\",\"TestSubfolder\");",
                    "fileManager.CreateNewFile(itm + \".g.cs\",\"\",\"TestSubfolderNew\");"
                });
#line 50
                testRunner.And("I change the line", ((string)(null)), table8, "And ");
#line hidden
#line 53
                testRunner.And("I run the script again", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
                    "File",
                    "Folder"
                });
                table9.AddRow(new string[] {
                    "PersonDto.g.cs",
                    "TestSubfolderNew"
                });
                table9.AddRow(new string[] {
                    "OrderDto.g.cs",
                    "TestSubfolderNew"
                });
#line 54
                testRunner.Then("the following files are generated:", ((string)(null)), table9, "Then ");
#line hidden
                TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
                    "File",
                    "Folder"
                });
                table10.AddRow(new string[] {
                    "PersonDto.g.cs",
                    "TestSubfolder"
                });
                table10.AddRow(new string[] {
                    "OrderDto.g.cs",
                    "TestSubfolder"
                });
#line 58
                testRunner.And("the following files no longer exist:", ((string)(null)), table10, "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void CheckCorrectTypesAreReturnedByUserInfo()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Check correct types are returned by user info", 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 table319 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table319.AddRow(new string[] {
                    "redirect_uris",
                    "[https://web.com]"
                });
                table319.AddRow(new string[] {
                    "scope",
                    "profile email address"
                });
#line 5
                testRunner.When("execute HTTP POST JSON request \'http://localhost/register\'", ((string)(null)), table319, "When ");
#line hidden
#line 10
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 11
                testRunner.And("extract parameter \'client_id\' from JSON body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table320 = new TechTalk.SpecFlow.Table(new string[] {
                    "Type",
                    "Kid",
                    "AlgName"
                });
                table320.AddRow(new string[] {
                    "SIG",
                    "1",
                    "ES256"
                });
#line 13
                testRunner.And("add JSON web key to Authorization Server and store into \'jwks\'", ((string)(null)), table320, "And ");
#line hidden
                TechTalk.SpecFlow.Table table321 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table321.AddRow(new string[] {
                    "sub",
                    "administrator"
                });
                table321.AddRow(new string[] {
                    "aud",
                    "$client_id$"
                });
                table321.AddRow(new string[] {
                    "scope",
                    "[openid,profile,email,address]"
                });
#line 17
                testRunner.And("use \'1\' JWK from \'jwks\' to build JWS and store into \'accesstoken\'", ((string)(null)), table321, "And ");
#line hidden
#line 23
                testRunner.And("add user consent : user=\'administrator\', scope=\'profile email address\', clientId=" +
                               "\'$client_id$\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table322 = new TechTalk.SpecFlow.Table(new string[] {
                    "Key",
                    "Value"
                });
                table322.AddRow(new string[] {
                    "access_token",
                    "$accesstoken$"
                });
#line 25
                testRunner.And("execute HTTP POST request \'http://localhost/userinfo\'", ((string)(null)), table322, "And ");
#line hidden
#line 29
                testRunner.And("extract JSON from body", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 31
                testRunner.Then("HTTP status code equals to \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 32
                testRunner.Then("HTTP header \'Content-Type\' contains \'application/json\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 33
                testRunner.Then("JSON \'name\'=\'Thierry Habart\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 34
                testRunner.Then("JSON \'updated_at\'=1612361922", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 35
                testRunner.Then("JSON \'email_verified\'=true", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 36
                testRunner.Then("JSON \'address.region\'=\'CA\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 37
                testRunner.Then("JSON \'address.street_address\'=\'1234 Hollywood Blvd.\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void _2951_LearnerRecordShowsActiveIPWithNewProvider()
        {
            string[] tagsOfScenario = new string[] {
                "RegressionTest",
                "Provider"
            };
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("2951_Learner record shows active IP with new provider", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
#line 21
            this.ScenarioInitialize(scenarioInfo);
#line hidden
            bool isScenarioIgnored = default(bool);
            bool isFeatureIgnored  = default(bool);
            if ((tagsOfScenario != null))
            {
                isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((this._featureTags != null))
            {
                isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
            }
            if ((isScenarioIgnored || isFeatureIgnored))
            {
                testRunner.SkipScenario();
            }
            else
            {
                this.ScenarioStart();
#line 6
                this.FeatureBackground();
#line hidden
                TechTalk.SpecFlow.Table table34 = new TechTalk.SpecFlow.Table(new string[] {
                    "Uln"
                });
                table34.AddRow(new string[] {
                    "9900000011"
                });
#line 22
                testRunner.When("I search the learner record with Uln", ((string)(null)), table34, "When ");
#line hidden
                TechTalk.SpecFlow.Table table35 = new TechTalk.SpecFlow.Table(new string[] {
                    "Uln"
                });
                table35.AddRow(new string[] {
                    "9900000011"
                });
#line 25
                testRunner.Then("I should see IP record for Uln is active for new provider", ((string)(null)), table35, "Then ");
#line hidden
                TechTalk.SpecFlow.Table table36 = new TechTalk.SpecFlow.Table(new string[] {
                    "Uln"
                });
                table36.AddRow(new string[] {
                    "9900000011"
                });
#line 28
                testRunner.And("I have deleted LRS data from the database for the Uln", ((string)(null)), table36, "And ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void SaleTransactionWithInvalidMerchant()
        {
            string[] tagsOfScenario = ((string[])(null));
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Sale Transaction with Invalid Merchant", null, tagsOfScenario, argumentsOfScenario);
#line 106
            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
                TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] {
                    "DateTime",
                    "TransactionNumber",
                    "TransactionType",
                    "MerchantName",
                    "DeviceIdentifier",
                    "EstateName",
                    "OperatorName",
                    "TransactionAmount",
                    "CustomerAccountNumber",
                    "CustomerEmailAddress",
                    "ContractDescription",
                    "ProductName"
                });
                table19.AddRow(new string[] {
                    "Today",
                    "1",
                    "Sale",
                    "InvalidMerchant",
                    "123456780",
                    "Test Estate 1",
                    "Safaricom",
                    "1000.00",
                    "123456789",
                    "*****@*****.**",
                    "Safaricom Contract",
                    "Variable Topup"
                });
#line 108
                testRunner.When("I perform the following transactions", ((string)(null)), table19, "When ");
#line hidden
                TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] {
                    "EstateName",
                    "MerchantName",
                    "TransactionNumber",
                    "ResponseCode",
                    "ResponseMessage"
                });
                table20.AddRow(new string[] {
                    "Test Estate 1",
                    "InvalidMerchant",
                    "1",
                    "1002",
                    "Merchant Id [d59320fa-4c3e-4900-a999-483f6a10c69a] is not a valid merchant for es" +
                    "tate [Test Estate 1]"
                });
#line 112
                testRunner.Then("transaction response should contain the following information", ((string)(null)), table20, "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #29
0
        public virtual void StressTestBottomNavigationMenus()
        {
            string[] tagsOfScenario = new string[] {
                "sanity"
            };
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Stress test bottom navigation menus", null, tagsOfScenario, argumentsOfScenario);
#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 launch the application", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 7
                testRunner.And("I choose Sign in with Email", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
                TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                    "Username",
                    "Password"
                });
                table1.AddRow(new string[] {
                    "*****@*****.**",
                    "Parola1377"
                });
#line 8
                testRunner.When("I enter the username and password as", ((string)(null)), table1, "When ");
#line hidden
#line 11
                testRunner.And("I click the Login Button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 12
                testRunner.Then("I see the homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
#line 14
                testRunner.And("I click the Settings Tab", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 15
                testRunner.When("I keep changing the tabs many times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 16
                testRunner.Then("I go back to the Home Page", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
        public virtual void SaleTransactionWithNotEnoughCreditAvailable()
        {
            string[] tagsOfScenario = new string[] {
                "PRTest"
            };
            System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Sale Transaction with Not Enough Credit Available", null, tagsOfScenario, argumentsOfScenario);
#line 117
            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
                TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] {
                    "DateTime",
                    "TransactionNumber",
                    "TransactionType",
                    "MerchantName",
                    "DeviceIdentifier",
                    "EstateName",
                    "OperatorName",
                    "TransactionAmount",
                    "CustomerAccountNumber",
                    "CustomerEmailAddress",
                    "ContractDescription",
                    "ProductName"
                });
                table21.AddRow(new string[] {
                    "Today",
                    "1",
                    "Sale",
                    "Test Merchant 1",
                    "123456780",
                    "Test Estate 1",
                    "Safaricom",
                    "3000.00",
                    "123456789",
                    "*****@*****.**",
                    "Safaricom Contract",
                    "Variable Topup"
                });
#line 119
                testRunner.When("I perform the following transactions", ((string)(null)), table21, "When ");
#line hidden
                TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] {
                    "EstateName",
                    "MerchantName",
                    "TransactionNumber",
                    "ResponseCode",
                    "ResponseMessage"
                });
                table22.AddRow(new string[] {
                    "Test Estate 1",
                    "Test Merchant 1",
                    "1",
                    "1009",
                    "Merchant [Test Merchant 1] does not have enough credit available [2000.0] to perf" +
                    "orm transaction amount [3000.00]"
                });
#line 124
                testRunner.Then("transaction response should contain the following information", ((string)(null)), table22, "Then ");
#line hidden
            }
            this.ScenarioCleanup();
        }
Beispiel #31
0
        public string[] PredicateOf(string subjectUri)
        {
            string[] x = new string[] { "" };
            System.Collections.Specialized.OrderedDictionary test = new System.Collections.Specialized.OrderedDictionary();
            int i = 0;

            foreach (Triple t in GetTriplesWithSubject(this.CreateUriNode(new Uri(subjectUri))))
            {
                if (!test.Contains(t.Predicate.ToString()))
                {
                    test.Add(t.Predicate.ToString(),"");
                    x[i++] = t.Predicate.ToString();
                    Array.Resize<string>(ref x, i + 1);
                }
            }
            return x;
        }
Beispiel #32
0
 public System.Collections.Specialized.IOrderedDictionary ExtractValues(Control container)
 {
     var d = new System.Collections.Specialized.OrderedDictionary();
     d["Set"] = Set;
     d["CommandArgument"] = CommandArgument;
     d["IconCssClass"] = IconCssClass;
     return d;
     // throw new NotImplementedException();
 }