Skip to content

Commit 6d27fe4

Browse files
Merge pull request #165 from TransactionProcessing/task/#160_domainservicerefactor
Possible fix to nightly build
2 parents d3d94ba + 4a9f553 commit 6d27fe4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

TransactionProcessor.IntegrationTests/Settlement/Settlement.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Background:
4646
| EstateName | OperatorName | ContractDescription | ProductName | CalculationType | FeeDescription | Value |
4747
| Test Estate 1 | Safaricom | Safaricom Contract | Variable Topup | Fixed | Merchant Commission | 2.50 |
4848

49+
@PRTest
4950
Scenario: Get Pending Settlement
5051
Given I create the following merchants
5152
| MerchantName | AddressLine1 | Town | Region | Country | ContactName | EmailAddress | EstateName | SettlementSchedule |

TransactionProcessor.IntegrationTests/Shared/SharedSteps.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,12 +939,12 @@ private DateTime GetSettlementDate(DateTime now,
939939

940940
if (nextSettlementDate == "NextWeek")
941941
{
942-
return now.AddDays(7).Date;
942+
return now.AddDays(6).Date;
943943
}
944944

945945
if (nextSettlementDate == "NextMonth")
946946
{
947-
return now.AddMonths(1).Date;
947+
return now.AddMonths(1).Date.AddDays(-1).Date;
948948
}
949949

950950
return now.Date;

0 commit comments

Comments
 (0)