pszczyg

Untitled

Jun 30th, 2017
290
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public interface IAmDateTimeProvider
  2.     {
  3.         DateTime Now { get; set; }
  4.     }
  5.  
  6.     public class DateTimeProvider
  7.     {
  8.         public DateTime Now => DateTime.Now;
  9.     }
  10.  
  11.     public class TestDateTimeProvider
  12.     {
  13.         public TestDateTimeProvider(DateTime desiredTime)
  14.         {
  15.             Now = desiredTime;
  16.         }
  17.  
  18.         public DateTime Now { get; set;}
  19.     }
RAW Paste Data