pszczyg

Untitled

Jun 30th, 2017
290
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         [Test]
  2.         public void Meters_Are_Checked_In_Desired_Time_Moq()
  3.         {
  4.             //Sets current time to 2016/05/05 21:34:00
  5.             var dateTimeMock = new Mock<IAmDateTimeProvider>();
  6.             dateTimeMock.Setup(x => x.Now).Returns(new DateTime(2016, 5, 5, 21, 34, 00));
  7.  
  8.             //Use Mock as TestDateTimeProvider
  9.         }
RAW Paste Data