public HomeController( IPlayersService playersService, IDraftService draftService) { _playersService = playersService; _draftService = draftService; }
public DraftController( IDraftService draftService, IBroswer broswer, IIdentityHelper identityHelper, IMapper mapper) { _draftService = draftService; _broswer = broswer; _identityHelper = identityHelper; _mapper = mapper; }
public FantasyApi(AppDbContext appDbContext , UserManager <ApplicationUser> userManager , IDraftService draftService , ITeamService teamService , IPlayerService playerService) { this.appDbContext = appDbContext; this.userManager = userManager; _draftService = draftService; _teamService = teamService; _playerService = playerService; }
public FantasyController(IConfiguration configuration , IFantasyProsDataGrabber fantasyProsDataGrabber , AppDbContext appDbContext , UserManager <ApplicationUser> userManager , IDraftService draftService , IPlayerService playerService , ITeamService teamService) { _configuration = configuration; _fantasyProsDataGrabber = fantasyProsDataGrabber; _userManager = userManager; _draftService = draftService; _playerService = playerService; _teamService = teamService; }
public PlayerDraftMasterViewModel(GameCore core, League league, Func<Player, bool> playerFilter = null) : base(core) { this.league = league; this.draftService = new NaiveDraftService(); Teams = new ObservableCollection<TeamViewModel>(); DraftRounds = new UpdatableObservableCollection<PlayerDraftRoundViewModel>(new List<PlayerDraftRoundViewModel>()); IEnumerable<Player> availablePlayers = core.GameState.DraftPool.AvailablePlayers; if (playerFilter != null) { availablePlayers = availablePlayers.Where(playerFilter); } AvailablePlayers = new ObservableCollection<Player>(availablePlayers); ViewHeading = "Player Draft"; NextPick = new RelayCommand(ProcessNextPick); DraftPlayer = new RelayCommand(ProcessDraftPick); AutomatePicks = new RelayCommand(() => { while (CanDraftPlayer || CanGoToNextPick) { if (CanDraftPlayer) { ProcessDraftPick(); } if (CanGoToNextPick) { ProcessNextPick(); } } }); Reload(core); ProcessNextPick(); SelectHumanTeamIfSingle(); }
public PlayerDraftMasterViewModel(GameCore core, League league, Func <Player, bool> playerFilter = null) : base(core) { this.league = league; this.draftService = new NaiveDraftService(); Teams = new ObservableCollection <TeamViewModel>(); DraftRounds = new UpdatableObservableCollection <PlayerDraftRoundViewModel>(new List <PlayerDraftRoundViewModel>()); IEnumerable <Player> availablePlayers = core.GameState.DraftPool.AvailablePlayers; if (playerFilter != null) { availablePlayers = availablePlayers.Where(playerFilter); } AvailablePlayers = new ObservableCollection <Player>(availablePlayers); ViewHeading = "Player Draft"; NextPick = new RelayCommand(ProcessNextPick); DraftPlayer = new RelayCommand(ProcessDraftPick); AutomatePicks = new RelayCommand(() => { while (CanDraftPlayer || CanGoToNextPick) { if (CanDraftPlayer) { ProcessDraftPick(); } if (CanGoToNextPick) { ProcessNextPick(); } } }); Reload(core); ProcessNextPick(); SelectHumanTeamIfSingle(); }
public DraftHub( IDraftService draftService) { _draftService = draftService; _connectedUsers = new List<string>(); }
public ContentDraftService(IDraftService draftService, ISecurityService securityService) { this.draftService = draftService; this.securityService = securityService; }
public DestroyContentDraftCommand(IDraftService draftService) { this.draftService = draftService; }
public MatchesController(IDraftService service) { this.service = service; }
public StandingsController(IDraftService service) { this.service = service; }
public DestroyContentDraftCommand(IDraftService draftService, IWidgetService widgetService) { this.draftService = draftService; this.widgetService = widgetService; }
public DraftSetupController(IDraftService service) { this.service = service; }
public DemoController(IMatchService matchService, IDraftService draftService, IBaseService baseService) { _matchService = matchService; _draftService = draftService; _baseService = baseService; }