public static void ClassInitialize(TestContext testContext)
        {
            _timer = Substitute.For <IStopwatchTracker>();
            _stopwatchTrackerData = Substitute.For <IStopwatchTrackerData>();

            _timer = new StopwatchTracker(_stopwatchTrackerData);
        }
示例#2
0
 // generic constructor for timer class
 public StopwatchTracker(IStopwatchTrackerData stopwatchTrackerData)
 {
     _stopwatchTrackerData = stopwatchTrackerData;
 }