New view for new MStest scenaroio
This commit is contained in:
@ -16,13 +16,14 @@ namespace BrokerageLib.PaymentSystem {
|
||||
/// <returns></returns>
|
||||
public DateTime CalculateFuturePaymentDate(DateTime startingDate) {
|
||||
var tempDate = startingDate.AddDays(30);
|
||||
|
||||
switch (tempDate.DayOfWeek)
|
||||
{
|
||||
case DayOfWeek.Saturday:
|
||||
tempDate = tempDate.AddDays(2);
|
||||
break;
|
||||
case DayOfWeek.Sunday:
|
||||
tempDate = tempDate.AddDays(1); // Error in our code here!
|
||||
tempDate = tempDate.AddDays(3); // Error in our code here!
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user