public static void ClassInitialize(TestContext testContext) { _timer = Substitute.For <IStopwatchTracker>(); _stopwatchTrackerData = Substitute.For <IStopwatchTrackerData>(); _timer = new StopwatchTracker(_stopwatchTrackerData); }
// generic constructor for timer class public StopwatchTracker(IStopwatchTrackerData stopwatchTrackerData) { _stopwatchTrackerData = stopwatchTrackerData; }