Example #1
0
        private UpdateAnimeHandler CreateHandler(SeiyuuMoeContext dbcontext, IMalApiService apiService)
        {
            var animeRepository  = new AnimeRepository(dbcontext);
            var seasonRepository = new SeasonRepository(dbcontext);

            return(new UpdateAnimeHandler(animeRepository, seasonRepository, apiService));
        }
Example #2
0
 public UpdateSeiyuuHandler(
     ISeiyuuRepository seiyuuRepository,
     IAnimeRepository animeRepository,
     ICharacterRepository characterRepository,
     ISeiyuuRoleRepository seiyuuRoleRepository,
     IAnimeRoleRepository animeRoleRepository,
     ISeasonRepository seasonRepository,
     IMalApiService malApiService
     )
 {
     _seiyuuRepository     = seiyuuRepository;
     _animeRepository      = animeRepository;
     _characterRepository  = characterRepository;
     _seiyuuRoleRepository = seiyuuRoleRepository;
     _animeRoleRepository  = animeRoleRepository;
     _seasonRepository     = seasonRepository;
     _malApiService        = malApiService;
 }
 public InsertSeiyuuHandler(
     int insertSeiyuuBatchSize,
     int delayBetweenCallsInSeconds,
     ISeiyuuRepository seiyuuRepository,
     ISeasonRepository seasonRepository,
     ICharacterRepository characterRepository,
     IAnimeRepository animeRepository,
     IAnimeRoleRepository animeRoleRepository,
     IMalApiService malApiService,
     IS3Service s3Service
     )
 {
     _insertSeiyuuBatchSize      = insertSeiyuuBatchSize;
     _delayBetweenCallsInSeconds = delayBetweenCallsInSeconds;
     _seiyuuRepository           = seiyuuRepository;
     _seasonRepository           = seasonRepository;
     _characterRepository        = characterRepository;
     _animeRepository            = animeRepository;
     _animeRoleRepository        = animeRoleRepository;
     _malApiService = malApiService;
     _s3Service     = s3Service;
 }
Example #4
0
 public UpdateCharacterHandler(ICharacterRepository characterRepository, IMalApiService malApiService)
 {
     _characterRepository = characterRepository;
     _malApiService       = malApiService;
 }
Example #5
0
 public UpdateAnimeHandler(IAnimeRepository animeRepository, ISeasonRepository seasonRepository, IMalApiService malApiService)
 {
     _animeRepository  = animeRepository;
     _seasonRepository = seasonRepository;
     _malApiService    = malApiService;
 }
        private UpdateCharacterHandler CreateHandler(SeiyuuMoeContext dbcontext, IMalApiService apiService)
        {
            var characterRepository = new CharacterRepository(dbcontext);

            return(new UpdateCharacterHandler(characterRepository, apiService));
        }
 public UpdateSeasonsHandler(ISeasonRepository seasonRepository, IMalApiService malApiService)
 {
     _seasonRepository = seasonRepository;
     _malApiService    = malApiService;
 }