public TeamStatsController( ITeamStatsRepository teamStatsRepository, IMapper mapper) { _teamStatsRepository = teamStatsRepository; _mapper = mapper; }
public CachedTeamStatsRepository( ITeamStatsRepository decoratedComponent, ICacheRepository cache) { _decoratedComponent = decoratedComponent; _cache = cache; }
/// <summary> /// Initializes a new instance of FootballStatsActor /// </summary> /// <param name="actorService">The Microsoft.ServiceFabric.Actors.Runtime.ActorService that will host this actor instance.</param> /// <param name="actorId">The Microsoft.ServiceFabric.Actors.ActorId for this actor instance.</param> /// <param name="teamStatsRepository">The repository backing the actor.</param> public FootballStatsActor( ActorService actorService, ActorId actorId, ITeamStatsRepository teamStatsRepository) : base(actorService, actorId) { _teamStatsRepository = teamStatsRepository; }
public TeamsService(IMatchesService matchesService, ISeasonConfigService seasonsService, ITeamRepository teamRepository, ITeamStatsRepository statsRepository, IMatchRepository matchRepository, ISeasonConfigService configService, IMapper mapper) { _matchesService = matchesService; _seasonsService = seasonsService; _teamRepository = teamRepository; _statsRepository = statsRepository; _matchRepository = matchRepository; _configService = configService; _mapper = mapper; }
public void SetUp() { var builder = new ConfigurationBuilder() .AddJsonFile("appsettings.json", false, true); var configuration = builder.Build(); var configSection = configuration.GetSection("FootballStatsApi.Dal.SqlServer"); var settings = new TeamStatsRepositorySettings { ConnectionString = configSection["connectionString"], QueryTimeout = TimeSpan.Parse(configSection["queryTimeout"]) }; _repository = new TeamStatsRepository(settings); }
public DefaultPicker( IPickerOptions options, ILineupRepository lineupRepository, IPitcherRepository pitcherRepository, IPlayerStatsRepository playerStatsRepository, ITeamStatsRepository teamStatsRepository, ILineupProjector lineupProjector, ICalculateOpponentOba calculateOpponentOba, ILog logger) : base(lineupRepository, pitcherRepository) { PickerName = "Default Picker"; PickerOptions = options; Tests = new List <ILike> { new MissingInAction(lineupRepository, playerStatsRepository, options), new HotBatter(options) }; _lineupProjector = lineupProjector; _calculateOpponentOba = calculateOpponentOba; _teamStatsRepository = teamStatsRepository; _logger = logger; }