public GamesController(IGamesService gamesService, IPlayerGameStatsService playerGameStatsService) { _gamesService = gamesService; _playerGameStatsService = playerGameStatsService; }
public GamesController(IGamesService gamesService) { _gamesService = gamesService; }
public GamesController(IGamesService service) { _service = service; }
public GamesController(IGamesService _gamesService) { gamesService = _gamesService; }
public GameAddConsumer(IGamesService gamesService) => this.gamesService = gamesService;
public SingleGameRegisteredProjectionConsumer(IGamesService gamesService, IPublishEndpoint publisher, ILogger <SingleGameRegisteredProjectionConsumer> logger) { _gamesService = gamesService ?? throw new ArgumentNullException(nameof(gamesService)); _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public GamblersController(IGamblersService gamblers, IGamesService games) { this.gamblers = gamblers; this.games = games; }
public GamesController(IGamesService gamesService, IMapper mapper) { this.gamesService = gamesService; this.mapper = mapper; }
public NewGamesViewComponent(IGamesService gamesService) { this.gamesService = gamesService; }
/// <summary> /// Initializes new instance of GamesViewModel /// </summary> public GamesViewModel(INavigationService navigation, IGamesService gamesService, IGameImageService gameImageService, ICartService cartService) { this.navigation = navigation; this.gamesService = gamesService; this.gameImageService = gameImageService; this.cartService = cartService; gamesCollection = new ObservableCollection<Game>(); title = "Find games"; GameDetailsVisible = false; PreviousButtonVisible = false; GoForwardButtonVisible = false; if (!String.IsNullOrEmpty(GameStore.WindowsApp.Common.UserInfo.Username)) ShowUserLogged = true; // Notify when user name is changed GameStore.WindowsApp.Common.UserInfo.OnUserNameChange += () => { if (String.IsNullOrEmpty(GameStore.WindowsApp.Common.UserInfo.Username)) ShowUserLogged = false; else ShowUserLogged = true; }; }
public GamesController(ILogger <GamesController> logger, IGamesService gamesService) { _logger = logger; _gamesService = gamesService; }
public GamesController(IGamesService games, IGuessService guesses) { this.games = games; this.guesses = guesses; }
public GameTypesController(IGamesService gamesService) { _gamesService = gamesService ?? throw new ArgumentNullException(nameof(gamesService)); }
public void SetUp() { Setup(); _service = new GamesService(Mapper, RepoMock.Object); }
public CurrentlyPlayingTileViewModel(IGamesService gamesService) { _gamesService = gamesService; }
public GuessService(IGamesService games, IRepository<Guess> guesses) { this.games = games; this.guesses = guesses; }
public GuessService(IGamesService games, IRepository <Guess> guesses) { this.games = games; this.guesses = guesses; }
public RankingsService(IUnitOfWork unitOfWork, IGamesService gamesService, IMapper mapper) { this.gamesService = gamesService; this.unitOfWork = unitOfWork; this.mapper = mapper; }
public async Task <IActionResult> Index(GameNewVm model, [FromServices] GoogleRecaptchaService recaptcha, [FromServices] IGamesService games) { model.GoogleRecaptchaApiKey = this._config.GoogleRecaptcha.ApiKey; if (ModelState.IsValid) { //Captcha string recaptchaResponse = this.Request.Form["g-recaptcha-response"]; if (!await recaptcha.ValidateRecaptcha(this._config.GoogleRecaptcha.ApiSecret, recaptchaResponse)) { return(ViewAlertMessageDanger(model, "Access denied", "Invalid captcha token.")); } //Create form Guid session = Guid.NewGuid(); Game game = new Game() { CreatedAt = DateTime.UtcNow, HandAuthor = model.Hand, ID_Session = session, NameAuthor = model.NameAuthor, NameOpponent = model.NameOpponent, Memo = model.Memo, Trophy = model.Trophy, }; Game result = games.Create(game); //Create authors cookie this.Response.Cookies.Append("GameRPS_" + result.ID.ToString(), session.ToString(), new Microsoft.AspNetCore.Http.CookieOptions() { Expires = DateTime.Now.AddMonths(1), }); return(RedirectAlertInfo("/" + result.ID.ToString(), "Success", "The game has been successfully created.")); } return(ViewAlertMessageDanger(model, "No valid data", "Please enter valid data: login, password, captcha.")); }
public GamesController(IGamesService gamesService, IGameImageService gameImageService) { _gamesService = gamesService; _gameImageService = gameImageService; }
public GameHub(IGamesService gamesService) { _gamesService = gamesService; }
public HomeController(IGamesService gamesService) { this.gamesService = gamesService; }
public RegisterSingleGameCommandConsumer(IGamesService gamesService, IPublishEndpoint publisher, ILogger <RegisterSingleGameCommandConsumer> logger) { _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public LOLController(IGamesService gamesService) { this.gamesService = gamesService; }
public HomeController() { this.gamesService = NinjectProvider.Kernel().Get <IGamesService>(); }
public GamesController(IGamesService gamesService, UserManager <GoUser> userManager) { this.gamesService = gamesService; this.userManager = userManager; }
public HomeController(UserManager <ApplicationUser> userManager, INewsService newsService, IGamesService gamesService, IMyTeamsService myTeamsService, IPlayerGameStatsService playerGameStatsService) { _userManager = userManager; _newsService = newsService; _gamesService = gamesService; _myTeamsService = myTeamsService; _playerGameStatsService = playerGameStatsService; }
public ChessHub(IGamesService gamesService, IMovesService movesService, IMessagesService messagesService) { this.gamesService = gamesService; this.movesService = movesService; this.messagesService = messagesService; }
public StatisticsService(IGamesService gamesService, EloConfiguration eloConfiguration, IEloCalculatorFactory eloCalculatorFactory) { _gamesService = gamesService ?? throw new ArgumentNullException(nameof(gamesService)); _eloConfiguration = eloConfiguration ?? throw new ArgumentNullException(nameof(eloConfiguration)); _eloCalculatorFactory = eloCalculatorFactory ?? throw new ArgumentNullException(nameof(eloCalculatorFactory)); }
public LobbyController(ILobbyService lobbyService, IGamesService gamesService, IMapper mapper) { _lobbyService = lobbyService; _gamesService = gamesService; _mapper = mapper; }
public GameEditAuthorizationHandler(IGamesService gamesService) { _gamesService = gamesService ?? throw new ArgumentNullException(nameof(gamesService)); }
/// <summary> /// Constructor /// </summary> public CartViewModel(INavigationService navigationService, ICartService cartService, IGamesService gameService, IOrderService orderService) { this.navigationService = navigationService; this.cartService = cartService; this.gameService = gameService; this.orderService = orderService; Order = new Order(); }
public HangmanService(DatabaseContext db, IGamesService gamesService) { Context = db; GamesService = gamesService; }