diff --git a/Directory.Packages.props b/Directory.Packages.props index 1c2b84fa..b6d361ad 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -9,15 +9,15 @@ - + - - + + @@ -62,15 +62,15 @@ - - + + - - - - - - + + + + + + diff --git a/TransactionProcessor.DatabaseTests/DatabaseTestFixture.cs b/TransactionProcessor.DatabaseTests/DatabaseTestFixture.cs index 56a5e2c1..4f827cfb 100644 --- a/TransactionProcessor.DatabaseTests/DatabaseTestFixture.cs +++ b/TransactionProcessor.DatabaseTests/DatabaseTestFixture.cs @@ -26,7 +26,7 @@ public DatabaseTestFixture() public async ValueTask InitializeAsync() { - await this.dockerHelper.StartContainersForScenarioRun("database-tests", DockerServices.SqlServer); + await this.dockerHelper.StartContainersForScenarioRun("database-tests", DockerServices.SqlServer, CancellationToken.None); } public async ValueTask DisposeAsync() @@ -52,7 +52,7 @@ private NlogLogger CreateLogger() public class TestDockerHelper : DockerHelper { - public override Task CreateSubscriptions() + public override Task CreateSubscriptions(CancellationToken cancellationToken) { return Task.CompletedTask; } diff --git a/TransactionProcessor.IntegrationTests/Common/DockerHelper.cs b/TransactionProcessor.IntegrationTests/Common/DockerHelper.cs index f443f205..1bba5dfe 100644 --- a/TransactionProcessor.IntegrationTests/Common/DockerHelper.cs +++ b/TransactionProcessor.IntegrationTests/Common/DockerHelper.cs @@ -134,13 +134,13 @@ public override ContainerBuilder SetupTestHostContainer() .WithName(this.TestHostContainerName) // similar to WithName() .WithImage(imageDetails.imageName) .WithEnvironment(environmentVariables) - .MountHostFolder(this.DockerPlatform, this.HostTraceFolder) + .MountHostFolder(this.HostTraceFolder) .WithPortBinding(DockerPorts.TestHostPort, true); return testHostContainer; } - public override async Task CreateSubscriptions(){ + public override async Task CreateSubscriptions(CancellationToken cancellationToken){ List<(String streamName, String groupName, Int32 maxRetries)> subscriptions = new(); subscriptions.AddRange(MessagingService.IntegrationTesting.Helpers.SubscriptionsHelper.GetSubscriptions()); subscriptions.AddRange(TransactionProcessor.IntegrationTesting.Helpers.SubscriptionsHelper.GetSubscriptions()); @@ -178,9 +178,9 @@ Object Deserialise_CamelCase(String arg, Type type) /// Starts the containers for scenario run. /// /// Name of the scenario. - public override async Task StartContainersForScenarioRun(String scenarioName, DockerServices dockerServices){ + public override async Task StartContainersForScenarioRun(String scenarioName, DockerServices dockerServices, CancellationToken cancellationToken){ this.HostTraceFolder = Path.Combine(Directory.GetCurrentDirectory(), "trace"); - await base.StartContainersForScenarioRun(scenarioName, dockerServices); + await base.StartContainersForScenarioRun(scenarioName, dockerServices, cancellationToken); // Setup the base address resolvers String SecurityServiceBaseAddressResolver(String api) => $"https://127.0.0.1:{this.SecurityServicePort}"; diff --git a/TransactionProcessor.IntegrationTests/Common/GenericSteps.cs b/TransactionProcessor.IntegrationTests/Common/GenericSteps.cs index d272fb76..b4058a87 100644 --- a/TransactionProcessor.IntegrationTests/Common/GenericSteps.cs +++ b/TransactionProcessor.IntegrationTests/Common/GenericSteps.cs @@ -2,6 +2,7 @@ namespace TransactionProcessor.IntegrationTests.Common { + using System.Threading; using System.Threading.Tasks; using global::Shared.IntegrationTesting; using global::Shared.Logger; @@ -53,7 +54,7 @@ public async Task StartSystem() this.TestingContext.Logger = logger; this.TestingContext.Logger.LogInformation("About to Start Containers for Scenario Run"); - await this.TestingContext.DockerHelper.StartContainersForScenarioRun(scenarioName, dockerServices).ConfigureAwait(false); + await this.TestingContext.DockerHelper.StartContainersForScenarioRun(scenarioName, dockerServices, cancellationToken: CancellationToken.None).ConfigureAwait(false); this.TestingContext.Logger.LogInformation("Containers for Scenario Run Started"); } diff --git a/TransactionProcessor.IntegrationTests/Features/Merchant.feature.cs b/TransactionProcessor.IntegrationTests/Features/Merchant.feature.cs index bfbcd5a7..3297482b 100644 --- a/TransactionProcessor.IntegrationTests/Features/Merchant.feature.cs +++ b/TransactionProcessor.IntegrationTests/Features/Merchant.feature.cs @@ -111,139 +111,139 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa { #line 4 #line hidden - global::Reqnroll.Table table1 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table61 = new global::Reqnroll.Table(new string[] { "Role Name"}); - table1.AddRow(new string[] { + table61.AddRow(new string[] { "Estate"}); - table1.AddRow(new string[] { + table61.AddRow(new string[] { "Merchant"}); #line 6 - await testRunner.GivenAsync("the following security roles exist", ((string)(null)), table1, "Given "); + await testRunner.GivenAsync("the following security roles exist", ((string)(null)), table61, "Given "); #line hidden - global::Reqnroll.Table table2 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table62 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table2.AddRow(new string[] { + table62.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST Scope", "A scope for Estate Managememt REST"}); #line 11 - await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table2, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table62, "Given "); #line hidden - global::Reqnroll.Table table3 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table63 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table3.AddRow(new string[] { + table63.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "merchantId, estateId, role"}); #line 15 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table3, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table63, "Given "); #line hidden - global::Reqnroll.Table table4 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table64 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table4.AddRow(new string[] { + table64.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); - table4.AddRow(new string[] { + table64.AddRow(new string[] { "estateClient", "Estate Client", "Secret1", "transactionProcessor", "password"}); #line 19 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table4, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table64, "Given "); #line hidden - global::Reqnroll.Table table5 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table65 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table5.AddRow(new string[] { + table65.AddRow(new string[] { "serviceClient"}); #line 24 - await testRunner.GivenAsync("I have a token to access the estate management resource", ((string)(null)), table5, "Given "); + await testRunner.GivenAsync("I have a token to access the estate management resource", ((string)(null)), table65, "Given "); #line hidden - global::Reqnroll.Table table6 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table66 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table6.AddRow(new string[] { + table66.AddRow(new string[] { "Test Estate 1"}); - table6.AddRow(new string[] { + table66.AddRow(new string[] { "Test Estate 2"}); #line 28 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table6, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table66, "Given "); #line hidden - global::Reqnroll.Table table7 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table67 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table7.AddRow(new string[] { + table67.AddRow(new string[] { "Test Estate 1", "Test Operator 1", "False", "False"}); - table7.AddRow(new string[] { + table67.AddRow(new string[] { "Test Estate 2", "Test Operator 1", "False", "False"}); #line 33 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table7, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table67, "Given "); #line hidden - global::Reqnroll.Table table8 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table68 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table8.AddRow(new string[] { + table68.AddRow(new string[] { "Test Estate 1", "Test Operator 1"}); - table8.AddRow(new string[] { + table68.AddRow(new string[] { "Test Estate 2", "Test Operator 1"}); #line 38 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table8, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table68, "And "); #line hidden - global::Reqnroll.Table table9 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table69 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table9.AddRow(new string[] { + table69.AddRow(new string[] { "Test Estate 1", "Test Operator 1", "Safaricom Contract"}); #line 43 - await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table9, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table69, "Given "); #line hidden - global::Reqnroll.Table table10 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table70 = new global::Reqnroll.Table(new string[] { "EmailAddress", "Password", "GivenName", "FamilyName", "EstateName"}); - table10.AddRow(new string[] { + table70.AddRow(new string[] { "estateuser1@testestate1.co.uk", "123456", "TestEstate", "User1", "Test Estate 1"}); - table10.AddRow(new string[] { + table70.AddRow(new string[] { "estateuser1@testestate2.co.uk", "123456", "TestEstate", "User1", "Test Estate 2"}); #line 47 - await testRunner.GivenAsync("I have created the following security users", ((string)(null)), table10, "Given "); + await testRunner.GivenAsync("I have created the following security users", ((string)(null)), table70, "Given "); #line hidden } @@ -306,7 +306,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table11 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table71 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -317,7 +317,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "EmailAddress", "EstateName", "SettlementSchedule"}); - table11.AddRow(new string[] { + table71.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -329,9 +329,9 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Estate 1", "Weekly"}); #line 56 - await testRunner.WhenAsync("I create the following merchants", ((string)(null)), table11, "When "); + await testRunner.WhenAsync("I create the following merchants", ((string)(null)), table71, "When "); #line hidden - global::Reqnroll.Table table12 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table72 = new global::Reqnroll.Table(new string[] { "MerchantName", "MondayOpening", "MondayClosing", @@ -348,7 +348,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "SundayOpening", "SundayClosing", "EstateName"}); - table12.AddRow(new string[] { + table72.AddRow(new string[] { "Test Merchant 1", "0800", "1700", @@ -366,52 +366,52 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "1700", "Test Estate 1"}); #line 59 - await testRunner.WhenAsync("I set the following opening hours", ((string)(null)), table12, "When "); + await testRunner.WhenAsync("I set the following opening hours", ((string)(null)), table72, "When "); #line hidden - global::Reqnroll.Table table13 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table73 = new global::Reqnroll.Table(new string[] { "MerchantName", "EstateName", "Year", "Month", "ClosedDays"}); - table13.AddRow(new string[] { + table73.AddRow(new string[] { "Test Merchant 1", "Test Estate 1", "2026", "1", "1"}); - table13.AddRow(new string[] { + table73.AddRow(new string[] { "Test Merchant 1", "Test Estate 1", "2026", "12", "25,26"}); #line 62 - await testRunner.WhenAsync("I create the following merchant schedules", ((string)(null)), table13, "When "); + await testRunner.WhenAsync("I create the following merchant schedules", ((string)(null)), table73, "When "); #line hidden - global::Reqnroll.Table table14 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table74 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table14.AddRow(new string[] { + table74.AddRow(new string[] { "Test Operator 1", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); #line 66 - await testRunner.WhenAsync("I assign the following operator to the merchants", ((string)(null)), table14, "When "); + await testRunner.WhenAsync("I assign the following operator to the merchants", ((string)(null)), table74, "When "); #line hidden - global::Reqnroll.Table table15 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table75 = new global::Reqnroll.Table(new string[] { "EmailAddress", "Password", "GivenName", "FamilyName", "MerchantName", "EstateName"}); - table15.AddRow(new string[] { + table75.AddRow(new string[] { "merchantuser1@testmerchant1.co.uk", "123456", "TestMerchant", @@ -419,159 +419,159 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Merchant 1", "Test Estate 1"}); #line 69 - await testRunner.WhenAsync("I create the following security users", ((string)(null)), table15, "When "); + await testRunner.WhenAsync("I create the following security users", ((string)(null)), table75, "When "); #line hidden - global::Reqnroll.Table table16 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table76 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table16.AddRow(new string[] { + table76.AddRow(new string[] { "TestDevice1", "Test Merchant 1", "Test Estate 1"}); #line 72 - await testRunner.WhenAsync("I add the following devices to the merchant", ((string)(null)), table16, "When "); + await testRunner.WhenAsync("I add the following devices to the merchant", ((string)(null)), table76, "When "); #line hidden - global::Reqnroll.Table table17 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table77 = new global::Reqnroll.Table(new string[] { "OriginalDeviceIdentifier", "NewDeviceIdentifier", "MerchantName", "EstateName"}); - table17.AddRow(new string[] { + table77.AddRow(new string[] { "TestDevice1", "TestDevice2", "Test Merchant 1", "Test Estate 1"}); #line 75 - await testRunner.WhenAsync("I swap the merchant device the device is swapped", ((string)(null)), table17, "When "); + await testRunner.WhenAsync("I swap the merchant device the device is swapped", ((string)(null)), table77, "When "); #line hidden - global::Reqnroll.Table table18 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table78 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table18.AddRow(new string[] { + table78.AddRow(new string[] { "Deposit1", "500.00", "LastMonth", "Test Merchant 1", "Test Estate 1"}); - table18.AddRow(new string[] { + table78.AddRow(new string[] { "Deposit2", "1000.00", "LastWeek", "Test Merchant 1", "Test Estate 1"}); - table18.AddRow(new string[] { + table78.AddRow(new string[] { "Deposit3", "1000.00", "Yesterday", "Test Merchant 1", "Test Estate 1"}); - table18.AddRow(new string[] { + table78.AddRow(new string[] { "Deposit4", "400.00", "Today", "Test Merchant 1", "Test Estate 1"}); #line 78 - await testRunner.WhenAsync("I make the following manual merchant deposits", ((string)(null)), table18, "When "); + await testRunner.WhenAsync("I make the following manual merchant deposits", ((string)(null)), table78, "When "); #line hidden - global::Reqnroll.Table table19 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table79 = new global::Reqnroll.Table(new string[] { "Amount", "DateTime", "MerchantName", "EstateName"}); - table19.AddRow(new string[] { + table79.AddRow(new string[] { "400.00", "LastMonth", "Test Merchant 1", "Test Estate 1"}); #line 85 - await testRunner.WhenAsync("I make the following merchant withdrawals", ((string)(null)), table19, "When "); + await testRunner.WhenAsync("I make the following merchant withdrawals", ((string)(null)), table79, "When "); #line hidden - global::Reqnroll.Table table20 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table80 = new global::Reqnroll.Table(new string[] { "Amount", "DateTime", "MerchantName", "EstateName"}); - table20.AddRow(new string[] { + table80.AddRow(new string[] { "500.00", "LastMonth", "Test Merchant 1", "Test Estate 1"}); - table20.AddRow(new string[] { + table80.AddRow(new string[] { "1000.00", "LastWeek", "Test Merchant 1", "Test Estate 1"}); - table20.AddRow(new string[] { + table80.AddRow(new string[] { "1000.00", "Yesterday", "Test Merchant 1", "Test Estate 1"}); - table20.AddRow(new string[] { + table80.AddRow(new string[] { "400.00", "Today", "Test Merchant 1", "Test Estate 1"}); #line 89 - await testRunner.WhenAsync("I make the following automatic merchant deposits", ((string)(null)), table20, "When "); + await testRunner.WhenAsync("I make the following automatic merchant deposits", ((string)(null)), table80, "When "); #line hidden - global::Reqnroll.Table table21 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table81 = new global::Reqnroll.Table(new string[] { "Amount", "DateTime", "MerchantName", "EstateName"}); - table21.AddRow(new string[] { + table81.AddRow(new string[] { "0", "LastMonth", "Test Merchant 1", "Test Estate 1"}); #line 96 - await testRunner.WhenAsync("I make the following manual merchant deposits the deposit is rejected", ((string)(null)), table21, "When "); + await testRunner.WhenAsync("I make the following manual merchant deposits the deposit is rejected", ((string)(null)), table81, "When "); #line hidden - global::Reqnroll.Table table22 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table82 = new global::Reqnroll.Table(new string[] { "Amount", "DateTime", "MerchantName", "EstateName"}); - table22.AddRow(new string[] { + table82.AddRow(new string[] { "-100", "LastMonth", "Test Merchant 1", "Test Estate 1"}); #line 100 - await testRunner.WhenAsync("I make the following manual merchant deposits the deposit is rejected", ((string)(null)), table22, "When "); + await testRunner.WhenAsync("I make the following manual merchant deposits the deposit is rejected", ((string)(null)), table82, "When "); #line hidden - global::Reqnroll.Table table23 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table83 = new global::Reqnroll.Table(new string[] { "Amount", "DateTime", "MerchantName", "EstateName"}); - table23.AddRow(new string[] { + table83.AddRow(new string[] { "0", "LastMonth", "Test Merchant 1", "Test Estate 1"}); #line 104 - await testRunner.WhenAsync("I make the following automatic merchant deposits the deposit is rejected", ((string)(null)), table23, "When "); + await testRunner.WhenAsync("I make the following automatic merchant deposits the deposit is rejected", ((string)(null)), table83, "When "); #line hidden - global::Reqnroll.Table table24 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table84 = new global::Reqnroll.Table(new string[] { "Amount", "DateTime", "MerchantName", "EstateName"}); - table24.AddRow(new string[] { + table84.AddRow(new string[] { "-100", "LastMonth", "Test Merchant 1", "Test Estate 1"}); #line 108 - await testRunner.WhenAsync("I make the following automatic merchant deposits the deposit is rejected", ((string)(null)), table24, "When "); + await testRunner.WhenAsync("I make the following automatic merchant deposits the deposit is rejected", ((string)(null)), table84, "When "); #line hidden - global::Reqnroll.Table table25 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table85 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -581,7 +581,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "ContactName", "EmailAddress", "EstateName"}); - table25.AddRow(new string[] { + table85.AddRow(new string[] { "Test Merchant 2", "Address Line 1", "TestTown", @@ -591,7 +591,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Contact 1", "testcontact1@merchant1.co.uk", "Test Estate 1"}); - table25.AddRow(new string[] { + table85.AddRow(new string[] { "Test Merchant 3", "Address Line 1", "TestTown", @@ -601,7 +601,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Contact 1", "testcontact1@merchant1.co.uk", "Test Estate 1"}); - table25.AddRow(new string[] { + table85.AddRow(new string[] { "Test Merchant 4", "Address Line 1", "TestTown", @@ -612,26 +612,26 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "testcontact1@merchant1.co.uk", "Test Estate 1"}); #line 112 - await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table25, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table85, "Given "); #line hidden - global::Reqnroll.Table table26 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table86 = new global::Reqnroll.Table(new string[] { "MerchantName", "EstateName", "SettlementSchedule"}); - table26.AddRow(new string[] { + table86.AddRow(new string[] { "Test Merchant 2", "Test Estate 1", "Immediate"}); - table26.AddRow(new string[] { + table86.AddRow(new string[] { "Test Merchant 3", "Test Estate 1", "Weekly"}); - table26.AddRow(new string[] { + table86.AddRow(new string[] { "Test Merchant 4", "Test Estate 1", "Monthly"}); #line 118 - await testRunner.WhenAsync("I set the merchants settlement schedule", ((string)(null)), table26, "When "); + await testRunner.WhenAsync("I set the merchants settlement schedule", ((string)(null)), table86, "When "); #line hidden } await this.ScenarioCleanupAsync(); @@ -662,7 +662,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table27 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table87 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -672,7 +672,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "ContactName", "EmailAddress", "EstateName"}); - table27.AddRow(new string[] { + table87.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -682,7 +682,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Contact 1", "testcontact1@merchant1.co.uk", "Test Estate 1"}); - table27.AddRow(new string[] { + table87.AddRow(new string[] { "Test Merchant 2", "Address Line 1", "TestTown", @@ -692,7 +692,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Contact 1", "testcontact1@merchant2.co.uk", "Test Estate 1"}); - table27.AddRow(new string[] { + table87.AddRow(new string[] { "Test Merchant 3", "Address Line 1", "TestTown", @@ -702,7 +702,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Contact 1", "testcontact1@merchant3.co.uk", "Test Estate 1"}); - table27.AddRow(new string[] { + table87.AddRow(new string[] { "Test Merchant 4", "Address Line 1", "TestTown", @@ -712,7 +712,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Contact 1", "testcontact1@merchant4.co.uk", "Test Estate 2"}); - table27.AddRow(new string[] { + table87.AddRow(new string[] { "Test Merchant 5", "Address Line 1", "TestTown", @@ -723,110 +723,110 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "testcontact1@merchant5.co.uk", "Test Estate 2"}); #line 126 - await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table27, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table87, "Given "); #line hidden - global::Reqnroll.Table table28 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table88 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table28.AddRow(new string[] { + table88.AddRow(new string[] { "Test Operator 1", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table28.AddRow(new string[] { + table88.AddRow(new string[] { "Test Operator 1", "Test Merchant 2", "00000001", "10000001", "Test Estate 1"}); - table28.AddRow(new string[] { + table88.AddRow(new string[] { "Test Operator 1", "Test Merchant 3", "00000001", "10000001", "Test Estate 1"}); - table28.AddRow(new string[] { + table88.AddRow(new string[] { "Test Operator 1", "Test Merchant 4", "00000001", "10000001", "Test Estate 2"}); - table28.AddRow(new string[] { + table88.AddRow(new string[] { "Test Operator 1", "Test Merchant 5", "00000001", "10000001", "Test Estate 2"}); #line 134 - await testRunner.WhenAsync("I assign the following operator to the merchants", ((string)(null)), table28, "When "); + await testRunner.WhenAsync("I assign the following operator to the merchants", ((string)(null)), table88, "When "); #line hidden - global::Reqnroll.Table table29 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table89 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table29.AddRow(new string[] { + table89.AddRow(new string[] { "TestDevice1", "Test Merchant 1", "Test Estate 1"}); - table29.AddRow(new string[] { + table89.AddRow(new string[] { "TestDevice2", "Test Merchant 2", "Test Estate 1"}); - table29.AddRow(new string[] { + table89.AddRow(new string[] { "TestDevice3", "Test Merchant 3", "Test Estate 1"}); - table29.AddRow(new string[] { + table89.AddRow(new string[] { "TestDevice4", "Test Merchant 4", "Test Estate 2"}); - table29.AddRow(new string[] { + table89.AddRow(new string[] { "TestDevice5", "Test Merchant 5", "Test Estate 2"}); #line 142 - await testRunner.WhenAsync("I add the following devices to the merchant", ((string)(null)), table29, "When "); + await testRunner.WhenAsync("I add the following devices to the merchant", ((string)(null)), table89, "When "); #line hidden - global::Reqnroll.Table table30 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table90 = new global::Reqnroll.Table(new string[] { "EmailAddress", "Password", "GivenName", "FamilyName", "MerchantName", "EstateName"}); - table30.AddRow(new string[] { + table90.AddRow(new string[] { "merchantuser1@testmerchant1.co.uk", "123456", "TestMerchant", "User1", "Test Merchant 1", "Test Estate 1"}); - table30.AddRow(new string[] { + table90.AddRow(new string[] { "merchantuser1@testmerchant2.co.uk", "123456", "TestMerchant", "User1", "Test Merchant 2", "Test Estate 1"}); - table30.AddRow(new string[] { + table90.AddRow(new string[] { "merchantuser1@testmerchant3.co.uk", "123456", "TestMerchant", "User1", "Test Merchant 3", "Test Estate 1"}); - table30.AddRow(new string[] { + table90.AddRow(new string[] { "merchantuser1@testmerchant4.co.uk", "123456", "TestMerchant", "User1", "Test Merchant 4", "Test Estate 2"}); - table30.AddRow(new string[] { + table90.AddRow(new string[] { "merchantuser1@testmerchant5.co.uk", "123456", "TestMerchant", @@ -834,7 +834,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Merchant 5", "Test Estate 2"}); #line 150 - await testRunner.WhenAsync("I create the following security users", ((string)(null)), table30, "When "); + await testRunner.WhenAsync("I create the following security users", ((string)(null)), table90, "When "); #line hidden #line 158 await testRunner.WhenAsync("I get the merchants for \'Test Estate 1\' then 3 merchants will be returned", ((string)(null)), ((global::Reqnroll.Table)(null)), "When "); @@ -871,7 +871,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table31 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table91 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -882,7 +882,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "EmailAddress", "EstateName", "SettlementSchedule"}); - table31.AddRow(new string[] { + table91.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -894,31 +894,31 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Estate 1", "Weekly"}); #line 164 - await testRunner.WhenAsync("I create the following merchants", ((string)(null)), table31, "When "); + await testRunner.WhenAsync("I create the following merchants", ((string)(null)), table91, "When "); #line hidden - global::Reqnroll.Table table32 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table92 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table32.AddRow(new string[] { + table92.AddRow(new string[] { "Test Operator 1", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); #line 167 - await testRunner.WhenAsync("I assign the following operator to the merchants", ((string)(null)), table32, "When "); + await testRunner.WhenAsync("I assign the following operator to the merchants", ((string)(null)), table92, "When "); #line hidden - global::Reqnroll.Table table33 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table93 = new global::Reqnroll.Table(new string[] { "EmailAddress", "Password", "GivenName", "FamilyName", "MerchantName", "EstateName"}); - table33.AddRow(new string[] { + table93.AddRow(new string[] { "merchantuser1@testmerchant1.co.uk", "123456", "TestMerchant", @@ -926,20 +926,20 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Merchant 1", "Test Estate 1"}); #line 170 - await testRunner.WhenAsync("I create the following security users", ((string)(null)), table33, "When "); + await testRunner.WhenAsync("I create the following security users", ((string)(null)), table93, "When "); #line hidden - global::Reqnroll.Table table34 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table94 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table34.AddRow(new string[] { + table94.AddRow(new string[] { "TestDevice1", "Test Merchant 1", "Test Estate 1"}); #line 173 - await testRunner.WhenAsync("I add the following devices to the merchant", ((string)(null)), table34, "When "); + await testRunner.WhenAsync("I add the following devices to the merchant", ((string)(null)), table94, "When "); #line hidden - global::Reqnroll.Table table35 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table95 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -947,7 +947,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "DisplayText", "Value", "ProductType"}); - table35.AddRow(new string[] { + table95.AddRow(new string[] { "Test Estate 1", "Test Operator 1", "Safaricom Contract", @@ -956,33 +956,33 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "10.00", "MobileTopup"}); #line 176 - await testRunner.WhenAsync("I create the following Products", ((string)(null)), table35, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table95, "When "); #line hidden - global::Reqnroll.Table table36 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table96 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table36.AddRow(new string[] { + table96.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); #line 179 - await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table36, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table96, "When "); #line hidden - global::Reqnroll.Table table37 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table97 = new global::Reqnroll.Table(new string[] { "UpdateMerchantName", "SettlementSchedule", "EstateName", "MerchantName"}); - table37.AddRow(new string[] { + table97.AddRow(new string[] { "Update Merchant 1", "Monthly", "Test Estate 1", "Test Merchant 1"}); #line 182 - await testRunner.WhenAsync("I update the merchants with the following details", ((string)(null)), table37, "When "); + await testRunner.WhenAsync("I update the merchants with the following details", ((string)(null)), table97, "When "); #line hidden - global::Reqnroll.Table table38 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table98 = new global::Reqnroll.Table(new string[] { "AddressLine1", "AddressLine2", "AddressLine3", @@ -993,7 +993,7 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Country", "EstateName", "MerchantName"}); - table38.AddRow(new string[] { + table98.AddRow(new string[] { "Address Line 1U", "Address Line 2", "Address Line 3", @@ -1005,35 +1005,35 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa "Test Estate 1", "Test Merchant 1"}); #line 185 - await testRunner.WhenAsync("I update the merchants address with the following details", ((string)(null)), table38, "When "); + await testRunner.WhenAsync("I update the merchants address with the following details", ((string)(null)), table98, "When "); #line hidden - global::Reqnroll.Table table39 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table99 = new global::Reqnroll.Table(new string[] { "ContactName", "EmailAddress", "PhoneNumber", "EstateName", "MerchantName"}); - table39.AddRow(new string[] { + table99.AddRow(new string[] { "Test Contact 1U", "testcontact1update@merchant1.co.uk", "12345678", "Test Estate 1", "Test Merchant 1"}); #line 188 - await testRunner.WhenAsync("I update the merchants contact with the following details", ((string)(null)), table39, "When "); + await testRunner.WhenAsync("I update the merchants contact with the following details", ((string)(null)), table99, "When "); #line hidden - global::Reqnroll.Table table40 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table100 = new global::Reqnroll.Table(new string[] { "OriginalDeviceIdentifier", "NewDeviceIdentifier", "MerchantName", "EstateName"}); - table40.AddRow(new string[] { + table100.AddRow(new string[] { "TestDevice1", "TestDevice2", "Test Merchant 1", "Test Estate 1"}); #line 191 - await testRunner.WhenAsync("I swap the merchant device the device is swapped", ((string)(null)), table40, "When "); + await testRunner.WhenAsync("I swap the merchant device the device is swapped", ((string)(null)), table100, "When "); #line hidden #line 194 await testRunner.WhenAsync("I remove the contract \'Safaricom Contract\' from merchant \'Test Merchant 1\' on \'Te" + diff --git a/TransactionProcessor.IntegrationTests/Features/Operator.feature.cs b/TransactionProcessor.IntegrationTests/Features/Operator.feature.cs index 55a7f371..a2379efb 100644 --- a/TransactionProcessor.IntegrationTests/Features/Operator.feature.cs +++ b/TransactionProcessor.IntegrationTests/Features/Operator.feature.cs @@ -111,73 +111,73 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa { #line 4 #line hidden - global::Reqnroll.Table table100 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table101 = new global::Reqnroll.Table(new string[] { "Role Name"}); - table100.AddRow(new string[] { + table101.AddRow(new string[] { "Estate"}); #line 5 - await testRunner.GivenAsync("the following security roles exist", ((string)(null)), table100, "Given "); + await testRunner.GivenAsync("the following security roles exist", ((string)(null)), table101, "Given "); #line hidden - global::Reqnroll.Table table101 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table102 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table101.AddRow(new string[] { + table102.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST Scope", "A scope for Estate Managememt REST"}); #line 9 - await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table101, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table102, "Given "); #line hidden - global::Reqnroll.Table table102 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table103 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table102.AddRow(new string[] { + table103.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "merchantId, estateId, role"}); #line 13 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table102, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table103, "Given "); #line hidden - global::Reqnroll.Table table103 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table104 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table103.AddRow(new string[] { + table104.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); - table103.AddRow(new string[] { + table104.AddRow(new string[] { "estateClient", "Estate Client", "Secret1", "transactionProcessor", "password"}); #line 16 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table103, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table104, "Given "); #line hidden - global::Reqnroll.Table table104 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table105 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table104.AddRow(new string[] { + table105.AddRow(new string[] { "serviceClient"}); #line 21 - await testRunner.GivenAsync("I have a token to access the estate management resource", ((string)(null)), table104, "Given "); + await testRunner.GivenAsync("I have a token to access the estate management resource", ((string)(null)), table105, "Given "); #line hidden - global::Reqnroll.Table table105 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table106 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table105.AddRow(new string[] { + table106.AddRow(new string[] { "Test Estate 1"}); #line 25 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table105, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table106, "Given "); #line hidden } @@ -211,59 +211,59 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table106 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table107 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber", "OperatorId"}); - table106.AddRow(new string[] { + table107.AddRow(new string[] { "Test Estate 1", "Test Operator 1", "True", "True", "27C722F6-208F-4F78-9A2F-993F8A8F24A3"}); - table106.AddRow(new string[] { + table107.AddRow(new string[] { "Test Estate 1", "Test Operator 2", "True", "True", "00000000-0000-0000-0000-000000000000"}); #line 32 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table106, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table107, "Given "); #line hidden - global::Reqnroll.Table table107 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table108 = new global::Reqnroll.Table(new string[] { "UpdateOperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber", "EstateName", "OperatorName"}); - table107.AddRow(new string[] { + table108.AddRow(new string[] { "Update Operator 1", "False", "False", "Test Estate 1", "Test Operator 1"}); #line 37 - await testRunner.WhenAsync("I update the operators with the following details", ((string)(null)), table107, "When "); + await testRunner.WhenAsync("I update the operators with the following details", ((string)(null)), table108, "When "); #line hidden - global::Reqnroll.Table table108 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table109 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table108.AddRow(new string[] { + table109.AddRow(new string[] { "Test Estate 1", "Update Operator 1", "False", "False"}); - table108.AddRow(new string[] { + table109.AddRow(new string[] { "Test Estate 1", "Test Operator 2", "True", "True"}); #line 41 - await testRunner.WhenAsync("I get all the operators the following details are returned", ((string)(null)), table108, "When "); + await testRunner.WhenAsync("I get all the operators the following details are returned", ((string)(null)), table109, "When "); #line hidden } await this.ScenarioCleanupAsync(); diff --git a/TransactionProcessor.IntegrationTests/Features/ReconciliationFeature.feature.cs b/TransactionProcessor.IntegrationTests/Features/ReconciliationFeature.feature.cs index dcc62f7a..58127a8e 100644 --- a/TransactionProcessor.IntegrationTests/Features/ReconciliationFeature.feature.cs +++ b/TransactionProcessor.IntegrationTests/Features/ReconciliationFeature.feature.cs @@ -111,120 +111,120 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa { #line 4 #line hidden - global::Reqnroll.Table table109 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table110 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table109.AddRow(new string[] { + table110.AddRow(new string[] { "estateManagement", "Estate Managememt REST Scope", "A scope for Estate Managememt REST"}); - table109.AddRow(new string[] { + table110.AddRow(new string[] { "transactionProcessor", "Transaction Processor REST Scope", "A scope for Transaction Processor REST"}); #line 6 - await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table109, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table110, "Given "); #line hidden - global::Reqnroll.Table table110 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table111 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table110.AddRow(new string[] { + table111.AddRow(new string[] { "estateManagement", "Estate Managememt REST", "Secret1", "estateManagement", "MerchantId, EstateId, role"}); - table110.AddRow(new string[] { + table111.AddRow(new string[] { "transactionProcessor", "Transaction Processor REST", "Secret1", "transactionProcessor", ""}); #line 11 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table110, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table111, "Given "); #line hidden - global::Reqnroll.Table table111 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table112 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table111.AddRow(new string[] { + table112.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "estateManagement,transactionProcessor", "client_credentials"}); #line 16 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table111, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table112, "Given "); #line hidden - global::Reqnroll.Table table112 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table113 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table112.AddRow(new string[] { + table113.AddRow(new string[] { "serviceClient"}); #line 20 await testRunner.GivenAsync("I have a token to access the estate management and transaction processor resource" + - "s", ((string)(null)), table112, "Given "); + "s", ((string)(null)), table113, "Given "); #line hidden - global::Reqnroll.Table table113 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table114 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table113.AddRow(new string[] { + table114.AddRow(new string[] { "Test Estate 1"}); - table113.AddRow(new string[] { + table114.AddRow(new string[] { "Test Estate 2"}); #line 24 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table113, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table114, "Given "); #line hidden - global::Reqnroll.Table table114 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table115 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table114.AddRow(new string[] { + table115.AddRow(new string[] { "Test Estate 1", "Safaricom", "False", "False"}); - table114.AddRow(new string[] { + table115.AddRow(new string[] { "Test Estate 2", "Safaricom", "False", "False"}); #line 29 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table114, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table115, "Given "); #line hidden - global::Reqnroll.Table table115 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table116 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table115.AddRow(new string[] { + table116.AddRow(new string[] { "Test Estate 1", "Safaricom"}); - table115.AddRow(new string[] { + table116.AddRow(new string[] { "Test Estate 2", "Safaricom"}); #line 34 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table115, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table116, "And "); #line hidden - global::Reqnroll.Table table116 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table117 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table116.AddRow(new string[] { + table117.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract"}); - table116.AddRow(new string[] { + table117.AddRow(new string[] { "Test Estate 2", "Safaricom", "Safaricom Contract"}); #line 39 - await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table116, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table117, "Given "); #line hidden - global::Reqnroll.Table table117 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table118 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -232,7 +232,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "DisplayText", "Value", "ProductType"}); - table117.AddRow(new string[] { + table118.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract", @@ -240,7 +240,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Custom", "", "MobileTopup"}); - table117.AddRow(new string[] { + table118.AddRow(new string[] { "Test Estate 2", "Safaricom", "Safaricom Contract", @@ -249,9 +249,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "MobileTopup"}); #line 44 - await testRunner.WhenAsync("I create the following Products", ((string)(null)), table117, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table118, "When "); #line hidden - global::Reqnroll.Table table118 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table119 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -259,7 +259,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "CalculationType", "FeeDescription", "Value"}); - table118.AddRow(new string[] { + table119.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract", @@ -267,7 +267,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Fixed", "Merchant Commission", "2.50"}); - table118.AddRow(new string[] { + table119.AddRow(new string[] { "Test Estate 2", "Safaricom", "Safaricom Contract", @@ -276,9 +276,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Merchant Commission", "0.85"}); #line 49 - await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table118, "When "); + await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table119, "When "); #line hidden - global::Reqnroll.Table table119 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table120 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -288,7 +288,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "ContactName", "EmailAddress", "EstateName"}); - table119.AddRow(new string[] { + table120.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -298,7 +298,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Test Contact 1", "testcontact1@merchant1.co.uk", "Test Estate 1"}); - table119.AddRow(new string[] { + table120.AddRow(new string[] { "Test Merchant 2", "Address Line 1", "TestTown", @@ -308,7 +308,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Test Contact 2", "testcontact2@merchant2.co.uk", "Test Estate 1"}); - table119.AddRow(new string[] { + table120.AddRow(new string[] { "Test Merchant 3", "Address Line 1", "TestTown", @@ -319,80 +319,80 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact3@merchant2.co.uk", "Test Estate 2"}); #line 54 - await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table119, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table120, "Given "); #line hidden - global::Reqnroll.Table table120 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table121 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table120.AddRow(new string[] { + table121.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table120.AddRow(new string[] { + table121.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table120.AddRow(new string[] { + table121.AddRow(new string[] { "Safaricom", "Test Merchant 3", "00000003", "10000003", "Test Estate 2"}); #line 60 - await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table120, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table121, "Given "); #line hidden - global::Reqnroll.Table table121 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table122 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table121.AddRow(new string[] { + table122.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table121.AddRow(new string[] { + table122.AddRow(new string[] { "123456781", "Test Merchant 2", "Test Estate 1"}); - table121.AddRow(new string[] { + table122.AddRow(new string[] { "123456782", "Test Merchant 3", "Test Estate 2"}); #line 66 - await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table121, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table122, "Given "); #line hidden - global::Reqnroll.Table table122 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table123 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table122.AddRow(new string[] { + table123.AddRow(new string[] { "Deposit1", "200.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table122.AddRow(new string[] { + table123.AddRow(new string[] { "Deposit1", "100.00", "Today", "Test Merchant 2", "Test Estate 1"}); - table122.AddRow(new string[] { + table123.AddRow(new string[] { "Deposit1", "100.00", "Today", "Test Merchant 3", "Test Estate 2"}); #line 72 - await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table122, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table123, "Given "); #line hidden } @@ -426,7 +426,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table123 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table124 = new global::Reqnroll.Table(new string[] { "DateTime", "MerchantName", "DeviceIdentifier", @@ -434,7 +434,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "TransactionCount", "TransactionValue", "TransactionType"}); - table123.AddRow(new string[] { + table124.AddRow(new string[] { "Today", "Test Merchant 1", "123456780", @@ -442,7 +442,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "1", "100.00", "Reconciliation"}); - table123.AddRow(new string[] { + table124.AddRow(new string[] { "Today", "Test Merchant 2", "123456781", @@ -450,7 +450,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "2", "200.00", "Reconciliation"}); - table123.AddRow(new string[] { + table124.AddRow(new string[] { "Today", "Test Merchant 3", "123456782", @@ -459,30 +459,30 @@ await testRunner.GivenAsync("I have a token to access the estate management and "300.00", "Reconciliation"}); #line 81 - await testRunner.WhenAsync("I perform the following reconciliations", ((string)(null)), table123, "When "); + await testRunner.WhenAsync("I perform the following reconciliations", ((string)(null)), table124, "When "); #line hidden - global::Reqnroll.Table table124 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table125 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ResponseCode", "ResponseMessage"}); - table124.AddRow(new string[] { + table125.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "0000", "SUCCESS"}); - table124.AddRow(new string[] { + table125.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "0000", "SUCCESS"}); - table124.AddRow(new string[] { + table125.AddRow(new string[] { "Test Estate 2", "Test Merchant 3", "0000", "SUCCESS"}); #line 87 - await testRunner.ThenAsync("reconciliation response should contain the following information", ((string)(null)), table124, "Then "); + await testRunner.ThenAsync("reconciliation response should contain the following information", ((string)(null)), table125, "Then "); #line hidden } await this.ScenarioCleanupAsync(); diff --git a/TransactionProcessor.IntegrationTests/Features/RedeemVoucher.feature.cs b/TransactionProcessor.IntegrationTests/Features/RedeemVoucher.feature.cs index d6b38a8b..d798a6c6 100644 --- a/TransactionProcessor.IntegrationTests/Features/RedeemVoucher.feature.cs +++ b/TransactionProcessor.IntegrationTests/Features/RedeemVoucher.feature.cs @@ -111,98 +111,98 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa { #line 5 #line hidden - global::Reqnroll.Table table125 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table126 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table125.AddRow(new string[] { + table126.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST Scope", "A scope for Estate Managememt REST"}); #line 7 - await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table125, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table126, "Given "); #line hidden - global::Reqnroll.Table table126 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table127 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table126.AddRow(new string[] { + table127.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "MerchantId, EstateId, role"}); #line 11 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table126, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table127, "Given "); #line hidden - global::Reqnroll.Table table127 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table128 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table127.AddRow(new string[] { + table128.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); #line 15 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table127, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table128, "Given "); #line hidden - global::Reqnroll.Table table128 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table129 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table128.AddRow(new string[] { + table129.AddRow(new string[] { "serviceClient"}); #line 19 await testRunner.GivenAsync("I have a token to access the estate management and transaction processor resource" + - "s", ((string)(null)), table128, "Given "); + "s", ((string)(null)), table129, "Given "); #line hidden - global::Reqnroll.Table table129 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table130 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table129.AddRow(new string[] { + table130.AddRow(new string[] { "Test Estate 1"}); - table129.AddRow(new string[] { + table130.AddRow(new string[] { "Test Estate 2"}); #line 23 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table129, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table130, "Given "); #line hidden - global::Reqnroll.Table table130 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table131 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table130.AddRow(new string[] { + table131.AddRow(new string[] { "Test Estate 1", "Voucher", "False", "False"}); #line 28 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table130, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table131, "Given "); #line hidden - global::Reqnroll.Table table131 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table132 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table131.AddRow(new string[] { + table132.AddRow(new string[] { "Test Estate 1", "Voucher"}); #line 32 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table131, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table132, "And "); #line hidden - global::Reqnroll.Table table132 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table133 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table132.AddRow(new string[] { + table133.AddRow(new string[] { "Test Estate 1", "Voucher", "Hospital 1 Contract"}); #line 36 - await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table132, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table133, "Given "); #line hidden - global::Reqnroll.Table table133 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table134 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -210,7 +210,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "DisplayText", "Value", "ProductType"}); - table133.AddRow(new string[] { + table134.AddRow(new string[] { "Test Estate 1", "Voucher", "Hospital 1 Contract", @@ -219,9 +219,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Voucher"}); #line 40 - await testRunner.WhenAsync("I create the following Products", ((string)(null)), table133, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table134, "When "); #line hidden - global::Reqnroll.Table table134 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table135 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -231,7 +231,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "ContactName", "EmailAddress", "EstateName"}); - table134.AddRow(new string[] { + table135.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -242,61 +242,61 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact1@merchant1.co.uk", "Test Estate 1"}); #line 44 - await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table134, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table135, "Given "); #line hidden - global::Reqnroll.Table table135 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table136 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table135.AddRow(new string[] { + table136.AddRow(new string[] { "Voucher", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); #line 48 - await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table135, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table136, "Given "); #line hidden - global::Reqnroll.Table table136 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table137 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table136.AddRow(new string[] { + table137.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); #line 52 - await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table136, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table137, "Given "); #line hidden - global::Reqnroll.Table table137 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table138 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table137.AddRow(new string[] { + table138.AddRow(new string[] { "Deposit1", "20.00", "Today", "Test Merchant 1", "Test Estate 1"}); #line 56 - await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table137, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table138, "Given "); #line hidden - global::Reqnroll.Table table138 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table139 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table138.AddRow(new string[] { + table139.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Hospital 1 Contract"}); #line 60 - await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table138, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table139, "When "); #line hidden - global::Reqnroll.Table table139 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table140 = new global::Reqnroll.Table(new string[] { "DateTime", "TransactionNumber", "TransactionType", @@ -315,7 +315,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "MessageType", "AccountNumber", "CustomerName"}); - table139.AddRow(new string[] { + table140.AddRow(new string[] { "Today", "1", "Sale", @@ -335,7 +335,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", ""}); #line 64 - await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table139, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table140, "When "); #line hidden } diff --git a/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs b/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs index 6500ce5a..b2dab13f 100644 --- a/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs +++ b/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs @@ -111,245 +111,245 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa { #line 4 #line hidden - global::Reqnroll.Table table140 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table141 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table140.AddRow(new string[] { + table141.AddRow(new string[] { "transactionProcessor", "Transaction Processor REST Scope", "A scope for Transaction Processor REST"}); #line 6 - await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table140, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table141, "Given "); #line hidden - global::Reqnroll.Table table141 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table142 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table141.AddRow(new string[] { + table142.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "MerchantId, EstateId, role"}); #line 11 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table141, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table142, "Given "); #line hidden - global::Reqnroll.Table table142 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table143 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table142.AddRow(new string[] { + table143.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); #line 16 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table142, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table143, "Given "); #line hidden - global::Reqnroll.Table table143 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table144 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table143.AddRow(new string[] { + table144.AddRow(new string[] { "serviceClient"}); #line 20 await testRunner.GivenAsync("I have a token to access the estate management and transaction processor resource" + - "s", ((string)(null)), table143, "Given "); + "s", ((string)(null)), table144, "Given "); #line hidden - global::Reqnroll.Table table144 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table145 = new global::Reqnroll.Table(new string[] { "AccountNumber", "AccountName", "DueDate", "Amount"}); - table144.AddRow(new string[] { + table145.AddRow(new string[] { "12345678", "Test Account 1", "Today", "100.00"}); #line 24 - await testRunner.GivenAsync("the following bills are available at the PataPawa PostPaid Host", ((string)(null)), table144, "Given "); + await testRunner.GivenAsync("the following bills are available at the PataPawa PostPaid Host", ((string)(null)), table145, "Given "); #line hidden - global::Reqnroll.Table table145 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table146 = new global::Reqnroll.Table(new string[] { "Username", "Password"}); - table145.AddRow(new string[] { + table146.AddRow(new string[] { "operatora", "1234567898"}); #line 28 - await testRunner.GivenAsync("the following users are available at the PataPawa PrePay Host", ((string)(null)), table145, "Given "); + await testRunner.GivenAsync("the following users are available at the PataPawa PrePay Host", ((string)(null)), table146, "Given "); #line hidden - global::Reqnroll.Table table146 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table147 = new global::Reqnroll.Table(new string[] { "MeterNumber", "CustomerName"}); - table146.AddRow(new string[] { + table147.AddRow(new string[] { "00000001", "Customer 1"}); - table146.AddRow(new string[] { + table147.AddRow(new string[] { "00000002", "Customer 2"}); - table146.AddRow(new string[] { + table147.AddRow(new string[] { "00000003", "Customer 3"}); #line 32 - await testRunner.GivenAsync("the following meters are available at the PataPawa PrePay Host", ((string)(null)), table146, "Given "); + await testRunner.GivenAsync("the following meters are available at the PataPawa PrePay Host", ((string)(null)), table147, "Given "); #line hidden #line 38 await testRunner.GivenAsync("I initialise the Agency Banking Host", ((string)(null)), ((global::Reqnroll.Table)(null)), "Given "); #line hidden - global::Reqnroll.Table table147 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table148 = new global::Reqnroll.Table(new string[] { "Type", "Code", "Name", "Currency"}); - table147.AddRow(new string[] { + table148.AddRow(new string[] { "LIABILITY", "200100", "Agent Float GL", "KES"}); - table147.AddRow(new string[] { + table148.AddRow(new string[] { "LIABILITY", "200200", "Settlement Suspense GL", "KES"}); - table147.AddRow(new string[] { + table148.AddRow(new string[] { "EXPENSE", "400100", "Agent Commission GL", "KES"}); - table147.AddRow(new string[] { + table148.AddRow(new string[] { "LIABILITY", "200300", "Reversal GL", "KES"}); - table147.AddRow(new string[] { + table148.AddRow(new string[] { "INCOME", "400200", "Fee Income GL", "KES"}); #line 40 - await testRunner.GivenAsync("I create the following accounts", ((string)(null)), table147, "Given "); + await testRunner.GivenAsync("I create the following accounts", ((string)(null)), table148, "Given "); #line hidden - global::Reqnroll.Table table148 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table149 = new global::Reqnroll.Table(new string[] { "AccountNumber", "BankCode", "Currency", "Name"}); - table148.AddRow(new string[] { + table149.AddRow(new string[] { "999000001", "001", "KES", "Main Settlement Account"}); #line 48 - await testRunner.GivenAsync("I create the settlement account", ((string)(null)), table148, "Given "); + await testRunner.GivenAsync("I create the settlement account", ((string)(null)), table149, "Given "); #line hidden - global::Reqnroll.Table table149 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table150 = new global::Reqnroll.Table(new string[] { "CustomerId", "FullName", "PhoneNumber", "NationalId", "AccountNumber"}); - table149.AddRow(new string[] { + table150.AddRow(new string[] { "CUST001", "Test Customer 1", "0712345678", "12345678", "12345678"}); #line 52 - await testRunner.GivenAsync("I create the following customers", ((string)(null)), table149, "Given "); + await testRunner.GivenAsync("I create the following customers", ((string)(null)), table150, "Given "); #line hidden - global::Reqnroll.Table table150 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table151 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table150.AddRow(new string[] { + table151.AddRow(new string[] { "Test Estate 1"}); #line 56 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table150, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table151, "Given "); #line hidden - global::Reqnroll.Table table151 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table152 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table151.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "Safaricom", "False", "False"}); - table151.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "Voucher", "False", "False"}); - table151.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "PataPawa PostPay", "False", "False"}); - table151.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "PataPawa PrePay", "False", "False"}); - table151.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "AgencyBanking", "False", "False"}); #line 60 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table151, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table152, "Given "); #line hidden - global::Reqnroll.Table table152 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table153 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table152.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "Safaricom"}); - table152.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "Voucher"}); - table152.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "PataPawa PostPay"}); - table152.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "PataPawa PrePay"}); - table152.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "AgencyBanking"}); #line 68 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table152, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table153, "And "); #line hidden - global::Reqnroll.Table table153 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table154 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table153.AddRow(new string[] { + table154.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract"}); - table153.AddRow(new string[] { + table154.AddRow(new string[] { "Test Estate 1", "Voucher", "Hospital 1 Contract"}); - table153.AddRow(new string[] { + table154.AddRow(new string[] { "Test Estate 1", "PataPawa PostPay", "PataPawa PostPay Contract"}); - table153.AddRow(new string[] { + table154.AddRow(new string[] { "Test Estate 1", "PataPawa PrePay", "PataPawa PrePay Contract"}); - table153.AddRow(new string[] { + table154.AddRow(new string[] { "Test Estate 1", "AgencyBanking", "AgencyBanking Contract"}); #line 76 - await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table153, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table154, "Given "); #line hidden - global::Reqnroll.Table table154 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table155 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -357,7 +357,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "DisplayText", "Value", "ProductType"}); - table154.AddRow(new string[] { + table155.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract", @@ -365,7 +365,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Custom", "", "MobileTopup"}); - table154.AddRow(new string[] { + table155.AddRow(new string[] { "Test Estate 1", "Voucher", "Hospital 1 Contract", @@ -373,7 +373,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10 KES", "", "Voucher"}); - table154.AddRow(new string[] { + table155.AddRow(new string[] { "Test Estate 1", "PataPawa PostPay", "PataPawa PostPay Contract", @@ -381,7 +381,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Bill Pay (Post)", "", "BillPayment"}); - table154.AddRow(new string[] { + table155.AddRow(new string[] { "Test Estate 1", "PataPawa PrePay", "PataPawa PrePay Contract", @@ -389,7 +389,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Bill Pay (Pre)", "", "BillPayment"}); - table154.AddRow(new string[] { + table155.AddRow(new string[] { "Test Estate 1", "AgencyBanking", "AgencyBanking Contract", @@ -397,7 +397,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Balance Enquiry", "", "AgencyBanking"}); - table154.AddRow(new string[] { + table155.AddRow(new string[] { "Test Estate 1", "AgencyBanking", "AgencyBanking Contract", @@ -405,7 +405,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Deposit", "", "AgencyBanking"}); - table154.AddRow(new string[] { + table155.AddRow(new string[] { "Test Estate 1", "AgencyBanking", "AgencyBanking Contract", @@ -413,7 +413,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Withdrawal", "", "AgencyBanking"}); - table154.AddRow(new string[] { + table155.AddRow(new string[] { "Test Estate 1", "AgencyBanking", "AgencyBanking Contract", @@ -422,9 +422,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "AgencyBanking"}); #line 84 - await testRunner.WhenAsync("I create the following Products", ((string)(null)), table154, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table155, "When "); #line hidden - global::Reqnroll.Table table155 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table156 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -432,7 +432,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "CalculationType", "FeeDescription", "Value"}); - table155.AddRow(new string[] { + table156.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract", @@ -440,7 +440,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Percentage", "Merchant Commission", "0.50"}); - table155.AddRow(new string[] { + table156.AddRow(new string[] { "Test Estate 1", "PataPawa PostPay", "PataPawa PostPay Contract", @@ -448,7 +448,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Percentage", "Merchant Commission", "0.50"}); - table155.AddRow(new string[] { + table156.AddRow(new string[] { "Test Estate 1", "PataPawa PrePay", "PataPawa PrePay Contract", @@ -457,9 +457,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Merchant Commission", "0.50"}); #line 95 - await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table155, "When "); + await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table156, "When "); #line hidden - global::Reqnroll.Table table156 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table157 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -470,7 +470,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "EmailAddress", "EstateName", "AgencyBankingEnabled"}); - table156.AddRow(new string[] { + table157.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -481,7 +481,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact1@merchant1.co.uk", "Test Estate 1", "true"}); - table156.AddRow(new string[] { + table157.AddRow(new string[] { "Test Merchant 2", "Address Line 1", "TestTown", @@ -492,7 +492,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact2@merchant2.co.uk", "Test Estate 1", "true"}); - table156.AddRow(new string[] { + table157.AddRow(new string[] { "Test Merchant 3", "Address Line 1", "TestTown", @@ -503,7 +503,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact3@merchant3.co.uk", "Test Estate 1", "true"}); - table156.AddRow(new string[] { + table157.AddRow(new string[] { "Test Merchant 4", "Address Line 1", "TestTown", @@ -515,267 +515,267 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Test Estate 1", "true"}); #line 101 - await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table156, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table157, "Given "); #line hidden - global::Reqnroll.Table table157 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table158 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "Voucher", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "PataPawa PostPay", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "PataPawa PrePay", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "AgencyBanking", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "Voucher", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "PataPawa PostPay", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "PataPawa PrePay", "Test Merchant 2", "00000001", "10000001", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "AgencyBanking", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "Safaricom", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "Voucher", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "PataPawa PostPay", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "PataPawa PrePay", "Test Merchant 3", "00000001", "10000001", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "AgencyBanking", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "Safaricom", "Test Merchant 4", "00000004", "10000004", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "Voucher", "Test Merchant 4", "00000004", "10000004", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "PataPawa PostPay", "Test Merchant 4", "00000004", "10000004", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "PataPawa PrePay", "Test Merchant 4", "00000001", "10000001", "Test Estate 1"}); - table157.AddRow(new string[] { + table158.AddRow(new string[] { "AgencyBanking", "Test Merchant 4", "00000004", "10000004", "Test Estate 1"}); #line 108 - await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table157, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table158, "Given "); #line hidden - global::Reqnroll.Table table158 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table159 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table158.AddRow(new string[] { + table159.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table158.AddRow(new string[] { + table159.AddRow(new string[] { "123456781", "Test Merchant 2", "Test Estate 1"}); - table158.AddRow(new string[] { + table159.AddRow(new string[] { "123456782", "Test Merchant 3", "Test Estate 1"}); - table158.AddRow(new string[] { + table159.AddRow(new string[] { "123456783", "Test Merchant 4", "Test Estate 1"}); #line 131 - await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table158, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table159, "Given "); #line hidden - global::Reqnroll.Table table159 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table160 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table159.AddRow(new string[] { + table160.AddRow(new string[] { "Deposit1", "365.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table159.AddRow(new string[] { + table160.AddRow(new string[] { "Deposit1", "110.00", "Today", "Test Merchant 2", "Test Estate 1"}); - table159.AddRow(new string[] { + table160.AddRow(new string[] { "Deposit1", "110.00", "Today", "Test Merchant 3", "Test Estate 1"}); - table159.AddRow(new string[] { + table160.AddRow(new string[] { "Deposit1", "100.00", "Today", "Test Merchant 4", "Test Estate 1"}); #line 138 - await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table159, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table160, "Given "); #line hidden - global::Reqnroll.Table table160 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table161 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Hospital 1 Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "PataPawa PostPay Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "PataPawa PrePay Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "AgencyBanking Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Safaricom Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Hospital 1 Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "PataPawa PostPay Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "PataPawa PrePay Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "Safaricom Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "Hospital 1 Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "PataPawa PostPay Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "PataPawa PrePay Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 4", "Safaricom Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 4", "Hospital 1 Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 4", "PataPawa PostPay Contract"}); - table160.AddRow(new string[] { + table161.AddRow(new string[] { "Test Estate 1", "Test Merchant 4", "PataPawa PrePay Contract"}); #line 145 - await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table160, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table161, "When "); #line hidden } @@ -811,7 +811,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table161 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table162 = new global::Reqnroll.Table(new string[] { "DateTime", "TransactionNumber", "TransactionType", @@ -831,7 +831,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "AccountNumber", "CustomerName", "MeterNumber"}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "1", "Sale", @@ -851,7 +851,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "2", "Sale", @@ -871,7 +871,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "3", "Sale", @@ -891,7 +891,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "4", "Sale", @@ -911,7 +911,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "5", "Sale", @@ -931,7 +931,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "6", "Sale", @@ -951,7 +951,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "7", "Sale", @@ -971,7 +971,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "8", "Sale", @@ -991,7 +991,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "9", "Sale", @@ -1011,7 +1011,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "Mr Test Customer", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "10", "Sale", @@ -1031,7 +1031,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", "00000001"}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "11", "Sale", @@ -1051,7 +1051,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "00000001", "Customer 1", "00000001"}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "12", "Sale", @@ -1071,7 +1071,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "13", "Sale", @@ -1091,7 +1091,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "14", "Sale", @@ -1111,7 +1111,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "15", "Sale", @@ -1131,7 +1131,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "100", "Sale", @@ -1151,7 +1151,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "101", "Sale", @@ -1171,7 +1171,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "102", "Sale", @@ -1191,7 +1191,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "103", "Sale", @@ -1211,7 +1211,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "104", "Sale", @@ -1231,7 +1231,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "105", "Sale", @@ -1251,7 +1251,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "106", "Sale", @@ -1271,7 +1271,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table161.AddRow(new string[] { + table162.AddRow(new string[] { "Today", "107", "Sale", @@ -1292,152 +1292,152 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", ""}); #line 169 - await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table161, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table162, "When "); #line hidden - global::Reqnroll.Table table162 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table163 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "TransactionNumber", "ResponseCode", "ResponseMessage"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "1", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "2", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "3", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "4", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "5", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "6", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "7", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "8", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "9", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "10", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "11", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "12", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "13", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "14", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "15", "0000", "SUCCESS"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "100", "1000", "Device Identifier 123456781 not valid for Merchant Test Merchant 1"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "InvalidEstate", "Test Merchant 1", "101", "1001", "Estate Id [79902550-64df-4491-b0c1-4e78943928a3] is not a valid estate"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "InvalidMerchant", "102", "1002", "Merchant Id [d59320fa-4c3e-4900-a999-483f6a10c69a] is not a valid merchant for es" + "tate [Test Estate 1]"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "103", "1012", "Contract Id [00000000-0000-0000-0000-000000000000] must be set for a sale transac" + "tion"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "104", "1015", "Contract Id [934d8164-f36a-448e-b27b-4d671d41d180] not valid for Merchant [Test M" + "erchant 1]"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "105", "1013", "Product Id [00000000-0000-0000-0000-000000000000] must be set for a sale transact" + "ion"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "106", "1016", "Product Id [934d8164-f36a-448e-b27b-4d671d41d180] not valid for Merchant [Test Me" + "rchant 1]"}); - table162.AddRow(new string[] { + table163.AddRow(new string[] { "Test Estate 1", "Test Merchant 4", "107", @@ -1445,9 +1445,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Merchant [Test Merchant 4] does not have enough credit available [100.00] to perf" + "orm transaction amount [300.00]"}); #line 195 - await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table162, "Then "); + await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table163, "Then "); #line hidden - global::Reqnroll.Table table163 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table164 = new global::Reqnroll.Table(new string[] { "DateTime", "Reference", "EntryType", @@ -1455,7 +1455,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Out", "ChangeAmount", "Balance"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Merchant Deposit", "C", @@ -1463,7 +1463,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.00", "365.00", "365.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1471,7 +1471,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "110.00", "110.00", "255.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1479,7 +1479,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "90.00", "90.00", "165.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1487,7 +1487,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10.00", "10.00", "155.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1495,7 +1495,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "20.00", "20.00", "135.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1503,7 +1503,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "100.00", "100.00", "35.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1511,7 +1511,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "25.00", "25.00", "35.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1519,7 +1519,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10.00", "9.00", "35.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Fee Processed", "C", @@ -1527,7 +1527,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.55", "0.55", "35.55"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Fee Processed", "C", @@ -1535,7 +1535,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.45", "0.45", "36.00"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Fee Processed", "C", @@ -1543,7 +1543,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.01", "0.10", "36.10"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Transaction Fee Processed", "C", @@ -1551,7 +1551,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.01", "0.10", "36.10"}); - table163.AddRow(new string[] { + table164.AddRow(new string[] { "Today", "Opening Balance", "C", @@ -1561,9 +1561,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "36.10"}); #line 221 await testRunner.ThenAsync("the following entries appear in the merchants balance history for estate \'Test Es" + - "tate 1\' and merchant \'Test Merchant 1\'", ((string)(null)), table163, "Then "); + "tate 1\' and merchant \'Test Merchant 1\'", ((string)(null)), table164, "Then "); #line hidden - global::Reqnroll.Table table164 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table165 = new global::Reqnroll.Table(new string[] { "DateTime", "Reference", "EntryType", @@ -1571,7 +1571,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Out", "ChangeAmount", "Balance"}); - table164.AddRow(new string[] { + table165.AddRow(new string[] { "Today", "Merchant Deposit", "C", @@ -1579,7 +1579,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.00", "110.00", "230.00"}); - table164.AddRow(new string[] { + table165.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1587,7 +1587,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "100.00", "100.00", "130.00"}); - table164.AddRow(new string[] { + table165.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1595,7 +1595,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10.00", "10.00", "30.00"}); - table164.AddRow(new string[] { + table165.AddRow(new string[] { "Today", "Transaction Fee Processed", "C", @@ -1603,7 +1603,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.50", "0.50", "20.00"}); - table164.AddRow(new string[] { + table165.AddRow(new string[] { "Today", "Opening Balance", "C", @@ -1613,9 +1613,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "20.00"}); #line 237 await testRunner.ThenAsync("the following entries appear in the merchants balance history for estate \'Test Es" + - "tate 1\' and merchant \'Test Merchant 2\'", ((string)(null)), table164, "Then "); + "tate 1\' and merchant \'Test Merchant 2\'", ((string)(null)), table165, "Then "); #line hidden - global::Reqnroll.Table table165 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table166 = new global::Reqnroll.Table(new string[] { "DateTime", "Reference", "EntryType", @@ -1623,7 +1623,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Out", "ChangeAmount", "Balance"}); - table165.AddRow(new string[] { + table166.AddRow(new string[] { "Today", "Merchant Deposit", "C", @@ -1631,7 +1631,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.00", "110.00", "230.00"}); - table165.AddRow(new string[] { + table166.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1639,7 +1639,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "100.00", "100.00", "130.00"}); - table165.AddRow(new string[] { + table166.AddRow(new string[] { "Today", "Transaction Completed", "D", @@ -1647,7 +1647,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10.00", "10.00", "30.00"}); - table165.AddRow(new string[] { + table166.AddRow(new string[] { "Today", "Transaction Fee Processed", "C", @@ -1655,7 +1655,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.85", "0.50", "20.00"}); - table165.AddRow(new string[] { + table166.AddRow(new string[] { "Today", "Opening Balance", "C", @@ -1665,7 +1665,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "20.00"}); #line 245 await testRunner.ThenAsync("the following entries appear in the merchants balance history for estate \'Test Es" + - "tate 1\' and merchant \'Test Merchant 3\'", ((string)(null)), table165, "Then "); + "tate 1\' and merchant \'Test Merchant 3\'", ((string)(null)), table166, "Then "); #line hidden } await this.ScenarioCleanupAsync(); diff --git a/TransactionProcessor.IntegrationTests/Features/Settlement.feature.cs b/TransactionProcessor.IntegrationTests/Features/Settlement.feature.cs index 0b1c9d87..c12e555d 100644 --- a/TransactionProcessor.IntegrationTests/Features/Settlement.feature.cs +++ b/TransactionProcessor.IntegrationTests/Features/Settlement.feature.cs @@ -111,108 +111,108 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa { #line 4 #line hidden - global::Reqnroll.Table table166 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table167 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table166.AddRow(new string[] { + table167.AddRow(new string[] { "transactionProcessor", "Transaction Processor REST Scope", "A scope for Transaction Processor REST"}); #line 6 - await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table166, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table167, "Given "); #line hidden - global::Reqnroll.Table table167 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table168 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table167.AddRow(new string[] { + table168.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "MerchantId, EstateId, role"}); #line 10 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table167, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table168, "Given "); #line hidden - global::Reqnroll.Table table168 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table169 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table168.AddRow(new string[] { + table169.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); #line 14 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table168, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table169, "Given "); #line hidden - global::Reqnroll.Table table169 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table170 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table169.AddRow(new string[] { + table170.AddRow(new string[] { "serviceClient"}); #line 18 await testRunner.GivenAsync("I have a token to access the estate management and transaction processor resource" + - "s", ((string)(null)), table169, "Given "); + "s", ((string)(null)), table170, "Given "); #line hidden - global::Reqnroll.Table table170 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table171 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table170.AddRow(new string[] { + table171.AddRow(new string[] { "Test Estate 1"}); #line 22 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table170, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table171, "Given "); #line hidden - global::Reqnroll.Table table171 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table172 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table171.AddRow(new string[] { + table172.AddRow(new string[] { "Test Estate 1", "Safaricom", "False", "False"}); - table171.AddRow(new string[] { + table172.AddRow(new string[] { "Test Estate 1", "Voucher", "False", "False"}); #line 26 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table171, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table172, "Given "); #line hidden - global::Reqnroll.Table table172 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table173 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table172.AddRow(new string[] { + table173.AddRow(new string[] { "Test Estate 1", "Safaricom"}); - table172.AddRow(new string[] { + table173.AddRow(new string[] { "Test Estate 1", "Voucher"}); #line 31 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table172, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table173, "And "); #line hidden - global::Reqnroll.Table table173 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table174 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table173.AddRow(new string[] { + table174.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract"}); - table173.AddRow(new string[] { + table174.AddRow(new string[] { "Test Estate 1", "Voucher", "Hospital 1 Contract"}); #line 36 - await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table173, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table174, "Given "); #line hidden - global::Reqnroll.Table table174 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table175 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -220,7 +220,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "DisplayText", "Value", "ProductType"}); - table174.AddRow(new string[] { + table175.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract", @@ -228,7 +228,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Custom", "", "MobileTopup"}); - table174.AddRow(new string[] { + table175.AddRow(new string[] { "Test Estate 1", "Voucher", "Hospital 1 Contract", @@ -237,9 +237,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Voucher"}); #line 41 - await testRunner.WhenAsync("I create the following Products", ((string)(null)), table174, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table175, "When "); #line hidden - global::Reqnroll.Table table175 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table176 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -247,7 +247,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "CalculationType", "FeeDescription", "Value"}); - table175.AddRow(new string[] { + table176.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract", @@ -256,7 +256,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Merchant Commission", "2.50"}); #line 46 - await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table175, "When "); + await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table176, "When "); #line hidden } @@ -288,7 +288,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table176 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table177 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -299,7 +299,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "EmailAddress", "EstateName", "SettlementSchedule"}); - table176.AddRow(new string[] { + table177.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -310,7 +310,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact1@merchant1.co.uk", "Test Estate 1", "Immediate"}); - table176.AddRow(new string[] { + table177.AddRow(new string[] { "Test Merchant 2", "Address Line 1", "TestTown", @@ -321,7 +321,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact2@merchant2.co.uk", "Test Estate 1", "Weekly"}); - table176.AddRow(new string[] { + table177.AddRow(new string[] { "Test Merchant 3", "Address Line 1", "TestTown", @@ -333,131 +333,131 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Test Estate 1", "Monthly"}); #line 51 - await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table176, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table177, "Given "); #line hidden - global::Reqnroll.Table table177 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table178 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table177.AddRow(new string[] { + table178.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table177.AddRow(new string[] { + table178.AddRow(new string[] { "Voucher", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table177.AddRow(new string[] { + table178.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table177.AddRow(new string[] { + table178.AddRow(new string[] { "Voucher", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table177.AddRow(new string[] { + table178.AddRow(new string[] { "Safaricom", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table177.AddRow(new string[] { + table178.AddRow(new string[] { "Voucher", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); #line 57 - await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table177, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table178, "Given "); #line hidden - global::Reqnroll.Table table178 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table179 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table178.AddRow(new string[] { + table179.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table178.AddRow(new string[] { + table179.AddRow(new string[] { "123456781", "Test Merchant 2", "Test Estate 1"}); - table178.AddRow(new string[] { + table179.AddRow(new string[] { "123456782", "Test Merchant 3", "Test Estate 1"}); #line 66 - await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table178, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table179, "Given "); #line hidden - global::Reqnroll.Table table179 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table180 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table179.AddRow(new string[] { + table180.AddRow(new string[] { "Deposit1", "210.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table179.AddRow(new string[] { + table180.AddRow(new string[] { "Deposit1", "110.00", "Today", "Test Merchant 2", "Test Estate 1"}); - table179.AddRow(new string[] { + table180.AddRow(new string[] { "Deposit1", "120.00", "Today", "Test Merchant 3", "Test Estate 1"}); #line 72 - await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table179, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table180, "Given "); #line hidden - global::Reqnroll.Table table180 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table181 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table180.AddRow(new string[] { + table181.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); - table180.AddRow(new string[] { + table181.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Hospital 1 Contract"}); - table180.AddRow(new string[] { + table181.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Safaricom Contract"}); - table180.AddRow(new string[] { + table181.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Hospital 1 Contract"}); - table180.AddRow(new string[] { + table181.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "Safaricom Contract"}); - table180.AddRow(new string[] { + table181.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "Hospital 1 Contract"}); #line 78 - await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table180, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table181, "When "); #line hidden - global::Reqnroll.Table table181 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table182 = new global::Reqnroll.Table(new string[] { "DateTime", "TransactionNumber", "TransactionType", @@ -473,7 +473,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "ProductName", "RecipientEmail", "RecipientMobile"}); - table181.AddRow(new string[] { + table182.AddRow(new string[] { "2022-01-06", "1", "Sale", @@ -489,7 +489,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Variable Topup", "", ""}); - table181.AddRow(new string[] { + table182.AddRow(new string[] { "2022-01-06", "2", "Sale", @@ -505,7 +505,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Variable Topup", "", ""}); - table181.AddRow(new string[] { + table182.AddRow(new string[] { "2022-01-06", "3", "Sale", @@ -521,7 +521,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Variable Topup", "", ""}); - table181.AddRow(new string[] { + table182.AddRow(new string[] { "2022-01-06", "4", "Sale", @@ -537,7 +537,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Variable Topup", "", ""}); - table181.AddRow(new string[] { + table182.AddRow(new string[] { "2022-01-06", "5", "Sale", @@ -553,7 +553,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10 KES", "test@recipient.co.uk", ""}); - table181.AddRow(new string[] { + table182.AddRow(new string[] { "2022-01-06", "6", "Sale", @@ -569,7 +569,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10 KES", "", "123456789"}); - table181.AddRow(new string[] { + table182.AddRow(new string[] { "2022-01-06", "7", "Sale", @@ -585,7 +585,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10 KES", "test@recipient.co.uk", ""}); - table181.AddRow(new string[] { + table182.AddRow(new string[] { "2022-01-06", "8", "Sale", @@ -602,95 +602,95 @@ await testRunner.GivenAsync("I have a token to access the estate management and "test@recipient.co.uk", ""}); #line 87 - await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table181, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table182, "When "); #line hidden - global::Reqnroll.Table table182 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table183 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "TransactionNumber", "ResponseCode", "ResponseMessage"}); - table182.AddRow(new string[] { + table183.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "1", "0000", "SUCCESS"}); - table182.AddRow(new string[] { + table183.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "2", "0000", "SUCCESS"}); - table182.AddRow(new string[] { + table183.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "3", "0000", "SUCCESS"}); - table182.AddRow(new string[] { + table183.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "4", "0000", "SUCCESS"}); - table182.AddRow(new string[] { + table183.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "5", "0000", "SUCCESS"}); - table182.AddRow(new string[] { + table183.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "6", "0000", "SUCCESS"}); - table182.AddRow(new string[] { + table183.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "7", "0000", "SUCCESS"}); - table182.AddRow(new string[] { + table183.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "8", "0000", "SUCCESS"}); #line 98 - await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table182, "Then "); + await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table183, "Then "); #line hidden - global::Reqnroll.Table table183 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table184 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table183.AddRow(new string[] { + table184.AddRow(new string[] { "2022-01-13", "Test Estate 1", "Test Merchant 2", "1"}); - table183.AddRow(new string[] { + table184.AddRow(new string[] { "2022-02-06", "Test Estate 1", "Test Merchant 3", "1"}); #line 109 - await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table183, "When "); + await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table184, "When "); #line hidden - global::Reqnroll.Table table184 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table185 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table184.AddRow(new string[] { + table185.AddRow(new string[] { "2022-01-06", "Test Estate 1", "Test Merchant 1", "2"}); #line 114 - await testRunner.WhenAsync("I get the completed settlements the following information should be returned", ((string)(null)), table184, "When "); + await testRunner.WhenAsync("I get the completed settlements the following information should be returned", ((string)(null)), table185, "When "); #line hidden } await this.ScenarioCleanupAsync(); @@ -721,7 +721,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table185 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table186 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -732,7 +732,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "EmailAddress", "EstateName", "SettlementSchedule"}); - table185.AddRow(new string[] { + table186.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -743,7 +743,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact1@merchant1.co.uk", "Test Estate 1", "Immediate"}); - table185.AddRow(new string[] { + table186.AddRow(new string[] { "Test Merchant 2", "Address Line 1", "TestTown", @@ -755,101 +755,101 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Test Estate 1", "Weekly"}); #line 120 - await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table185, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table186, "Given "); #line hidden - global::Reqnroll.Table table186 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table187 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table186.AddRow(new string[] { + table187.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table186.AddRow(new string[] { + table187.AddRow(new string[] { "Voucher", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table186.AddRow(new string[] { + table187.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table186.AddRow(new string[] { + table187.AddRow(new string[] { "Voucher", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); #line 125 - await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table186, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table187, "Given "); #line hidden - global::Reqnroll.Table table187 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table188 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table187.AddRow(new string[] { + table188.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table187.AddRow(new string[] { + table188.AddRow(new string[] { "123456781", "Test Merchant 2", "Test Estate 1"}); #line 132 - await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table187, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table188, "Given "); #line hidden - global::Reqnroll.Table table188 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table189 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table188.AddRow(new string[] { + table189.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); - table188.AddRow(new string[] { + table189.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Hospital 1 Contract"}); - table188.AddRow(new string[] { + table189.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Safaricom Contract"}); - table188.AddRow(new string[] { + table189.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Hospital 1 Contract"}); #line 137 - await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table188, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table189, "When "); #line hidden - global::Reqnroll.Table table189 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table190 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table189.AddRow(new string[] { + table190.AddRow(new string[] { "Deposit1", "210.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table189.AddRow(new string[] { + table190.AddRow(new string[] { "Deposit1", "110.00", "Today", "Test Merchant 2", "Test Estate 1"}); #line 144 - await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table189, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table190, "Given "); #line hidden - global::Reqnroll.Table table190 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table191 = new global::Reqnroll.Table(new string[] { "DateTime", "TransactionNumber", "TransactionType", @@ -865,7 +865,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "ProductName", "RecipientEmail", "RecipientMobile"}); - table190.AddRow(new string[] { + table191.AddRow(new string[] { "2022-01-06", "1", "Sale", @@ -881,7 +881,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Variable Topup", "", ""}); - table190.AddRow(new string[] { + table191.AddRow(new string[] { "2022-01-06", "2", "Sale", @@ -897,7 +897,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Variable Topup", "", ""}); - table190.AddRow(new string[] { + table191.AddRow(new string[] { "2022-01-06", "4", "Sale", @@ -913,7 +913,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Variable Topup", "", ""}); - table190.AddRow(new string[] { + table191.AddRow(new string[] { "2022-01-06", "5", "Sale", @@ -929,7 +929,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "10 KES", "test@recipient.co.uk", ""}); - table190.AddRow(new string[] { + table191.AddRow(new string[] { "2022-01-06", "6", "Sale", @@ -946,59 +946,59 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "123456789"}); #line 149 - await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table190, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table191, "When "); #line hidden - global::Reqnroll.Table table191 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table192 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "TransactionNumber", "ResponseCode", "ResponseMessage"}); - table191.AddRow(new string[] { + table192.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "1", "0000", "SUCCESS"}); - table191.AddRow(new string[] { + table192.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "2", "0000", "SUCCESS"}); - table191.AddRow(new string[] { + table192.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "4", "0000", "SUCCESS"}); - table191.AddRow(new string[] { + table192.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "5", "0000", "SUCCESS"}); - table191.AddRow(new string[] { + table192.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "6", "0000", "SUCCESS"}); #line 157 - await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table191, "Then "); + await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table192, "Then "); #line hidden - global::Reqnroll.Table table192 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table193 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table192.AddRow(new string[] { + table193.AddRow(new string[] { "2022-01-13", "Test Estate 1", "Test Merchant 2", "1"}); #line 165 - await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table192, "When "); + await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table193, "When "); #line hidden #line 169 await testRunner.WhenAsync("I process the settlement for \'2022-01-13\' on Estate \'Test Estate 1\' for Merchant " + diff --git a/TransactionProcessor.IntegrationTests/Features/SettlementReporting.feature.cs b/TransactionProcessor.IntegrationTests/Features/SettlementReporting.feature.cs index da52c7b0..315ce201 100644 --- a/TransactionProcessor.IntegrationTests/Features/SettlementReporting.feature.cs +++ b/TransactionProcessor.IntegrationTests/Features/SettlementReporting.feature.cs @@ -111,110 +111,110 @@ public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, globa { #line 4 #line hidden - global::Reqnroll.Table table193 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table194 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table193.AddRow(new string[] { + table194.AddRow(new string[] { "transactionProcessor", "Transaction Processor REST Scope", "A scope for Transaction Processor REST"}); #line 6 - await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table193, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table194, "Given "); #line hidden - global::Reqnroll.Table table194 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table195 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table194.AddRow(new string[] { + table195.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "MerchantId, EstateId, role"}); #line 10 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table194, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table195, "Given "); #line hidden - global::Reqnroll.Table table195 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table196 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table195.AddRow(new string[] { + table196.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); #line 14 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table195, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table196, "Given "); #line hidden - global::Reqnroll.Table table196 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table197 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table196.AddRow(new string[] { + table197.AddRow(new string[] { "serviceClient"}); #line 18 await testRunner.GivenAsync("I have a token to access the estate management and transaction processor resource" + - "s", ((string)(null)), table196, "Given "); + "s", ((string)(null)), table197, "Given "); #line hidden - global::Reqnroll.Table table197 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table198 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table197.AddRow(new string[] { + table198.AddRow(new string[] { "Test Estate 1"}); - table197.AddRow(new string[] { + table198.AddRow(new string[] { "Test Estate 2"}); #line 22 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table197, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table198, "Given "); #line hidden - global::Reqnroll.Table table198 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table199 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table198.AddRow(new string[] { + table199.AddRow(new string[] { "Test Estate 1", "Safaricom", "False", "False"}); - table198.AddRow(new string[] { + table199.AddRow(new string[] { "Test Estate 2", "Safaricom", "False", "False"}); #line 27 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table198, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table199, "Given "); #line hidden - global::Reqnroll.Table table199 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table200 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table199.AddRow(new string[] { + table200.AddRow(new string[] { "Test Estate 1", "Safaricom"}); - table199.AddRow(new string[] { + table200.AddRow(new string[] { "Test Estate 2", "Safaricom"}); #line 32 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table199, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table200, "And "); #line hidden - global::Reqnroll.Table table200 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table201 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table200.AddRow(new string[] { + table201.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract"}); - table200.AddRow(new string[] { + table201.AddRow(new string[] { "Test Estate 2", "Safaricom", "Safaricom Contract"}); #line 37 - await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table200, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table201, "Given "); #line hidden - global::Reqnroll.Table table201 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table202 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -222,7 +222,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "DisplayText", "Value", "ProductType"}); - table201.AddRow(new string[] { + table202.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract", @@ -230,7 +230,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Custom", "", "MobileTopup"}); - table201.AddRow(new string[] { + table202.AddRow(new string[] { "Test Estate 2", "Safaricom", "Safaricom Contract", @@ -239,9 +239,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "MobileTopup"}); #line 42 - await testRunner.WhenAsync("I create the following Products", ((string)(null)), table201, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table202, "When "); #line hidden - global::Reqnroll.Table table202 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table203 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription", @@ -250,7 +250,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "FeeDescription", "Value", "FeeType"}); - table202.AddRow(new string[] { + table203.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract", @@ -259,7 +259,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Merchant Commission", "0.50", "Merchant"}); - table202.AddRow(new string[] { + table203.AddRow(new string[] { "Test Estate 2", "Safaricom", "Safaricom Contract", @@ -269,9 +269,9 @@ await testRunner.GivenAsync("I have a token to access the estate management and "0.85", "Merchant"}); #line 47 - await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table202, "When "); + await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table203, "When "); #line hidden - global::Reqnroll.Table table203 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table204 = new global::Reqnroll.Table(new string[] { "MerchantName", "AddressLine1", "Town", @@ -282,7 +282,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "EmailAddress", "EstateName", "SettlementSchedule"}); - table203.AddRow(new string[] { + table204.AddRow(new string[] { "Test Merchant 1", "Address Line 1", "TestTown", @@ -293,7 +293,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact1@merchant1.co.uk", "Test Estate 1", "Weekly"}); - table203.AddRow(new string[] { + table204.AddRow(new string[] { "Test Merchant 2", "Address Line 1", "TestTown", @@ -304,7 +304,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "testcontact2@merchant2.co.uk", "Test Estate 1", "Weekly"}); - table203.AddRow(new string[] { + table204.AddRow(new string[] { "Test Merchant 3", "Address Line 1", "TestTown", @@ -316,101 +316,101 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Test Estate 2", "Monthly"}); #line 52 - await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table203, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table204, "Given "); #line hidden - global::Reqnroll.Table table204 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table205 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table204.AddRow(new string[] { + table205.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table204.AddRow(new string[] { + table205.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table204.AddRow(new string[] { + table205.AddRow(new string[] { "Safaricom", "Test Merchant 3", "00000003", "10000003", "Test Estate 2"}); #line 58 - await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table204, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table205, "Given "); #line hidden - global::Reqnroll.Table table205 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table206 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table205.AddRow(new string[] { + table206.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table205.AddRow(new string[] { + table206.AddRow(new string[] { "123456781", "Test Merchant 2", "Test Estate 1"}); - table205.AddRow(new string[] { + table206.AddRow(new string[] { "123456782", "Test Merchant 3", "Test Estate 2"}); #line 64 - await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table205, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table206, "Given "); #line hidden - global::Reqnroll.Table table206 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table207 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table206.AddRow(new string[] { + table207.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); - table206.AddRow(new string[] { + table207.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Safaricom Contract"}); - table206.AddRow(new string[] { + table207.AddRow(new string[] { "Test Estate 2", "Test Merchant 3", "Safaricom Contract"}); #line 70 - await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table206, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table207, "When "); #line hidden - global::Reqnroll.Table table207 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table208 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table207.AddRow(new string[] { + table208.AddRow(new string[] { "Deposit1", "50000.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table207.AddRow(new string[] { + table208.AddRow(new string[] { "Deposit1", "50000.00", "Today", "Test Merchant 2", "Test Estate 1"}); - table207.AddRow(new string[] { + table208.AddRow(new string[] { "Deposit1", "50000.00", "Today", "Test Merchant 3", "Test Estate 2"}); #line 76 - await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table207, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table208, "Given "); #line hidden - global::Reqnroll.Table table208 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table209 = new global::Reqnroll.Table(new string[] { "DateTime", "TransactionNumber", "TransactionType", @@ -424,7 +424,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "CustomerEmailAddress", "ContractDescription", "ProductName"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "1", "Sale", @@ -438,7 +438,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "2", "Sale", @@ -452,7 +452,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "3", "Sale", @@ -466,7 +466,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "4", "Sale", @@ -480,7 +480,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "5", "Sale", @@ -494,7 +494,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "6", "Sale", @@ -508,7 +508,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "7", "Sale", @@ -522,7 +522,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "8", "Sale", @@ -536,7 +536,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "1", "Sale", @@ -550,7 +550,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "2", "Sale", @@ -564,7 +564,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "3", "Sale", @@ -578,7 +578,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "4", "Sale", @@ -592,7 +592,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "Safaricom Contract", "Variable Topup"}); - table208.AddRow(new string[] { + table209.AddRow(new string[] { "2022-01-06", "1", "Sale", @@ -607,112 +607,112 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Safaricom Contract", "Variable Topup"}); #line 82 - await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table208, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table209, "When "); #line hidden - global::Reqnroll.Table table209 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table210 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "TransactionNumber", "ResponseCode", "ResponseMessage"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "1", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "2", "1008", "DECLINED BY OPERATOR"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "3", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "4", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "5", "1008", "DECLINED BY OPERATOR"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "6", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "7", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "8", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "1", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "2", "1008", "DECLINED BY OPERATOR"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "3", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "4", "0000", "SUCCESS"}); - table209.AddRow(new string[] { + table210.AddRow(new string[] { "Test Estate 2", "Test Merchant 3", "1", "0000", "SUCCESS"}); #line 100 - await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table209, "Then "); + await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table210, "Then "); #line hidden - global::Reqnroll.Table table210 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table211 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table210.AddRow(new string[] { + table211.AddRow(new string[] { "2022-01-13", "Test Estate 1", "Test Merchant 1", "6"}); - table210.AddRow(new string[] { + table211.AddRow(new string[] { "2022-01-13", "Test Estate 1", "Test Merchant 2", "3"}); #line 118 - await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table210, "When "); + await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table211, "When "); #line hidden #line 123 await testRunner.WhenAsync("I process the settlement for \'2022-01-13\' on Estate \'Test Estate 1\' for Merchant " + @@ -724,18 +724,18 @@ await testRunner.GivenAsync("I have a token to access the estate management and "\'Test Merchant 2\' then 3 fees are marked as settled and the settlement is comple" + "ted", ((string)(null)), ((global::Reqnroll.Table)(null)), "When "); #line hidden - global::Reqnroll.Table table211 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table212 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table211.AddRow(new string[] { + table212.AddRow(new string[] { "2022-02-06", "Test Estate 2", "Test Merchant 3", "1"}); #line 127 - await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table211, "When "); + await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table212, "When "); #line hidden #line 131 await testRunner.WhenAsync("I process the settlement for \'2022-02-06\' on Estate \'Test Estate 2\' for Merchant " + @@ -776,12 +776,12 @@ await testRunner.GivenAsync("I have a token to access the estate management and #line 4 await this.FeatureBackgroundAsync(); #line hidden - global::Reqnroll.Table table212 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table213 = new global::Reqnroll.Table(new string[] { "SettlementDate", "NumberOfFeesSettled", "ValueOfFeesSettled", "IsCompleted"}); - table212.AddRow(new string[] { + table213.AddRow(new string[] { "2022-01-13", "6", "2.39", @@ -789,14 +789,14 @@ await testRunner.GivenAsync("I have a token to access the estate management and #line 136 await testRunner.WhenAsync("I get the Estate Settlement Report for Estate \'Test Estate 1\' for Merchant \'Test " + "Merchant 1\' with the Start Date \'2022-01-13\' and the End Date \'2022-02-06\' the f" + - "ollowing data is returned", ((string)(null)), table212, "When "); + "ollowing data is returned", ((string)(null)), table213, "When "); #line hidden - global::Reqnroll.Table table213 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table214 = new global::Reqnroll.Table(new string[] { "SettlementDate", "NumberOfFeesSettled", "ValueOfFeesSettled", "IsCompleted"}); - table213.AddRow(new string[] { + table214.AddRow(new string[] { "2022-01-13", "3", "0.71", @@ -804,14 +804,14 @@ await testRunner.GivenAsync("I have a token to access the estate management and #line 140 await testRunner.WhenAsync("I get the Estate Settlement Report for Estate \'Test Estate 1\' for Merchant \'Test " + "Merchant 2\' with the Start Date \'2022-01-13\' and the End Date \'2022-02-06\' the f" + - "ollowing data is returned", ((string)(null)), table213, "When "); + "ollowing data is returned", ((string)(null)), table214, "When "); #line hidden - global::Reqnroll.Table table214 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table215 = new global::Reqnroll.Table(new string[] { "SettlementDate", "NumberOfFeesSettled", "ValueOfFeesSettled", "IsCompleted"}); - table214.AddRow(new string[] { + table215.AddRow(new string[] { "2022-02-06", "1", "0.85", @@ -819,84 +819,84 @@ await testRunner.GivenAsync("I have a token to access the estate management and #line 144 await testRunner.WhenAsync("I get the Estate Settlement Report for Estate \'Test Estate 2\' for Merchant \'Test " + "Merchant 3\' with the Start Date \'2022-01-13\' and the End Date \'2022-02-06\' the f" + - "ollowing data is returned", ((string)(null)), table214, "When "); + "ollowing data is returned", ((string)(null)), table215, "When "); #line hidden - global::Reqnroll.Table table215 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table216 = new global::Reqnroll.Table(new string[] { "FeeDescription", "IsSettled", "Operator", "CalculatedValue"}); - table215.AddRow(new string[] { + table216.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.50"}); - table215.AddRow(new string[] { + table216.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.13"}); - table215.AddRow(new string[] { + table216.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.75"}); - table215.AddRow(new string[] { + table216.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.20"}); - table215.AddRow(new string[] { + table216.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.30"}); - table215.AddRow(new string[] { + table216.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.51"}); #line 148 await testRunner.WhenAsync("I get the Estate Settlement Report for Estate \'Test Estate 1\' for Merchant \'Test " + - "Merchant 1\' with the Date \'2022-01-13\' the following fees are settled", ((string)(null)), table215, "When "); + "Merchant 1\' with the Date \'2022-01-13\' the following fees are settled", ((string)(null)), table216, "When "); #line hidden - global::Reqnroll.Table table216 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table217 = new global::Reqnroll.Table(new string[] { "FeeDescription", "IsSettled", "Operator", "CalculatedValue"}); - table216.AddRow(new string[] { + table217.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.50"}); - table216.AddRow(new string[] { + table217.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.13"}); - table216.AddRow(new string[] { + table217.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.08"}); #line 157 await testRunner.WhenAsync("I get the Estate Settlement Report for Estate \'Test Estate 1\' for Merchant \'Test " + - "Merchant 2\' with the Date \'2022-01-13\' the following fees are settled", ((string)(null)), table216, "When "); + "Merchant 2\' with the Date \'2022-01-13\' the following fees are settled", ((string)(null)), table217, "When "); #line hidden - global::Reqnroll.Table table217 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table218 = new global::Reqnroll.Table(new string[] { "FeeDescription", "IsSettled", "Operator", "CalculatedValue"}); - table217.AddRow(new string[] { + table218.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.85"}); #line 163 await testRunner.WhenAsync("I get the Estate Settlement Report for Estate \'Test Estate 2\' for Merchant \'Test " + - "Merchant 3\' with the Date \'2022-02-06\' the following fees are settled", ((string)(null)), table217, "When "); + "Merchant 3\' with the Date \'2022-02-06\' the following fees are settled", ((string)(null)), table218, "When "); #line hidden } await this.ScenarioCleanupAsync();