Ejemplo n.º 1
0
 public AnimalService(IRepository <Animal> repository, IMapper mapper, IKeepingService keepingService,
                      IAttitudeToService attitudesToService, IDefectService defectService,
                      IProcessingService processingService, INeedsService needsService,
                      IVaccinationService vaccinationService, IIsNewService isNewService, IUriService uriService,
                      IAnimalLocationHistoryService locationHistoryService,
                      IStatisticService <Animal> statisticService, IAnimalViewLocationService locationService,
                      IFilterService <Animal, AnimalQuery> animalFilterService,
                      IDescriptionService descriptionService, IBreedService breedService)
 {
     _repository             = repository;
     _mapper                 = mapper;
     _keepingService         = keepingService;
     _attitudesToService     = attitudesToService;
     _defectService          = defectService;
     _processingService      = processingService;
     _needsService           = needsService;
     _isNewService           = isNewService;
     _vaccinationService     = vaccinationService;
     _uriService             = uriService;
     _locationHistoryService = locationHistoryService;
     _statisticService       = statisticService;
     _descriptionService     = descriptionService;
     _breedService           = breedService;
     _locationService        = locationService;
     _animalFilterService    = animalFilterService;
 }
Ejemplo n.º 2
0
 public AnimalStatisticFilter(IStatisticService <Animal> statisticService, IAnimalViewLocationService locationService)
 {
     _statisticService = statisticService ?? throw new ArgumentNullException(nameof(statisticService));
     _locationService  = locationService ?? throw new ArgumentNullException(nameof(locationService));
 }