public PokemonController(ILogger <PokemonController> logger, IPokemonInfoProvider provider, IShakespeareTranslator translator) { this.logger = logger; this.provider = provider; this.translator = translator; }
/// <summary> /// Initializes a new instance of the <see cref="PokemonDescriptionProvider"/> class /// </summary> /// <param name="pokemonSpeciesSummaryProvider">Pokemon species summary provider</param> /// <param name="shakespeareTranslator">Shakespeare translator</param> public PokemonDescriptionProvider(IPokemonSpeciesSummaryProvider pokemonSpeciesSummaryProvider, IShakespeareTranslator shakespeareTranslator) { this.pokemonSpeciesSummaryProvider = pokemonSpeciesSummaryProvider ?? throw new ArgumentNullException(nameof(pokemonSpeciesSummaryProvider)); this.shakespeareTranslator = shakespeareTranslator ?? throw new ArgumentNullException(nameof(shakespeareTranslator)); }