/// <summary> /// Initializes a new instance of the <see cref="TeamSeasonsControlViewModel"/> class. /// </summary> /// <param name="teamSeasonRepository"> /// The <see cref="ITeamSeasonRepository"/> object by which team season data will be accessed. /// </param> /// <param name="teamSeasonScheduleRepository"> /// The <see cref="ITeamSeasonScheduleProfileRepository"/> object by which team season opponent profile data /// will be accessed. /// </param> /// <param name="teamSeasonScheduleTotalsRepository"> /// The <see cref="ITeamSeasonScheduleTotalsRepository"/> object by which team season schedule totals data will /// be accessed. /// </param> /// <param name="teamSeasonScheduleAveragesRepository"> /// The <see cref="ITeamSeasonScheduleAveragesRepository"/> object by which team season schedule averages data /// will be accessed. /// </param> public TeamSeasonsControlViewModel( ITeamSeasonRepository teamSeasonRepository, ITeamSeasonScheduleRepository teamSeasonScheduleRepository) { _teamSeasonRepository = teamSeasonRepository; _teamSeasonScheduleRepository = teamSeasonScheduleRepository; }
/// <summary> /// Initializes a new instance of the <see cref="TeamSeasonsController"/> class. /// </summary> /// <param name="teamSeasonRepository">The repository by which team season data will be accessed.</param> /// <param name="sharedRepository">The repository by which shared data resources will be accessed.</param> /// <param name="mapper">The AutoMapper object used for object-object mapping.</param> /// <param name="linkGenerator">The <see cref="LinkGenerator"/> object used to generate URLs.</param> public TeamSeasonsController(ITeamSeasonRepository teamSeasonRepository, ISharedRepository sharedRepository, IMapper mapper, LinkGenerator linkGenerator) { _teamSeasonRepository = teamSeasonRepository; _sharedRepository = sharedRepository; _mapper = mapper; _linkGenerator = linkGenerator; }
/// <summary> /// Initializes a new instance of the <see cref="TeamSeasonsAdminController"/> class. /// </summary> /// <param name="teamSeasonsIndexViewModel"> /// The <see cref="ITeamSeasonsIndexViewModel"/> that will provide ViewModel data to the Index view. /// </param> /// <param name="teamSeasonsDetailsViewModel"> /// The <see cref="ITeamSeasonsDetailsViewModel"/> that will provide ViewModel data to the Details view. /// </param> /// <param name="teamSeasonRepository"> /// The <see cref="ITeamSeasonRepository"/> by which league data will be accessed. /// </param> /// <param name="sharedRepository"> /// The <see cref="ISharedRepository"/> by which shared data resources will be accessed. /// </param> public TeamSeasonsAdminController( ITeamSeasonsIndexViewModel teamSeasonsIndexViewModel, ITeamSeasonsDetailsViewModel teamSeasonsDetailsViewModel, ITeamSeasonRepository teamSeasonRepository, ISharedRepository sharedRepository) { _teamSeasonsIndexViewModel = teamSeasonsIndexViewModel; _teamSeasonsDetailsViewModel = teamSeasonsDetailsViewModel; _teamSeasonRepository = teamSeasonRepository; _sharedRepository = sharedRepository; }
/// <summary> /// Initializes a new instance of the <see cref="GamePredictorWindowViewModel"/> class. /// </summary> /// <param name="seasonRepository"> /// The <see cref="ISeasonRepository"/> object by which season data will be accessed. /// </param> /// <param name="teamSeasonRepository"> /// The <see cref="ITeamSeasonRepository"/> object by which season data will be accessed. /// </param> /// <param name="gamePredictorService"> /// The <see cref="IGamePredictorService"/> object used to calculate predicted game scores. /// </param> /// <param name="messageBoxService"> /// A <see cref="IMessageBoxService"/> object to show message boxes. /// </param> public GamePredictorWindowViewModel( ISeasonRepository seasonRepository, ITeamSeasonRepository teamSeasonRepository, IGamePredictorService gamePredictorService, IMessageBoxService messageBoxService) { _seasonRepository = seasonRepository; _teamSeasonRepository = teamSeasonRepository; _gamePredictorService = gamePredictorService; _messageBoxService = messageBoxService; }
/// <summary> /// Initializes a new instance of the <see cref="WeeklyUpdateService"/> class. /// </summary> /// <param name="seasonRepository">The repository by which WeekCount data will be accessed.</param> /// <param name="gameRepository">The repository by which Game data will be accessed.</param> /// <param name="leagueSeasonRepository">The repository by which LeagueSeason data will be accessed.</param> /// <param name="leagueSeasonTotalsRepository">The repository by which LeagueSeasonTotals data will be accessed.</param> /// <param name="teamSeasonRepository">The repository by which TeamSeason data will be accessed.</param> /// <param name="teamSeasonScheduleTotalsRepository">The repository by which TeamSeasonScheduleTotals data will be accessed.</param> /// <param name="teamSeasonScheduleAveragesRepository">The repository by which TeamSeasonScheduleAverages data will be accessed.</param> /// <param name="sharedRepository">The repository by which data will be accessed.</param> public WeeklyUpdateService( ISeasonRepository seasonRepository, IGameRepository gameRepository, ILeagueSeasonRepository leagueSeasonRepository, ILeagueSeasonTotalsRepository leagueSeasonTotalsRepository, ITeamSeasonRepository teamSeasonRepository, ITeamSeasonScheduleRepository teamSeasonScheduleRepository, ISharedRepository sharedRepository) { _seasonRepository = seasonRepository; _gameRepository = gameRepository; _leagueSeasonRepository = leagueSeasonRepository; _leagueSeasonTotalsRepository = leagueSeasonTotalsRepository; _teamSeasonRepository = teamSeasonRepository; _teamSeasonScheduleRepository = teamSeasonScheduleRepository; _sharedRepository = sharedRepository; }
/// <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; }
public ProcessGameStrategyBaseTest() { _teamSeasonRepository = A.Fake <ITeamSeasonRepository>(); }
public AddGameStrategyTest() { _teamSeasonRepository = A.Fake <ITeamSeasonRepository>(); }
/// <summary> /// Initializes a new instance of the <see cref="SubtractGameStrategy"/> class. /// </summary> /// <param name="teamSeasonUtility">The <see cref="ITeamSeasonUtility"/> object that will modify <see cref="TeamSeason"/> entity data.</param> /// <param name="teamSeasonRepository">The repository by which team season data will be accessed.</param> public SubtractGameStrategy(ITeamSeasonRepository teamSeasonRepository) : base(teamSeasonRepository) { }
/// <summary> /// Initializes a new instance of the <see cref="AddGameStrategy"/> class. /// </summary> /// <param name="teamSeasonUtility">The utility by which TeamSeason entity data will be accessed.</param> /// <param name="teamSeasonRepository">The repository by which team season data will be accessed.</param> public AddGameStrategy(ITeamSeasonRepository teamSeasonRepository) : base(teamSeasonRepository) { }
/// <summary> /// Initializes a new instance of the <see cref="ProcessGameStrategyFactory"/> class. /// </summary> /// <param name="teamSeasonRepository">The repository by which team season data will be accessed.</param> public ProcessGameStrategyFactory(ITeamSeasonRepository teamSeasonRepository) { _teamSeasonRepository = teamSeasonRepository; }
/// <summary> /// Initializes a new instance of the <see cref="GamePredictorController"/> class. /// </summary> /// <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> public GamePredictorController(ISeasonRepository seasonRepository, ITeamSeasonRepository teamSeasonRepository) { _seasonRepository = seasonRepository; _teamSeasonRepository = teamSeasonRepository; }
/// <summary> /// Initializes a new instance of the <see cref="RankingsControlViewModel"/> class. /// </summary> /// <param name="teamSeasonRepository">The repository by which team season data will be accessed.</param> public RankingsControlViewModel(ITeamSeasonRepository teamSeasonRepository) { _teamSeasonRepository = teamSeasonRepository; }