/// <summary> /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class. /// </summary> /// <param name="seasonRepository"> /// The <see cref="ISeasonRepository"/> object by which season data will be accessed. /// </param> /// <param name="gamesWindowFactory"> /// The <see cref="IGamesWindowFactory"/> object by which the attached games window will be created. /// </param> /// <param name="gamePredictorWindowFactory"> /// The <see cref="IGamePredictorWindowFactory"/> object by which the attached game predictor window will be /// created. /// </param> /// <param name="weeklyUpdateService"> /// The <see cref="IWeeklyUpdateService"/> object that will run the weekly update. /// </param> public MainWindowViewModel( ISeasonRepository seasonRepository, IGamesWindowFactory gamesWindowFactory, IGamePredictorWindowFactory gamePredictorWindowFactory, IWeeklyUpdateService weeklyUpdateService) { _seasonRepository = seasonRepository; _gamesWindowFactory = gamesWindowFactory; _gamePredictorWindowFactory = gamePredictorWindowFactory; _weeklyUpdateService = weeklyUpdateService; }
/// <summary> /// Initializes a new instance of the <see cref="TeamSeasonsController"/> class. /// </summary> /// <param name="teamSeasonsIndexViewModel"> /// The <see cref="ITeamSeasonsIndexViewModel"/> that will provide data to the TeamSeasons index view. /// </param> /// <param name="teamSeasonsDetailsViewModel"> /// The <see cref="ITeamSeasonsDetailsViewModel"/> that will provide data to the TeamSeasons details view. /// </param> /// <param name="seasonRepository"> /// The <see cref="ISeasonRepository"/> by which season data will be accessed. /// </param> /// <param name="teamSeasonRepository"> /// The <see cref="ITeamSeasonRepository"/> by which team season data will be accessed. /// </param> /// <param name="teamSeasonScheduleProfileRepository"> /// The <see cref="ITeamSeasonScheduleProfileRepository"/> by which team season schedule profile data will be /// accessed. /// </param> /// <param name="teamSeasonScheduleTotalsRepository"> /// The <see cref="ITeamSeasonScheduleTotalsRepository"/> by which team season schedule totals data will be /// accessed. /// </param> /// <param name="teamSeasonScheduleAveragesRepository"> /// The <see cref="ITeamSeasonScheduleAveragesRepository"/> by which team season schedule averages data will be /// accessed. /// </param> /// <param name="sharedRepository"> /// The <see cref="ISharedRepository"/> by which shared data resources will be accessed. /// </param> /// <param name="weeklyUpdateService"> /// The <see cref="IWeeklyUpdateService"/> that will run weekly updates of the data store. /// </param> public TeamSeasonsController( ITeamSeasonsIndexViewModel teamSeasonsIndexViewModel, ITeamSeasonsDetailsViewModel teamSeasonsDetailsViewModel, ISeasonRepository seasonRepository, ITeamSeasonRepository teamSeasonRepository, ITeamSeasonScheduleRepository teamSeasonScheduleRepository, ISharedRepository sharedRepository, IWeeklyUpdateService weeklyUpdateService) { _teamSeasonsIndexViewModel = teamSeasonsIndexViewModel; _teamSeasonsDetailsViewModel = teamSeasonsDetailsViewModel; _seasonRepository = seasonRepository; _teamSeasonRepository = teamSeasonRepository; _teamSeasonScheduleRepository = teamSeasonScheduleRepository; _sharedRepository = sharedRepository; _weeklyUpdateService = weeklyUpdateService; }
/// <summary> /// Initializes a new instance of the <see cref="ServicesController"/> class. /// </summary> public ServicesController(IWeeklyUpdateService weeklyUpdateService) { _weeklyUpdateService = weeklyUpdateService; }