Exemplo n.º 1
0
        public QuizController
            (IPokemonService pokemonService,
            IRandomizer randomizer,
            IHttpContextAccessor httpContextAccessor,
            IQuizCalculations quizCalculations,
            IQuizFlow quizFlow,
            IPokemonUserSQLService pokemonUserSQLService)

        {
            _pokemonService        = pokemonService;
            _randomizer            = randomizer;
            _session               = httpContextAccessor.HttpContext.Session;
            _quizCalulations       = quizCalculations;
            _quizFlow              = quizFlow;
            _pokemonUserSQLService = pokemonUserSQLService;
        }
 public PlayerController(IHttpContextAccessor httpContextAccessor, IPokemonUserSQLService pokemonUserSQLService, IPlayerService playerService)
 {
     _session = httpContextAccessor.HttpContext.Session;
     _pokemonUserSQLService = pokemonUserSQLService;
     _playerService         = playerService;
 }