I have a scenario in a SpecFlow feature file that contains the following step:
Then Default probation period is adjusted (DefaultProbationFacility table)
| Req_ID | ID | RegulatoryFacilityNumber | RegulatoryFacilitySourceSystemCode | TriggerTreatmentAssetClassCode | CreditRiskAssetClassCode | DefaultProbationStartDate | DefaultProbationEndDate | DefaultProbationResetIndicator | ResolvedIndicator | ResolutionDate | CrprIndicator | ProcessingDateTime |
| 252,253 | | F00008 | FLF | PI | RTL | 2020-04-01 | DateTime.Today | 0 | 0 | | 1 | getdate() |
The value for the field of the column DefaultProbationEndDate has to be the current day (DateTime.Today). However, everything I enter in this field will be converted to a string, therefore, I can't use the function DateTime.Today.
How can I make sure that the value of this field will always be the current day??
Please sign in to leave a comment.