Beispiel #1
0
 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 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;
 }
Beispiel #3
0
 public GamingGroupController(
     IGamingGroupSaver gamingGroupSaver,
     IGamingGroupRetriever gamingGroupRetriever,
     IPlayerWithNemesisViewModelBuilder playerWithNemesisViewModelBuilder,
     IGameDefinitionSummaryViewModelBuilder gameDefinitionSummaryViewModelBuilder,
     IGamingGroupContextSwitcher gamingGroupContextSwitcher,
     IPlayerRetriever playerRetriever,
     IGameDefinitionRetriever gameDefinitionRetriever,
     IPlayedGameRetriever playedGameRetriever,
     IPlayedGameDetailsViewModelBuilder playedGameDetailsViewModelBuilder,
     ITransformer transformer,
     ITopGamingGroupsRetriever topGamingGroupsRetriever,
     ISecuredEntityValidator securedEntityValidator,
     IDeleteGamingGroupComponent deleteGamingGroupComponent,
     INemesisHistoryRetriever nemesisHistoryRetriever,
     IRecentChampionRetriever recentChampionRetriever)
 {
     _gamingGroupSaver     = gamingGroupSaver;
     _gamingGroupRetriever = gamingGroupRetriever;
     _playerWithNemesisViewModelBuilder     = playerWithNemesisViewModelBuilder;
     _gameDefinitionSummaryViewModelBuilder = gameDefinitionSummaryViewModelBuilder;
     _gamingGroupContextSwitcher            = gamingGroupContextSwitcher;
     _playerRetriever                   = playerRetriever;
     _gameDefinitionRetriever           = gameDefinitionRetriever;
     _playedGameRetriever               = playedGameRetriever;
     _playedGameDetailsViewModelBuilder = playedGameDetailsViewModelBuilder;
     _transformer = transformer;
     _topGamingGroupsRetriever   = topGamingGroupsRetriever;
     _deleteGamingGroupComponent = deleteGamingGroupComponent;
     _nemesisHistoryRetriever    = nemesisHistoryRetriever;
     _recentChampionRetriever    = recentChampionRetriever;
 }
Beispiel #4
0
 public HomeController(
     IPlayerSummaryBuilder playerSummaryBuilder,
     ITopPlayerViewModelBuilder topPlayerViewModelBuilder,
     IPlayedGameRetriever playedGameRetriever,
     INemesisHistoryRetriever nemesisHistoryRetriever,
     INemesisChangeViewModelBuilder nemesisChangeViewModelBuilder,
     IGamingGroupRetriever gamingGroupRetriever)
 {
     this.playerSummaryBuilder          = playerSummaryBuilder;
     this.topPlayerViewModelBuilder     = topPlayerViewModelBuilder;
     this.playedGameRetriever           = playedGameRetriever;
     this.nemesisHistoryRetriever       = nemesisHistoryRetriever;
     this.nemesisChangeViewModelBuilder = nemesisChangeViewModelBuilder;
     this.gamingGroupRetriever          = gamingGroupRetriever;
 }
Beispiel #5
0
 public virtual void SetUp()
 {
     AutomapperConfiguration.Configure();
     playerSummaryBuilderMock          = MockRepository.GenerateMock <IPlayerSummaryBuilder>();
     topPlayerViewModelBuilderMock     = MockRepository.GenerateMock <ITopPlayerViewModelBuilder>();
     playedGameRetrieverMock           = MockRepository.GenerateMock <IPlayedGameRetriever>();
     nemesisHistoryRetrieverMock       = MockRepository.GenerateMock <INemesisHistoryRetriever>();
     nemesisChangeViewModelBuilderMock = MockRepository.GenerateMock <INemesisChangeViewModelBuilder>();
     gamingGroupRetrieverMock          = MockRepository.GenerateMock <IGamingGroupRetriever>();
     homeControllerPartialMock         = MockRepository.GeneratePartialMock <HomeController>(
         playerSummaryBuilderMock,
         topPlayerViewModelBuilderMock,
         playedGameRetrieverMock,
         nemesisHistoryRetrieverMock,
         nemesisChangeViewModelBuilderMock,
         gamingGroupRetrieverMock);
 }