private MockDateTimeProvider CreateDateTimeProvider(int duration) { MockDateTimeProvider mockDateTimeProvider = new MockDateTimeProvider(); mockDateTimeProvider.SetExpectedNow(new DateTime(2004, 12, 1, 1, 0, 0)); mockDateTimeProvider.SetExpectedNow(new DateTime(2004, 12, 1, 1, 0, 0, duration)); return(mockDateTimeProvider); }
protected void CreateStopWatchStackAndSetUpMocks() { startTime = new DateTime(2004, 12, 1, 12, 0, 0); mockDateTimeProvider = new MockDateTimeProvider(); stack = new StopWatchStack(mockDateTimeProvider); }
private MockDateTimeProvider CreateDateTimeProvider(int duration) { MockDateTimeProvider mockDateTimeProvider = new MockDateTimeProvider(); mockDateTimeProvider.SetExpectedNow(new DateTime(2004, 12, 1, 1, 0, 0)); mockDateTimeProvider.SetExpectedNow(new DateTime(2004, 12, 1, 1, 0, 0, duration)); return mockDateTimeProvider; }