예제 #1
0
        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);
        }
예제 #2
0
 protected void CreateStopWatchStackAndSetUpMocks()
 {
     startTime            = new DateTime(2004, 12, 1, 12, 0, 0);
     mockDateTimeProvider = new MockDateTimeProvider();
     stack = new StopWatchStack(mockDateTimeProvider);
 }
예제 #3
0
 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;
 }
예제 #4
0
 protected void CreateStopWatchStackAndSetUpMocks() {
     startTime = new DateTime(2004, 12, 1, 12, 0, 0);
     mockDateTimeProvider = new MockDateTimeProvider();
     stack = new StopWatchStack(mockDateTimeProvider);
 }