コード例 #1
0
 public PokemonTranslatorService()
 {
     pokeService      = new PokeAPIService();
     shakeService     = new ShakespeareService();
     pokemonDBContext = new PokemonDBContext();
     pokeRepository   = new GenericRepository <PokemonEntity, string>
                            (pokemonDBContext);
 }
コード例 #2
0
 public PokemonTranslatorService(PokeAPIService _pokeService,
                                 ShakespeareService _shakeService,
                                 PokemonDBContext _pokemonDBContext,
                                 GenericRepository <PokemonEntity, string> _pokeRepository
                                 )
 {
     pokeService      = _pokeService;
     shakeService     = _shakeService;
     pokemonDBContext = _pokemonDBContext;
     pokeRepository   = _pokeRepository;
 }