Пример #1
0
 public FplStandingsCommandHandler(IOptions <FplbotOptions> options, IEnumerable <IPublisherBuilder> publishers, IGameweekClient gameweekClient, ILeagueClient leagueClient)
 {
     _options        = options;
     _publishers     = publishers;
     _gameweekClient = gameweekClient;
     _leagueClient   = leagueClient;
 }
 public FplNextGameweekCommandHandler(IEnumerable <IPublisherBuilder> publishers, ISlackClientService slackClientBuilder, IGameweekClient gameweekClient, IFixtureClient fixtureClient, ITeamsClient teamsclient)
 {
     _publishers         = publishers;
     _slackClientBuilder = slackClientBuilder;
     _gameweekClient     = gameweekClient;
     _fixtureClient      = fixtureClient;
     _teamsclient        = teamsclient;
 }
Пример #3
0
 public NextGameweekRecurringAction(
     IOptions <FplbotOptions> options,
     IGameweekClient gwClient,
     ICaptainsByGameWeek captainsByGameweek,
     ITransfersByGameWeek transfersByGameweek,
     ILogger <NextGameweekRecurringAction> logger,
     ITokenStore tokenStore,
     ISlackClientBuilder slackClientBuilder) :
     base(options, gwClient, logger, tokenStore, slackClientBuilder)
 {
     _captainsByGameweek  = captainsByGameweek;
     _transfersByGameweek = transfersByGameweek;
 }
Пример #4
0
 protected GameweekRecurringActionBase(
     IOptions <FplbotOptions> options,
     IGameweekClient gwClient,
     ILogger <GameweekRecurringActionBase> logger,
     ITokenStore tokenStore,
     ISlackClientBuilder slackClientBuilder)
 {
     _options            = options;
     _gwClient           = gwClient;
     _logger             = logger;
     _tokenStore         = tokenStore;
     _slackClientBuilder = slackClientBuilder;
 }
Пример #5
0
 public GoalMonitorRecurringAction(
     IOptions <FplbotOptions> options,
     IGameweekClient gwClient,
     ILogger <NextGameweekRecurringAction> logger,
     ITokenStore tokenStore,
     ISlackClientBuilder slackClientBuilder,
     IPlayerClient playerClient,
     IGoalsDuringGameweek goalsDuringGameweek,
     ITransfersByGameWeek transfersByGameWeek) :
     base(options, gwClient, logger, tokenStore, slackClientBuilder)
 {
     _playerClient        = playerClient;
     _goalsDuringGameweek = goalsDuringGameweek;
     _transfersByGameWeek = transfersByGameWeek;
 }
 public NearDeadlineRecurringAction(
     IOptions <FplbotOptions> options,
     IGameweekClient gwClient,
     DateTimeUtils dateTimeUtils,
     ISlackClientBuilder slackClientBuilder,
     ILogger <NearDeadlineRecurringAction> logger,
     ITokenStore tokenStore)
 {
     _options               = options;
     _gwClient              = gwClient;
     _dateTimeUtils         = dateTimeUtils;
     _slackClientBuilder    = slackClientBuilder;
     _logger                = logger;
     _tokenStore            = tokenStore;
     _minutesBeforeDeadline = 60;
 }
Пример #7
0
 public GameweekHelper(IGameweekClient gameweekClient)
 {
     _gameweekClient = gameweekClient;
 }
Пример #8
0
 public FplCaptainCommandHandler(IEnumerable <IPublisherBuilder> publishers, IGameweekClient gameweekClient, ICaptainsByGameWeek captainsByGameWeek, IGameweekHelper gameweekHelper)
 {
     _publishers         = publishers;
     _captainsByGameWeek = captainsByGameWeek;
     _gameweekHelper     = gameweekHelper;
 }
Пример #9
0
 public FplClientTests(ITestOutputHelper logger)
 {
     _leagueClient   = Factory.Create <ILeagueClient>(logger);
     _gameweekClient = Factory.Create <IGameweekClient>(logger);
 }