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; }
public void SetUp() { _mapper = Mapper.GetMapper; _attitudeRepositoryMock = new Mock <IRepository <AttitudeTo> >(); _animalAttitudeToRepositoryMock = new Mock <IRepository <AnimalAttitudeTo> >(); _service = new AttitudeToService(_attitudeRepositoryMock.Object, _animalAttitudeToRepositoryMock.Object, _mapper); }
public AttitudeToController(IAttitudeToService attitudeToService) { _attitudeToService = attitudeToService; }