public PlayerController(
     IGameResultViewModelBuilder builder,
     IPlayerDetailsViewModelBuilder playerDetailsViewModelBuilder,
     IShowingXResultsMessageBuilder showingXResultsMessageBuilder,
     IPlayerSaver playerSaver,
     IPlayerRetriever playerRetriever,
     IPlayerInviter playerInviter,
     IPlayerEditViewModelBuilder playerEditViewModelBuilder,
     IPlayerSummaryBuilder playerSummaryBuilder,
     ITopPlayerViewModelBuilder topPlayerViewModelBuilder,
     INemesisHistoryRetriever nemesisHistoryRetriever,
     INemesisChangeViewModelBuilder nemesisChangeViewModelBuilder,
     IPlayerDeleter playerDeleter)
 {
     this.builder = builder;
     this.playerDetailsViewModelBuilder = playerDetailsViewModelBuilder;
     this.showingXResultsMessageBuilder = showingXResultsMessageBuilder;
     this.playerSaver = playerSaver;
     this.playerRetriever = playerRetriever;
     this.playerInviter = playerInviter;
     this.playerEditViewModelBuilder = playerEditViewModelBuilder;
     this.playerSummaryBuilder = playerSummaryBuilder;
     this.topPlayerViewModelBuilder = topPlayerViewModelBuilder;
     this.nemesisHistoryRetriever = nemesisHistoryRetriever;
     this.nemesisChangeViewModelBuilder = nemesisChangeViewModelBuilder;
     _playerDeleter = playerDeleter;
 }
 public AchievementController(IPlayerAchievementRetriever playerAchievementRetriever,
     IPlayerRetriever playerRetriever,
     IRecentPlayerAchievementsUnlockedRetreiver recentPlayerAchievementsUnlockedRetreiver,
     IMapperFactory mapperFactory
     )
 {
     _playerAchievementRetriever = playerAchievementRetriever;
     _playerRetriever = playerRetriever;
     _recentPlayerAchievementsUnlockedRetreiver = recentPlayerAchievementsUnlockedRetreiver;
     _mapperFactory = mapperFactory;
 }
        public override void FixtureSetUp()
        {
            base.FixtureSetUp();

            dataContext = new NemeStatsDataContext();
            IPlayerRepository playerRepository = new EntityFrameworkPlayerRepository(dataContext);
            IPlayedGameRetriever playedGameRetriever = new PlayedGameRetriever(dataContext);
            playerRetriever = new PlayerRetriever(dataContext, playerRepository, playedGameRetriever);
            player1Details = playerRetriever.GetPlayerDetails(testPlayer1.Id, 0);
            player5Details = playerRetriever.GetPlayerDetails(testPlayer5.Id, 0);
        }
 public GamingGroupRetriever(
     IDataContext dataContext,
     IPlayerRetriever playerRetriever,
     IGameDefinitionRetriever gameDefinitionRetriever,
     IPlayedGameRetriever playedGameRetriever)
 {
     this.dataContext = dataContext;
     this.playerRetriever = playerRetriever;
     this.gameDefinitionRetriever = gameDefinitionRetriever;
     this.playedGameRetriever = playedGameRetriever;
 }
 public PlayedGameController(
     NemeStatsDataContext dataContext,
     IPlayedGameRetriever playedGameRetriever,
     IPlayerRetriever playerRetriever,
     IPlayedGameDetailsViewModelBuilder builder,
     IGameDefinitionRetriever gameDefinitionRetriever,
     IPlayedGameSaver playedGameSaver,
     IPlayedGameDeleter playedGameDeleter,
     IGameDefinitionSaver gameDefinitionSaver,
     IPlayerSaver playerSaver,
     IMapperFactory mapperFactory)
 {
     _dataContext = dataContext;
     _playedGameRetriever = playedGameRetriever;
     _playerRetriever = playerRetriever;
     _playedGameDetailsBuilder = builder;
     _gameDefinitionRetriever = gameDefinitionRetriever;
     _playedGameSaver = playedGameSaver;
     _playedGameDeleter = playedGameDeleter;
     _gameDefinitionSaver = gameDefinitionSaver;
     _playerSaver = playerSaver;
     _mapperFactory = mapperFactory;
 }
 public PlayersController(IPlayerSaver playerSaver, IPlayerRetriever playerRetriever)
 {
     this.playerSaver = playerSaver;
     this.playerRetriever = playerRetriever;
 }
 public PlayerStatsController(IPlayerRetriever playerRetriever, ITransformer transformer)
 {
     this.playerRetriever = playerRetriever;
     this.transformer = transformer;
 }
Beispiel #8
0
 public PlayerStatsController(IPlayerRetriever playerRetriever, ITransformer transformer)
 {
     this.playerRetriever = playerRetriever;
     this.transformer     = transformer;
 }
Beispiel #9
0
 public PlayersController(IPlayerSaver playerSaver, IPlayerRetriever playerRetriever)
 {
     this.playerSaver     = playerSaver;
     this.playerRetriever = playerRetriever;
 }
 public PlayedGameRetriever(IDataContext dataContext, IPlayerRetriever playerRetriever, IWinnerTypeCalculator winnerTypeCalculator)
 {
     _dataContext          = dataContext;
     _playerRetriever      = playerRetriever;
     _winnerTypeCalculator = winnerTypeCalculator;
 }
Beispiel #11
0
 public ListModel(IPlayerRetriever playerRetreiver)
 {
     this.playerRetreiver = playerRetreiver;
 }
Beispiel #12
0
 public TeamGenerator(IPlayerRetriever playerRetriever, ITeamRetriever teamRetriever)
 {
     this.playerRetriever = playerRetriever;
     teams   = teamRetriever.GetAllTeams();
     players = playerRetriever.GetPlayers();
 }