public void setUp() { probeMock = Mock.Create <LastActivityProbe>(); activityListenerMock = Mock.Create <ActivityPeriodsListener>(); clockMock = Mock.Create <Clock>(); activityCheckerSut = new ActivityChecker(probeMock, clockMock); activityCheckerSut.SetActivityListner(activityListenerMock); SetCurrentTime(DateTime.Now); }
public void setUp() { policies = new TimeTablePolicies(); var timeTable = new TimeTable(policies); activityChecker = new ActivityChecker(GetLastActivityProbeStub(), GetClockStub()); activityChecker.SetActivityListner(timeTable); statsReporter = new StatsReporterImpl(timeTable, policies, GetClockStub()); }