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) { this.gamingGroupSaver = gamingGroupSaver; this.gamingGroupRetriever = gamingGroupRetriever; this.playerWithNemesisViewModelBuilder = playerWithNemesisViewModelBuilder; this.gameDefinitionSummaryViewModelBuilder = gameDefinitionSummaryViewModelBuilder; this.gamingGroupContextSwitcher = gamingGroupContextSwitcher; this.playerRetriever = playerRetriever; this.gameDefinitionRetriever = gameDefinitionRetriever; this.playedGameRetriever = playedGameRetriever; this.playedGameDetailsViewModelBuilder = playedGameDetailsViewModelBuilder; this.transformer = transformer; this.topGamingGroupsRetriever = topGamingGroupsRetriever; this.securedEntityValidator = securedEntityValidator; this.deleteGamingGroupComponent = deleteGamingGroupComponent; }
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; }
public TopGamingGroupsRetriever( IGamingGroupRetriever gamingGroupRetriever, IDateUtilities dateUtilities, ICacheService cacheService) : base(dateUtilities, cacheService) { _gamingGroupRetriever = gamingGroupRetriever; }
public AccountController( ApplicationUserManager userManager, IUserRegisterer userRegisterer, IFirstTimeAuthenticator firstTimeAuthenticator, IAuthenticationManager authenticationManager, IGamingGroupInviteConsumer gamingGroupInvitationConsumer, IGamingGroupRetriever gamingGroupRetriever, IBoardGameGeekUserSaver boardGameGeekUserSaver, IBoardGameGeekApiClient boardGameGeekApiClient, IUserRetriever userRetriever, ITransformer transformer, IGamingGroupContextSwitcher gamingGroupContextSwitcher) { _userManager = userManager; _userRegisterer = userRegisterer; _firstTimeAuthenticator = firstTimeAuthenticator; _authenticationManager = authenticationManager; _gamingGroupInvitationConsumer = gamingGroupInvitationConsumer; _gamingGroupRetriever = gamingGroupRetriever; _boardGameGeekUserSaver = boardGameGeekUserSaver; _boardGameGeekApiClient = boardGameGeekApiClient; _userRetriever = userRetriever; _transformer = transformer; _gamingGroupContextSwitcher = gamingGroupContextSwitcher; }
public PlayerController(IDataContext dataContext, IGameResultViewModelBuilder builder, IPlayerDetailsViewModelBuilder playerDetailsViewModelBuilder, IShowingXResultsMessageBuilder showingXResultsMessageBuilder, IPlayerSaver playerSaver, IPlayerRetriever playerRetriever, IPlayerInviter playerInviter, IPlayerEditViewModelBuilder playerEditViewModelBuilder, IPlayerSummaryBuilder playerSummaryBuilder, ITopPlayerViewModelBuilder topPlayerViewModelBuilder, INemesisHistoryRetriever nemesisHistoryRetriever, INemesisChangeViewModelBuilder nemesisChangeViewModelBuilder, IGamingGroupRetriever gamingGroupRetriever) { this.dataContext = dataContext; 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; _gamingGroupRetriever = gamingGroupRetriever; }
public virtual void SetUp() { userStoreMock = MockRepository.GenerateMock <IUserStore <ApplicationUser> >(); gamingGroupInviteConsumerMock = MockRepository.GenerateMock <IGamingGroupInviteConsumer>(); userRegistererMock = MockRepository.GenerateMock <IUserRegisterer>(); this.firstTimeAuthenticatorMock = MockRepository.GenerateMock <IFirstTimeAuthenticator>(); this.authenticationManagerMock = MockRepository.GenerateMock <IAuthenticationManager>(); var dataProtector = MockRepository.GenerateMock <IDataProtector>(); dataProtectionProviderMock = MockRepository.GenerateMock <IDataProtectionProvider>(); gamingGroupRetrieverMock = MockRepository.GenerateMock <IGamingGroupRetriever>(); dataProtectionProviderMock.Expect(mock => mock.Create(Arg <string> .Is.Anything)).Return(dataProtector); userManager = new ApplicationUserManager(userStoreMock, dataProtectionProviderMock); accountControllerPartialMock = MockRepository.GeneratePartialMock <AccountController>( userManager, userRegistererMock, this.firstTimeAuthenticatorMock, this.authenticationManagerMock, gamingGroupInviteConsumerMock, gamingGroupRetrieverMock); currentUser = new ApplicationUser() { Id = "new application user", CurrentGamingGroupId = 1 }; registerViewModel = new RegisterViewModel() { ConfirmPassword = "******", Password = "******", UserName = "******", EmailAddress = "*****@*****.**" }; }
public GamingGroupController( IGamingGroupViewModelBuilder gamingGroupViewModelBuilder, IGamingGroupSaver gamingGroupSaver, IGamingGroupRetriever gamingGroupRetriever, IPlayerWithNemesisViewModelBuilder playerWithNemesisViewModelBuilder, IGameDefinitionSummaryViewModelBuilder gameDefinitionSummaryViewModelBuilder, IGamingGroupContextSwitcher gamingGroupContextSwitcher) { this.gamingGroupViewModelBuilder = gamingGroupViewModelBuilder; this.gamingGroupSaver = gamingGroupSaver; this.gamingGroupRetriever = gamingGroupRetriever; this.playerWithNemesisViewModelBuilder = playerWithNemesisViewModelBuilder; this.gameDefinitionSummaryViewModelBuilder = gameDefinitionSummaryViewModelBuilder; this.gamingGroupContextSwitcher = gamingGroupContextSwitcher; }
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; }
public AccountController( ApplicationUserManager userManager, IUserRegisterer userRegisterer, IFirstTimeAuthenticator firstTimeAuthenticator, IAuthenticationManager authenticationManager, IGamingGroupInviteConsumer gamingGroupInvitationConsumer, IGamingGroupRetriever gamingGroupRetriever) { this.userManager = userManager; this.userRegisterer = userRegisterer; this.firstTimeAuthenticator = firstTimeAuthenticator; this.authenticationManager = authenticationManager; this.gamingGroupInvitationConsumer = gamingGroupInvitationConsumer; _gamingGroupRetriever = gamingGroupRetriever; }
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); }
public virtual void SetUp() { userStoreMock = MockRepository.GenerateMock<IUserStore<ApplicationUser>>(); gamingGroupInviteConsumerMock = MockRepository.GenerateMock<IGamingGroupInviteConsumer>(); userRegistererMock = MockRepository.GenerateMock<IUserRegisterer>(); this.firstTimeAuthenticatorMock = MockRepository.GenerateMock<IFirstTimeAuthenticator>(); this.authenticationManagerMock = MockRepository.GenerateMock<IAuthenticationManager>(); var dataProtector = MockRepository.GenerateMock<IDataProtector>(); dataProtectionProviderMock = MockRepository.GenerateMock<IDataProtectionProvider>(); gamingGroupRetrieverMock = MockRepository.GenerateMock<IGamingGroupRetriever>(); boardGameGeekUserSaver = MockRepository.GenerateMock<IBoardGameGeekUserSaver>(); boardGameGeekApiClient = MockRepository.GenerateMock<IBoardGameGeekApiClient>(); userRetriever = MockRepository.GenerateMock<IUserRetriever>(); dataProtectionProviderMock.Expect(mock => mock.Create(Arg<string>.Is.Anything)).Return(dataProtector); userManager = new ApplicationUserManager(userStoreMock, dataProtectionProviderMock); accountControllerPartialMock = MockRepository.GeneratePartialMock<AccountController>( userManager, userRegistererMock, this.firstTimeAuthenticatorMock, this.authenticationManagerMock, gamingGroupInviteConsumerMock, gamingGroupRetrieverMock, boardGameGeekUserSaver, boardGameGeekApiClient, userRetriever); currentUser = new ApplicationUser() { Id = "new application user", CurrentGamingGroupId = 1 }; registerViewModel = new RegisterViewModel() { ConfirmPassword = "******", Password = "******", UserName = "******", EmailAddress = "*****@*****.**" }; }
public AccountController( ApplicationUserManager userManager, IUserRegisterer userRegisterer, IFirstTimeAuthenticator firstTimeAuthenticator, IAuthenticationManager authenticationManager, IGamingGroupInviteConsumer gamingGroupInvitationConsumer, IGamingGroupRetriever gamingGroupRetriever, IBoardGameGeekUserSaver boardGameGeekUserSaver, IBoardGameGeekApiClient boardGameGeekApiClient, IUserRetriever userRetriever) { this.userManager = userManager; this.userRegisterer = userRegisterer; this.firstTimeAuthenticator = firstTimeAuthenticator; this.authenticationManager = authenticationManager; this.gamingGroupInvitationConsumer = gamingGroupInvitationConsumer; _gamingGroupRetriever = gamingGroupRetriever; _boardGameGeekUserSaver = boardGameGeekUserSaver; _boardGameGeekApiClient = boardGameGeekApiClient; _userRetriever = userRetriever; }
public GamingGroupController( IGamingGroupViewModelBuilder gamingGroupViewModelBuilder, IGamingGroupAccessGranter gamingGroupAccessGranter, IGamingGroupSaver gamingGroupSaver, IGamingGroupRetriever gamingGroupRetriever, IShowingXResultsMessageBuilder showingXResultsMessageBuilder, IPlayerWithNemesisViewModelBuilder playerWithNemesisViewModelBuilder, IPlayedGameDetailsViewModelBuilder playedGameDetailsViewModelBuilder, IGameDefinitionSummaryViewModelBuilder gameDefinitionSummaryViewModelBuilder, IGamingGroupContextSwitcher gamingGroupContextSwitcher) { this.gamingGroupViewModelBuilder = gamingGroupViewModelBuilder; this.gamingGroupAccessGranter = gamingGroupAccessGranter; this.gamingGroupSaver = gamingGroupSaver; this.gamingGroupRetriever = gamingGroupRetriever; this.showingXResultsMessageBuilder = showingXResultsMessageBuilder; this.playerWithNemesisViewModelBuilder = playerWithNemesisViewModelBuilder; this.playedGameDetailsViewModelBuilder = playedGameDetailsViewModelBuilder; this.gameDefinitionSummaryViewModelBuilder = gameDefinitionSummaryViewModelBuilder; this.gamingGroupContextSwitcher = gamingGroupContextSwitcher; }
public GamingGroupController( IGamingGroupSaver gamingGroupSaver, IGamingGroupRetriever gamingGroupRetriever, IPlayerWithNemesisViewModelBuilder playerWithNemesisViewModelBuilder, IGameDefinitionSummaryViewModelBuilder gameDefinitionSummaryViewModelBuilder, IGamingGroupContextSwitcher gamingGroupContextSwitcher, IPlayerRetriever playerRetriever, IGameDefinitionRetriever gameDefinitionRetriever, IPlayedGameRetriever playedGameRetriever, IPlayedGameDetailsViewModelBuilder playedGameDetailsViewModelBuilder, ITransformer transformer) { this.gamingGroupSaver = gamingGroupSaver; this.gamingGroupRetriever = gamingGroupRetriever; this.playerWithNemesisViewModelBuilder = playerWithNemesisViewModelBuilder; this.gameDefinitionSummaryViewModelBuilder = gameDefinitionSummaryViewModelBuilder; this.gamingGroupContextSwitcher = gamingGroupContextSwitcher; this.playerRetriever = playerRetriever; this.gameDefinitionRetriever = gameDefinitionRetriever; this.playedGameRetriever = playedGameRetriever; this.playedGameDetailsViewModelBuilder = playedGameDetailsViewModelBuilder; this.transformer = transformer; }
public GamingGroupsSitemapGenerator(ISitemapGenerator sitemapGenerator, IGamingGroupRetriever gamingGroupRetriever) { _sitemapGenerator = sitemapGenerator; _gamingGroupRetriever = gamingGroupRetriever; }