Given an POCO Event{OffsetDateTime Start, OffsetDateTime End} and a POCO Trial {OffsetDateTime Start, OffsetDateTime End}
Where trials typical span hours, and events happen over a few seconds.
How can I test whether an Event happened within a Trial?
The Naive code that came before, used: event.Start > trial.Start && event.Start < trial.End
but converting to NodaTime those comparisons are no longer valid.
I suspect I can't without making some assumptions about how it should be converted to instants and intervals, considering both Event and Trial come from a third party library, that should probably be using timezoned types, or instants rather then OffsetDateTimes.