Example #1
0
        public async Task <Pokemon> GetPokemonAsync(string name)
        {
            string species = await pokemonService.PokemonSpeciesAsync(name);

            string flavor = await pokemonService.FlavorTextAsync(species);

            string shakespeare = await translator.TranslateAsync(flavor);

            return(new Pokemon(name, flavor, shakespeare));
        }