Skip to content

Commit 0413431

Browse files
:|
1 parent d52b764 commit 0413431

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

TransactionProcessor.IntegrationTests/Common/SpecflowTableHelper.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ public static DateTime GetDateForDateString(String dateString,
3838
case "TODAY":
3939
return today.Date;
4040
case "YESTERDAY":
41-
return today.Date.AddDays(-1).Date;
41+
return today.AddDays(-1).Date;
4242
case "LASTWEEK":
43-
return today.Date.AddDays(-7).Date;
43+
return today.AddDays(-7).Date;
4444
case "NEXTWEEK":
45-
return today.Date.AddDays(7).Date;
45+
return today.AddDays(7).Date;
4646
case "LASTMONTH":
47-
return today.Date.AddMonths(-1).Date;
47+
return today.AddMonths(-1).Date;
4848
case "LASTYEAR":
4949
return today.AddYears(-1).Date;
5050
case "TOMORROW":
51-
return today.Date.AddDays(1).Date;
51+
return today.AddDays(1).Date;
5252
default:
5353
return DateTime.Parse(dateString);
5454
}

TransactionProcessor.IntegrationTests/Shared/SharedSteps.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,17 +925,17 @@ private DateTime GetSettlementDate(DateTime now,
925925
{
926926
if (nextSettlementDate == "Yesterday")
927927
{
928-
return now.Date.AddDays(-1).Date;
928+
return now.AddDays(-1).Date;
929929
}
930930

931931
if (nextSettlementDate == "NextWeek")
932932
{
933-
return now.Date.AddHours(-1).AddDays(7).Date;
933+
return now.AddDays(7).Date;
934934
}
935935

936936
if (nextSettlementDate == "NextMonth")
937937
{
938-
return now.Date.AddHours(-1).AddMonths(1).Date;
938+
return now.AddMonths(1).Date;
939939
}
940940

941941
return now.Date;

0 commit comments

Comments
 (0)