Exemplo n.º 1
0
 /// <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="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;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamSeasonScheduleProfileController"/> class.
 /// </summary>
 /// <param name="teamSeasonScheduleProfileRepository">The repository by which team season schedule profile data will be accessed.</param>
 /// <param name="mapper">The AutoMapper object used for object-object mapping.</param>
 public TeamSeasonScheduleController(ITeamSeasonScheduleRepository teamSeasonScheduleRepository, IMapper mapper)
 {
     _teamSeasonScheduleRepository = teamSeasonScheduleRepository;
     _mapper = mapper;
 }