FirelyTeam / firely-cql-sdk

BSD 3-Clause "New" or "Revised" License
28 stars 16 forks source link

CqlContext needs a TimeProvider property #474

Closed baseTwo closed 3 weeks ago

baseTwo commented 3 weeks ago

While trying to add unit tests for Age-related functions, there is no way to do temporal tests, since Now is always based on the system time and not replaceable with deterministic values for it.

The TimeProvider provides a mechanism to override this. It would have to be included in CqlContext

baseTwo commented 3 weeks ago

Closed, CqlOperators.NowValue achieves this purpose