public PokemonArenaService(PokemonRankSearchService rankSearchService, PokedexProfilerService profilerService, IDataAccess data) { _rankSearchService = rankSearchService; _profilerService = profilerService; _data = data; }
public PokemonRankFactoryService(PokedexProfilerService profilerService) { _profilerService = profilerService; _dexerFunc = (name) => { int dexNum = _profilerService.GetPokedexNumber(name); if (dexNum == -1) { throw new OperationFailedException($"El nombre del pokémon '{name}' no existe. 😞", OperationErrorStatus.MalformedInput); } return(new PokemonRankItem() { DexNumber = dexNum, PkmnName = name }); }; }
public PokemonRankSearchController(PokemonRankSearchService rankSearchService, PokedexProfilerService profilerService) { _rankSearchService = rankSearchService; _profilerService = profilerService; }
public PokemonController(PokemonService pokemonService, PokedexProfilerService profilerService) { _pokemonService = pokemonService; _profilerService = profilerService; }
public PokemonRankSearchService(PokemonRankFactoryService factoryService, PokedexProfilerService profilerService) { _factoryService = factoryService; _profilerService = profilerService; }