public GamesUpdaterTests() { var timeProvider = new Mock<ITimeProvider>(); timeProvider.Setup(p => p.GetCurrentTime()) .Returns(_currentDate); _gamesScheduler = new GamesUpdater(timeProvider.Object); }
public LeagueGamesUpdater(ITimeProvider timeProvider, ProgressFactory progressFactory, GamesUpdater gamesUpdater) { _timeProvider = timeProvider; _progressFactory = progressFactory; _gamesUpdater = gamesUpdater; }