diff --git a/Directory.Packages.props b/Directory.Packages.props index 5ed59100..5e199922 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -8,49 +8,49 @@ - + - - + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - + + + - - - + + + @@ -58,32 +58,32 @@ - - - - - - - - - - + + + + + + + + + + - - + + - - - - - - + + + + + + - + @@ -101,4 +101,4 @@ - + \ No newline at end of file diff --git a/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs b/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs index fe82c384..fb909f3a 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 table1 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table140 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table1.AddRow(new string[] { + table140.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)), table1, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table140, "Given "); #line hidden - global::Reqnroll.Table table2 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table141 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table2.AddRow(new string[] { + table141.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "MerchantId, EstateId, role"}); #line 11 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table2, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table141, "Given "); #line hidden - global::Reqnroll.Table table3 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table142 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table3.AddRow(new string[] { + table142.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); #line 16 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table3, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table142, "Given "); #line hidden - global::Reqnroll.Table table4 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table143 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table4.AddRow(new string[] { + table143.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)), table4, "Given "); + "s", ((string)(null)), table143, "Given "); #line hidden - global::Reqnroll.Table table5 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table144 = new global::Reqnroll.Table(new string[] { "AccountNumber", "AccountName", "DueDate", "Amount"}); - table5.AddRow(new string[] { + table144.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)), table5, "Given "); + await testRunner.GivenAsync("the following bills are available at the PataPawa PostPaid Host", ((string)(null)), table144, "Given "); #line hidden - global::Reqnroll.Table table6 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table145 = new global::Reqnroll.Table(new string[] { "Username", "Password"}); - table6.AddRow(new string[] { + table145.AddRow(new string[] { "operatora", "1234567898"}); #line 28 - await testRunner.GivenAsync("the following users are available at the PataPawa PrePay Host", ((string)(null)), table6, "Given "); + await testRunner.GivenAsync("the following users are available at the PataPawa PrePay Host", ((string)(null)), table145, "Given "); #line hidden - global::Reqnroll.Table table7 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table146 = new global::Reqnroll.Table(new string[] { "MeterNumber", "CustomerName"}); - table7.AddRow(new string[] { + table146.AddRow(new string[] { "00000001", "Customer 1"}); - table7.AddRow(new string[] { + table146.AddRow(new string[] { "00000002", "Customer 2"}); - table7.AddRow(new string[] { + table146.AddRow(new string[] { "00000003", "Customer 3"}); #line 32 - await testRunner.GivenAsync("the following meters are available at the PataPawa PrePay Host", ((string)(null)), table7, "Given "); + await testRunner.GivenAsync("the following meters are available at the PataPawa PrePay Host", ((string)(null)), table146, "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 table8 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table147 = new global::Reqnroll.Table(new string[] { "Type", "Code", "Name", "Currency"}); - table8.AddRow(new string[] { + table147.AddRow(new string[] { "LIABILITY", "200100", "Agent Float GL", "KES"}); - table8.AddRow(new string[] { + table147.AddRow(new string[] { "LIABILITY", "200200", "Settlement Suspense GL", "KES"}); - table8.AddRow(new string[] { + table147.AddRow(new string[] { "EXPENSE", "400100", "Agent Commission GL", "KES"}); - table8.AddRow(new string[] { + table147.AddRow(new string[] { "LIABILITY", "200300", "Reversal GL", "KES"}); - table8.AddRow(new string[] { + table147.AddRow(new string[] { "INCOME", "400200", "Fee Income GL", "KES"}); #line 40 - await testRunner.GivenAsync("I create the following accounts", ((string)(null)), table8, "Given "); + await testRunner.GivenAsync("I create the following accounts", ((string)(null)), table147, "Given "); #line hidden - global::Reqnroll.Table table9 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table148 = new global::Reqnroll.Table(new string[] { "AccountNumber", "BankCode", "Currency", "Name"}); - table9.AddRow(new string[] { + table148.AddRow(new string[] { "999000001", "001", "KES", "Main Settlement Account"}); #line 48 - await testRunner.GivenAsync("I create the settlement account", ((string)(null)), table9, "Given "); + await testRunner.GivenAsync("I create the settlement account", ((string)(null)), table148, "Given "); #line hidden - global::Reqnroll.Table table10 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table149 = new global::Reqnroll.Table(new string[] { "CustomerId", "FullName", "PhoneNumber", "NationalId", "AccountNumber"}); - table10.AddRow(new string[] { + table149.AddRow(new string[] { "CUST001", "Test Customer 1", "0712345678", "12345678", "12345678"}); #line 52 - await testRunner.GivenAsync("I create the following customers", ((string)(null)), table10, "Given "); + await testRunner.GivenAsync("I create the following customers", ((string)(null)), table149, "Given "); #line hidden - global::Reqnroll.Table table11 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table150 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table11.AddRow(new string[] { + table150.AddRow(new string[] { "Test Estate 1"}); #line 56 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table11, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table150, "Given "); #line hidden - global::Reqnroll.Table table12 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table151 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table12.AddRow(new string[] { + table151.AddRow(new string[] { "Test Estate 1", "Safaricom", "False", "False"}); - table12.AddRow(new string[] { + table151.AddRow(new string[] { "Test Estate 1", "Voucher", "False", "False"}); - table12.AddRow(new string[] { + table151.AddRow(new string[] { "Test Estate 1", "PataPawa PostPay", "False", "False"}); - table12.AddRow(new string[] { + table151.AddRow(new string[] { "Test Estate 1", "PataPawa PrePay", "False", "False"}); - table12.AddRow(new string[] { + table151.AddRow(new string[] { "Test Estate 1", "AgencyBanking", "False", "False"}); #line 60 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table12, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table151, "Given "); #line hidden - global::Reqnroll.Table table13 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table152 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table13.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "Safaricom"}); - table13.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "Voucher"}); - table13.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "PataPawa PostPay"}); - table13.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "PataPawa PrePay"}); - table13.AddRow(new string[] { + table152.AddRow(new string[] { "Test Estate 1", "AgencyBanking"}); #line 68 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table13, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table152, "And "); #line hidden - global::Reqnroll.Table table14 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table153 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table14.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract"}); - table14.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "Voucher", "Hospital 1 Contract"}); - table14.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "PataPawa PostPay", "PataPawa PostPay Contract"}); - table14.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "PataPawa PrePay", "PataPawa PrePay Contract"}); - table14.AddRow(new string[] { + table153.AddRow(new string[] { "Test Estate 1", "AgencyBanking", "AgencyBanking Contract"}); #line 76 - await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table14, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table153, "Given "); #line hidden - global::Reqnroll.Table table15 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table154 = 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"}); - table15.AddRow(new string[] { + table154.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"}); - table15.AddRow(new string[] { + table154.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"}); - table15.AddRow(new string[] { + table154.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"}); - table15.AddRow(new string[] { + table154.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"}); - table15.AddRow(new string[] { + table154.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", "", "MobileTopup"}); - table15.AddRow(new string[] { + table154.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", "", "MobileTopup"}); - table15.AddRow(new string[] { + table154.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", "", "MobileTopup"}); - table15.AddRow(new string[] { + table154.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 "", "MobileTopup"}); #line 84 - await testRunner.WhenAsync("I create the following Products", ((string)(null)), table15, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table154, "When "); #line hidden - global::Reqnroll.Table table16 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table155 = 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"}); - table16.AddRow(new string[] { + table155.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"}); - table16.AddRow(new string[] { + table155.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"}); - table16.AddRow(new string[] { + table155.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)), table16, "When "); + await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table155, "When "); #line hidden - global::Reqnroll.Table table17 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table156 = 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"}); - table17.AddRow(new string[] { + table156.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"}); - table17.AddRow(new string[] { + table156.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"}); - table17.AddRow(new string[] { + table156.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"}); - table17.AddRow(new string[] { + table156.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)), table17, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table156, "Given "); #line hidden - global::Reqnroll.Table table18 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table157 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "Voucher", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "PataPawa PostPay", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "PataPawa PrePay", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "AgencyBanking", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "Voucher", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "PataPawa PostPay", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "PataPawa PrePay", "Test Merchant 2", "00000001", "10000001", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "AgencyBanking", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "Safaricom", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "Voucher", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "PataPawa PostPay", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "PataPawa PrePay", "Test Merchant 3", "00000001", "10000001", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "AgencyBanking", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "Safaricom", "Test Merchant 4", "00000004", "10000004", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "Voucher", "Test Merchant 4", "00000004", "10000004", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "PataPawa PostPay", "Test Merchant 4", "00000004", "10000004", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.AddRow(new string[] { "PataPawa PrePay", "Test Merchant 4", "00000001", "10000001", "Test Estate 1"}); - table18.AddRow(new string[] { + table157.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)), table18, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table157, "Given "); #line hidden - global::Reqnroll.Table table19 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table158 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table19.AddRow(new string[] { + table158.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table19.AddRow(new string[] { + table158.AddRow(new string[] { "123456781", "Test Merchant 2", "Test Estate 1"}); - table19.AddRow(new string[] { + table158.AddRow(new string[] { "123456782", "Test Merchant 3", "Test Estate 1"}); - table19.AddRow(new string[] { + table158.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)), table19, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table158, "Given "); #line hidden - global::Reqnroll.Table table20 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table159 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table20.AddRow(new string[] { + table159.AddRow(new string[] { "Deposit1", "365.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table20.AddRow(new string[] { + table159.AddRow(new string[] { "Deposit1", "110.00", "Today", "Test Merchant 2", "Test Estate 1"}); - table20.AddRow(new string[] { + table159.AddRow(new string[] { "Deposit1", "110.00", "Today", "Test Merchant 3", "Test Estate 1"}); - table20.AddRow(new string[] { + table159.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)), table20, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table159, "Given "); #line hidden - global::Reqnroll.Table table21 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table160 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Hospital 1 Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "PataPawa PostPay Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "PataPawa PrePay Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "AgencyBanking Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Safaricom Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Hospital 1 Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "PataPawa PostPay Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "PataPawa PrePay Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "Safaricom Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "Hospital 1 Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "PataPawa PostPay Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "PataPawa PrePay Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 4", "Safaricom Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 4", "Hospital 1 Contract"}); - table21.AddRow(new string[] { + table160.AddRow(new string[] { "Test Estate 1", "Test Merchant 4", "PataPawa PostPay Contract"}); - table21.AddRow(new string[] { + table160.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)), table21, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table160, "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 table22 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table161 = 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"}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "1", "Sale", @@ -851,7 +851,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "2", "Sale", @@ -871,7 +871,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "3", "Sale", @@ -891,7 +891,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "4", "Sale", @@ -911,7 +911,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "5", "Sale", @@ -931,7 +931,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "6", "Sale", @@ -951,7 +951,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "7", "Sale", @@ -971,7 +971,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "8", "Sale", @@ -991,7 +991,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table22.AddRow(new string[] { + table161.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", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "10", "Sale", @@ -1031,7 +1031,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", "00000001"}); - table22.AddRow(new string[] { + table161.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"}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "12", "Sale", @@ -1071,7 +1071,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "13", "Sale", @@ -1091,7 +1091,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "14", "Sale", @@ -1111,7 +1111,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "15", "Sale", @@ -1131,7 +1131,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "12345678", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "100", "Sale", @@ -1151,7 +1151,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "101", "Sale", @@ -1171,7 +1171,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "102", "Sale", @@ -1191,7 +1191,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "103", "Sale", @@ -1211,7 +1211,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "104", "Sale", @@ -1231,7 +1231,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "105", "Sale", @@ -1251,7 +1251,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.AddRow(new string[] { "Today", "106", "Sale", @@ -1271,7 +1271,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "", "", ""}); - table22.AddRow(new string[] { + table161.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)), table22, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table161, "When "); #line hidden - global::Reqnroll.Table table23 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table162 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "TransactionNumber", "ResponseCode", "ResponseMessage"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "1", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "2", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "3", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "4", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "5", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "6", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "7", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "8", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "9", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "10", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "11", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "12", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "13", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "14", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "15", "0000", "SUCCESS"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "100", "1000", "Device Identifier 123456781 not valid for Merchant Test Merchant 1"}); - table23.AddRow(new string[] { + table162.AddRow(new string[] { "InvalidEstate", "Test Merchant 1", "101", "1001", "Estate Id [79902550-64df-4491-b0c1-4e78943928a3] is not a valid estate"}); - table23.AddRow(new string[] { + table162.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]"}); - table23.AddRow(new string[] { + table162.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"}); - table23.AddRow(new string[] { + table162.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]"}); - table23.AddRow(new string[] { + table162.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"}); - table23.AddRow(new string[] { + table162.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]"}); - table23.AddRow(new string[] { + table162.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)), table23, "Then "); + await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table162, "Then "); #line hidden - global::Reqnroll.Table table24 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table163 = 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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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"}); - table24.AddRow(new string[] { + table163.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)), table24, "Then "); + "tate 1\' and merchant \'Test Merchant 1\'", ((string)(null)), table163, "Then "); #line hidden - global::Reqnroll.Table table25 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table164 = 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"}); - table25.AddRow(new string[] { + table164.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"}); - table25.AddRow(new string[] { + table164.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"}); - table25.AddRow(new string[] { + table164.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"}); - table25.AddRow(new string[] { + table164.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"}); - table25.AddRow(new string[] { + table164.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)), table25, "Then "); + "tate 1\' and merchant \'Test Merchant 2\'", ((string)(null)), table164, "Then "); #line hidden - global::Reqnroll.Table table26 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table165 = 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"}); - table26.AddRow(new string[] { + table165.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"}); - table26.AddRow(new string[] { + table165.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"}); - table26.AddRow(new string[] { + table165.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"}); - table26.AddRow(new string[] { + table165.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"}); - table26.AddRow(new string[] { + table165.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)), table26, "Then "); + "tate 1\' and merchant \'Test Merchant 3\'", ((string)(null)), table165, "Then "); #line hidden } await this.ScenarioCleanupAsync(); diff --git a/TransactionProcessor.IntegrationTests/Features/Settlement.feature.cs b/TransactionProcessor.IntegrationTests/Features/Settlement.feature.cs index c19f0e8a..0b1c9d87 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 table179 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table166 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table179.AddRow(new string[] { + table166.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)), table179, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table166, "Given "); #line hidden - global::Reqnroll.Table table180 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table167 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table180.AddRow(new string[] { + table167.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "MerchantId, EstateId, role"}); #line 10 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table180, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table167, "Given "); #line hidden - global::Reqnroll.Table table181 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table168 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table181.AddRow(new string[] { + table168.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); #line 14 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table181, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table168, "Given "); #line hidden - global::Reqnroll.Table table182 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table169 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table182.AddRow(new string[] { + table169.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)), table182, "Given "); + "s", ((string)(null)), table169, "Given "); #line hidden - global::Reqnroll.Table table183 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table170 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table183.AddRow(new string[] { + table170.AddRow(new string[] { "Test Estate 1"}); #line 22 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table183, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table170, "Given "); #line hidden - global::Reqnroll.Table table184 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table171 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table184.AddRow(new string[] { + table171.AddRow(new string[] { "Test Estate 1", "Safaricom", "False", "False"}); - table184.AddRow(new string[] { + table171.AddRow(new string[] { "Test Estate 1", "Voucher", "False", "False"}); #line 26 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table184, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table171, "Given "); #line hidden - global::Reqnroll.Table table185 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table172 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table185.AddRow(new string[] { + table172.AddRow(new string[] { "Test Estate 1", "Safaricom"}); - table185.AddRow(new string[] { + table172.AddRow(new string[] { "Test Estate 1", "Voucher"}); #line 31 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table185, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table172, "And "); #line hidden - global::Reqnroll.Table table186 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table173 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table186.AddRow(new string[] { + table173.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract"}); - table186.AddRow(new string[] { + table173.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)), table186, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table173, "Given "); #line hidden - global::Reqnroll.Table table187 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table174 = 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"}); - table187.AddRow(new string[] { + table174.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"}); - table187.AddRow(new string[] { + table174.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)), table187, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table174, "When "); #line hidden - global::Reqnroll.Table table188 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table175 = 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"}); - table188.AddRow(new string[] { + table175.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)), table188, "When "); + await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table175, "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 table189 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table176 = 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"}); - table189.AddRow(new string[] { + table176.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"}); - table189.AddRow(new string[] { + table176.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"}); - table189.AddRow(new string[] { + table176.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)), table189, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table176, "Given "); #line hidden - global::Reqnroll.Table table190 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table177 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table190.AddRow(new string[] { + table177.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table190.AddRow(new string[] { + table177.AddRow(new string[] { "Voucher", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table190.AddRow(new string[] { + table177.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table190.AddRow(new string[] { + table177.AddRow(new string[] { "Voucher", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table190.AddRow(new string[] { + table177.AddRow(new string[] { "Safaricom", "Test Merchant 3", "00000003", "10000003", "Test Estate 1"}); - table190.AddRow(new string[] { + table177.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)), table190, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table177, "Given "); #line hidden - global::Reqnroll.Table table191 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table178 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table191.AddRow(new string[] { + table178.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table191.AddRow(new string[] { + table178.AddRow(new string[] { "123456781", "Test Merchant 2", "Test Estate 1"}); - table191.AddRow(new string[] { + table178.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)), table191, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table178, "Given "); #line hidden - global::Reqnroll.Table table192 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table179 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table192.AddRow(new string[] { + table179.AddRow(new string[] { "Deposit1", "210.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table192.AddRow(new string[] { + table179.AddRow(new string[] { "Deposit1", "110.00", "Today", "Test Merchant 2", "Test Estate 1"}); - table192.AddRow(new string[] { + table179.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)), table192, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table179, "Given "); #line hidden - global::Reqnroll.Table table193 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table180 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table193.AddRow(new string[] { + table180.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); - table193.AddRow(new string[] { + table180.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Hospital 1 Contract"}); - table193.AddRow(new string[] { + table180.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Safaricom Contract"}); - table193.AddRow(new string[] { + table180.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Hospital 1 Contract"}); - table193.AddRow(new string[] { + table180.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "Safaricom Contract"}); - table193.AddRow(new string[] { + table180.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)), table193, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table180, "When "); #line hidden - global::Reqnroll.Table table194 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table181 = 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"}); - table194.AddRow(new string[] { + table181.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", "", ""}); - table194.AddRow(new string[] { + table181.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", "", ""}); - table194.AddRow(new string[] { + table181.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", "", ""}); - table194.AddRow(new string[] { + table181.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", "", ""}); - table194.AddRow(new string[] { + table181.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", ""}); - table194.AddRow(new string[] { + table181.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"}); - table194.AddRow(new string[] { + table181.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", ""}); - table194.AddRow(new string[] { + table181.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)), table194, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table181, "When "); #line hidden - global::Reqnroll.Table table195 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table182 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "TransactionNumber", "ResponseCode", "ResponseMessage"}); - table195.AddRow(new string[] { + table182.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "1", "0000", "SUCCESS"}); - table195.AddRow(new string[] { + table182.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "2", "0000", "SUCCESS"}); - table195.AddRow(new string[] { + table182.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "3", "0000", "SUCCESS"}); - table195.AddRow(new string[] { + table182.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "4", "0000", "SUCCESS"}); - table195.AddRow(new string[] { + table182.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "5", "0000", "SUCCESS"}); - table195.AddRow(new string[] { + table182.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "6", "0000", "SUCCESS"}); - table195.AddRow(new string[] { + table182.AddRow(new string[] { "Test Estate 1", "Test Merchant 3", "7", "0000", "SUCCESS"}); - table195.AddRow(new string[] { + table182.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)), table195, "Then "); + await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table182, "Then "); #line hidden - global::Reqnroll.Table table196 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table183 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table196.AddRow(new string[] { + table183.AddRow(new string[] { "2022-01-13", "Test Estate 1", "Test Merchant 2", "1"}); - table196.AddRow(new string[] { + table183.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)), table196, "When "); + await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table183, "When "); #line hidden - global::Reqnroll.Table table197 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table184 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table197.AddRow(new string[] { + table184.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)), table197, "When "); + await testRunner.WhenAsync("I get the completed settlements the following information should be returned", ((string)(null)), table184, "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 table198 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table185 = 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"}); - table198.AddRow(new string[] { + table185.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"}); - table198.AddRow(new string[] { + table185.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)), table198, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table185, "Given "); #line hidden - global::Reqnroll.Table table199 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table186 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table199.AddRow(new string[] { + table186.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table199.AddRow(new string[] { + table186.AddRow(new string[] { "Voucher", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table199.AddRow(new string[] { + table186.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table199.AddRow(new string[] { + table186.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)), table199, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table186, "Given "); #line hidden - global::Reqnroll.Table table200 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table187 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table200.AddRow(new string[] { + table187.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table200.AddRow(new string[] { + table187.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)), table200, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table187, "Given "); #line hidden - global::Reqnroll.Table table201 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table188 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table201.AddRow(new string[] { + table188.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); - table201.AddRow(new string[] { + table188.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Hospital 1 Contract"}); - table201.AddRow(new string[] { + table188.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Safaricom Contract"}); - table201.AddRow(new string[] { + table188.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)), table201, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table188, "When "); #line hidden - global::Reqnroll.Table table202 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table189 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table202.AddRow(new string[] { + table189.AddRow(new string[] { "Deposit1", "210.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table202.AddRow(new string[] { + table189.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)), table202, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table189, "Given "); #line hidden - global::Reqnroll.Table table203 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table190 = 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"}); - table203.AddRow(new string[] { + table190.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", "", ""}); - table203.AddRow(new string[] { + table190.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", "", ""}); - table203.AddRow(new string[] { + table190.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", "", ""}); - table203.AddRow(new string[] { + table190.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", ""}); - table203.AddRow(new string[] { + table190.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)), table203, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table190, "When "); #line hidden - global::Reqnroll.Table table204 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table191 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "TransactionNumber", "ResponseCode", "ResponseMessage"}); - table204.AddRow(new string[] { + table191.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "1", "0000", "SUCCESS"}); - table204.AddRow(new string[] { + table191.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "2", "0000", "SUCCESS"}); - table204.AddRow(new string[] { + table191.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "4", "0000", "SUCCESS"}); - table204.AddRow(new string[] { + table191.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "5", "0000", "SUCCESS"}); - table204.AddRow(new string[] { + table191.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)), table204, "Then "); + await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table191, "Then "); #line hidden - global::Reqnroll.Table table205 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table192 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table205.AddRow(new string[] { + table192.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)), table205, "When "); + await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table192, "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 db9f3001..da52c7b0 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 table206 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table193 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Description"}); - table206.AddRow(new string[] { + table193.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)), table206, "Given "); + await testRunner.GivenAsync("I create the following api scopes", ((string)(null)), table193, "Given "); #line hidden - global::Reqnroll.Table table207 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table194 = new global::Reqnroll.Table(new string[] { "Name", "DisplayName", "Secret", "Scopes", "UserClaims"}); - table207.AddRow(new string[] { + table194.AddRow(new string[] { "transactionProcessor", "Estate Managememt REST", "Secret1", "transactionProcessor", "MerchantId, EstateId, role"}); #line 10 - await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table207, "Given "); + await testRunner.GivenAsync("the following api resources exist", ((string)(null)), table194, "Given "); #line hidden - global::Reqnroll.Table table208 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table195 = new global::Reqnroll.Table(new string[] { "ClientId", "ClientName", "Secret", "Scopes", "GrantTypes"}); - table208.AddRow(new string[] { + table195.AddRow(new string[] { "serviceClient", "Service Client", "Secret1", "transactionProcessor", "client_credentials"}); #line 14 - await testRunner.GivenAsync("the following clients exist", ((string)(null)), table208, "Given "); + await testRunner.GivenAsync("the following clients exist", ((string)(null)), table195, "Given "); #line hidden - global::Reqnroll.Table table209 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table196 = new global::Reqnroll.Table(new string[] { "ClientId"}); - table209.AddRow(new string[] { + table196.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)), table209, "Given "); + "s", ((string)(null)), table196, "Given "); #line hidden - global::Reqnroll.Table table210 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table197 = new global::Reqnroll.Table(new string[] { "EstateName"}); - table210.AddRow(new string[] { + table197.AddRow(new string[] { "Test Estate 1"}); - table210.AddRow(new string[] { + table197.AddRow(new string[] { "Test Estate 2"}); #line 22 - await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table210, "Given "); + await testRunner.GivenAsync("I have created the following estates", ((string)(null)), table197, "Given "); #line hidden - global::Reqnroll.Table table211 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table198 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "RequireCustomMerchantNumber", "RequireCustomTerminalNumber"}); - table211.AddRow(new string[] { + table198.AddRow(new string[] { "Test Estate 1", "Safaricom", "False", "False"}); - table211.AddRow(new string[] { + table198.AddRow(new string[] { "Test Estate 2", "Safaricom", "False", "False"}); #line 27 - await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table211, "Given "); + await testRunner.GivenAsync("I have created the following operators", ((string)(null)), table198, "Given "); #line hidden - global::Reqnroll.Table table212 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table199 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName"}); - table212.AddRow(new string[] { + table199.AddRow(new string[] { "Test Estate 1", "Safaricom"}); - table212.AddRow(new string[] { + table199.AddRow(new string[] { "Test Estate 2", "Safaricom"}); #line 32 - await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table212, "And "); + await testRunner.AndAsync("I have assigned the following operators to the estates", ((string)(null)), table199, "And "); #line hidden - global::Reqnroll.Table table213 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table200 = new global::Reqnroll.Table(new string[] { "EstateName", "OperatorName", "ContractDescription"}); - table213.AddRow(new string[] { + table200.AddRow(new string[] { "Test Estate 1", "Safaricom", "Safaricom Contract"}); - table213.AddRow(new string[] { + table200.AddRow(new string[] { "Test Estate 2", "Safaricom", "Safaricom Contract"}); #line 37 - await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table213, "Given "); + await testRunner.GivenAsync("I create a contract with the following values", ((string)(null)), table200, "Given "); #line hidden - global::Reqnroll.Table table214 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table201 = 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"}); - table214.AddRow(new string[] { + table201.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"}); - table214.AddRow(new string[] { + table201.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)), table214, "When "); + await testRunner.WhenAsync("I create the following Products", ((string)(null)), table201, "When "); #line hidden - global::Reqnroll.Table table215 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table202 = 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"}); - table215.AddRow(new string[] { + table202.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"}); - table215.AddRow(new string[] { + table202.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)), table215, "When "); + await testRunner.WhenAsync("I add the following Transaction Fees", ((string)(null)), table202, "When "); #line hidden - global::Reqnroll.Table table216 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table203 = 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"}); - table216.AddRow(new string[] { + table203.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"}); - table216.AddRow(new string[] { + table203.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"}); - table216.AddRow(new string[] { + table203.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)), table216, "Given "); + await testRunner.GivenAsync("I create the following merchants", ((string)(null)), table203, "Given "); #line hidden - global::Reqnroll.Table table217 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table204 = new global::Reqnroll.Table(new string[] { "OperatorName", "MerchantName", "MerchantNumber", "TerminalNumber", "EstateName"}); - table217.AddRow(new string[] { + table204.AddRow(new string[] { "Safaricom", "Test Merchant 1", "00000001", "10000001", "Test Estate 1"}); - table217.AddRow(new string[] { + table204.AddRow(new string[] { "Safaricom", "Test Merchant 2", "00000002", "10000002", "Test Estate 1"}); - table217.AddRow(new string[] { + table204.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)), table217, "Given "); + await testRunner.GivenAsync("I have assigned the following operator to the merchants", ((string)(null)), table204, "Given "); #line hidden - global::Reqnroll.Table table218 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table205 = new global::Reqnroll.Table(new string[] { "DeviceIdentifier", "MerchantName", "EstateName"}); - table218.AddRow(new string[] { + table205.AddRow(new string[] { "123456780", "Test Merchant 1", "Test Estate 1"}); - table218.AddRow(new string[] { + table205.AddRow(new string[] { "123456781", "Test Merchant 2", "Test Estate 1"}); - table218.AddRow(new string[] { + table205.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)), table218, "Given "); + await testRunner.GivenAsync("I have assigned the following devices to the merchants", ((string)(null)), table205, "Given "); #line hidden - global::Reqnroll.Table table219 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table206 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "ContractDescription"}); - table219.AddRow(new string[] { + table206.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "Safaricom Contract"}); - table219.AddRow(new string[] { + table206.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "Safaricom Contract"}); - table219.AddRow(new string[] { + table206.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)), table219, "When "); + await testRunner.WhenAsync("I add the following contracts to the following merchants", ((string)(null)), table206, "When "); #line hidden - global::Reqnroll.Table table220 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table207 = new global::Reqnroll.Table(new string[] { "Reference", "Amount", "DateTime", "MerchantName", "EstateName"}); - table220.AddRow(new string[] { + table207.AddRow(new string[] { "Deposit1", "50000.00", "Today", "Test Merchant 1", "Test Estate 1"}); - table220.AddRow(new string[] { + table207.AddRow(new string[] { "Deposit1", "50000.00", "Today", "Test Merchant 2", "Test Estate 1"}); - table220.AddRow(new string[] { + table207.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)), table220, "Given "); + await testRunner.GivenAsync("I make the following manual merchant deposits", ((string)(null)), table207, "Given "); #line hidden - global::Reqnroll.Table table221 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table208 = 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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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"}); - table221.AddRow(new string[] { + table208.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)), table221, "When "); + await testRunner.WhenAsync("I perform the following transactions", ((string)(null)), table208, "When "); #line hidden - global::Reqnroll.Table table222 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table209 = new global::Reqnroll.Table(new string[] { "EstateName", "MerchantName", "TransactionNumber", "ResponseCode", "ResponseMessage"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "1", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "2", "1008", "DECLINED BY OPERATOR"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "3", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "4", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "5", "1008", "DECLINED BY OPERATOR"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "6", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "7", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 1", "8", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "1", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "2", "1008", "DECLINED BY OPERATOR"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "3", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.AddRow(new string[] { "Test Estate 1", "Test Merchant 2", "4", "0000", "SUCCESS"}); - table222.AddRow(new string[] { + table209.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)), table222, "Then "); + await testRunner.ThenAsync("transaction response should contain the following information", ((string)(null)), table209, "Then "); #line hidden - global::Reqnroll.Table table223 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table210 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table223.AddRow(new string[] { + table210.AddRow(new string[] { "2022-01-13", "Test Estate 1", "Test Merchant 1", "6"}); - table223.AddRow(new string[] { + table210.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)), table223, "When "); + await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table210, "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 table224 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table211 = new global::Reqnroll.Table(new string[] { "SettlementDate", "EstateName", "MerchantName", "NumberOfFees"}); - table224.AddRow(new string[] { + table211.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)), table224, "When "); + await testRunner.WhenAsync("I get the pending settlements the following information should be returned", ((string)(null)), table211, "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 table225 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table212 = new global::Reqnroll.Table(new string[] { "SettlementDate", "NumberOfFeesSettled", "ValueOfFeesSettled", "IsCompleted"}); - table225.AddRow(new string[] { + table212.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)), table225, "When "); + "ollowing data is returned", ((string)(null)), table212, "When "); #line hidden - global::Reqnroll.Table table226 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table213 = new global::Reqnroll.Table(new string[] { "SettlementDate", "NumberOfFeesSettled", "ValueOfFeesSettled", "IsCompleted"}); - table226.AddRow(new string[] { + table213.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)), table226, "When "); + "ollowing data is returned", ((string)(null)), table213, "When "); #line hidden - global::Reqnroll.Table table227 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table214 = new global::Reqnroll.Table(new string[] { "SettlementDate", "NumberOfFeesSettled", "ValueOfFeesSettled", "IsCompleted"}); - table227.AddRow(new string[] { + table214.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)), table227, "When "); + "ollowing data is returned", ((string)(null)), table214, "When "); #line hidden - global::Reqnroll.Table table228 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table215 = new global::Reqnroll.Table(new string[] { "FeeDescription", "IsSettled", "Operator", "CalculatedValue"}); - table228.AddRow(new string[] { + table215.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.50"}); - table228.AddRow(new string[] { + table215.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.13"}); - table228.AddRow(new string[] { + table215.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.75"}); - table228.AddRow(new string[] { + table215.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.20"}); - table228.AddRow(new string[] { + table215.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.30"}); - table228.AddRow(new string[] { + table215.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)), table228, "When "); + "Merchant 1\' with the Date \'2022-01-13\' the following fees are settled", ((string)(null)), table215, "When "); #line hidden - global::Reqnroll.Table table229 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table216 = new global::Reqnroll.Table(new string[] { "FeeDescription", "IsSettled", "Operator", "CalculatedValue"}); - table229.AddRow(new string[] { + table216.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.50"}); - table229.AddRow(new string[] { + table216.AddRow(new string[] { "Merchant Commission", "True", "Safaricom", "0.13"}); - table229.AddRow(new string[] { + table216.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)), table229, "When "); + "Merchant 2\' with the Date \'2022-01-13\' the following fees are settled", ((string)(null)), table216, "When "); #line hidden - global::Reqnroll.Table table230 = new global::Reqnroll.Table(new string[] { + global::Reqnroll.Table table217 = new global::Reqnroll.Table(new string[] { "FeeDescription", "IsSettled", "Operator", "CalculatedValue"}); - table230.AddRow(new string[] { + table217.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)), table230, "When "); + "Merchant 3\' with the Date \'2022-02-06\' the following fees are settled", ((string)(null)), table217, "When "); #line hidden } await this.ScenarioCleanupAsync(); diff --git a/TransactionProcessor/Bootstrapper/RepositoryRegistry.cs b/TransactionProcessor/Bootstrapper/RepositoryRegistry.cs index a5f19aaa..b0b38247 100644 --- a/TransactionProcessor/Bootstrapper/RepositoryRegistry.cs +++ b/TransactionProcessor/Bootstrapper/RepositoryRegistry.cs @@ -18,6 +18,7 @@ using PersistentSubscriptionInfo = Shared.EventStore.SubscriptionWorker.PersistentSubscriptionInfo; namespace TransactionProcessor.Bootstrapper { + using Azure.Core; using Lamar; using Microsoft.Data.SqlClient; using Microsoft.EntityFrameworkCore; @@ -65,7 +66,24 @@ public RepositoryRegistry() { this.AddDbContext(builder => builder.UseInMemoryDatabase("TransactionProcessorReadModel")); } else { - this.AddDbContext(options => options.UseSqlServer(ConfigurationReader.GetConnectionString("TransactionProcessorReadModel"))); + SqlServerRetryOptions retryOptions; + try { + retryOptions = ConfigurationReader.GetSection("AppSettings:SqlServerRetry"); + } + catch (KeyNotFoundException) { + retryOptions = null; + } + + if (retryOptions != null) { + this.AddDbContext(options => options.UseSharedSqlServer(ConfigurationReader.GetConnectionString("TransactionProcessorReadModel"), retry => { + retry.AdditionalTransientErrorNumbers = retryOptions.AdditionalTransientErrorNumbers; + retry.MaxRetryCount = retryOptions.MaxRetryCount; + retry.MaxRetryDelay = retryOptions.MaxRetryDelay; + })); + } + else { + this.AddDbContext(options => options.UseSqlServer(ConfigurationReader.GetConnectionString("TransactionProcessorReadModel"), retry => { })); + } } this.AddTransient();