public RehovotSpaCrawler(
     IPetHandler petHandler,
     IPetRepository petRepository,
     IUnitOfWork unitOfWork,
     ITraitRepository traitRepository,
     ICityRepository cityRepository,
     IAnimalTypeRepository animalTypeRepository,
     IUserRepository userRepository,
     ITraitOptionRepository traitOptionRepository,
     RehovotSpaParser parser) :
     base(petHandler, petRepository, unitOfWork, traitRepository, cityRepository, animalTypeRepository, userRepository, traitOptionRepository, parser)
 {
 }
Ejemplo n.º 2
0
 public PetsController(
     IMetaFileLinkRepository mflRepository,
     ITraitRepository traitRepository,
     IPetHandler petHandler,
     ILogger <PetsController> logger,
     IMapper mapper,
     IPetRepository petRepository,
     IUnitOfWork unitOfWork)
 {
     _mflRepository   = mflRepository;
     _traitRepository = traitRepository;
     _petHandler      = petHandler;
     _logger          = logger;
     _mapper          = mapper;
     _petRepository   = petRepository;
     _unitOfWork      = unitOfWork;
 }
Ejemplo n.º 3
0
        public void Setup()
        {
            var services = new ServiceCollection();

            ConfigureServices(services);

            var serviceProvider = services.BuildServiceProvider();

            petRepository        = serviceProvider.GetService <IPetRepository>();
            petHandler           = serviceProvider.GetService <IPetHandler>();
            unitOfWork           = serviceProvider.GetService <IUnitOfWork>();
            traitRepository      = serviceProvider.GetService <ITraitRepository>();
            cityRepository       = serviceProvider.GetService <ICityRepository>();
            animalTypeRepository = serviceProvider.GetService <IAnimalTypeRepository>();
            userRepository       = serviceProvider.GetService <IUserRepository>();

            _azureBlobHelper = new AzureBlobHelper(new Common.ImageHelper());
        }
Ejemplo n.º 4
0
 public CrawlerBase(
     IPetHandler petHandler,
     IPetRepository petRepository,
     IUnitOfWork unitOfWork,
     ITraitRepository traitRepository,
     ICityRepository cityRepository,
     IAnimalTypeRepository animalTypeRepository,
     IUserRepository userRepository,
     ITraitOptionRepository traitOptionRepository,
     T parser)
 {
     _petHandler            = petHandler;
     _petRepository         = petRepository;
     _unitOfWork            = unitOfWork;
     _traitRepository       = traitRepository;
     _cityRepository        = cityRepository;
     _animalTypeRepository  = animalTypeRepository;
     _userRepository        = userRepository;
     _traitOptionRepository = traitOptionRepository;
     _parser = parser;
 }