title: Correct way of unit-testing classes that use DateTimeOffset objects?
body: <p>I would appreciate information or examples about how to correctly test code that uses DateTimeOffset instances. I know the tests have to be deterministic. </p>
  
  <p>So, how would one isolate the application from the DateTimeOffset classes ? I would, of course, like to be able to use a fake DateTimeOffset.Now, etc.</p>
  
  <p>In my tests, should I be using something like:</p>
  
  <pre><code>var myDate = new DateTimeOffset(2016, 3, 29, 12, 20, 35, 93, TimeSpan.FromHours(-3));
  </code></pre>
  
  <p>Or would I instead be using a wrapper class like MyCustomDateTimeOffset ?
  Should I not use DateTimeOffset at all in my code and use a wrapper instead?</p>