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; _vaccinationRepositoryMock = new Mock <IRepository <Vaccination> >(); _animalVaccinationRepositoryMock = new Mock <IRepository <AnimalVaccination> >(); _service = new VaccinationService(_vaccinationRepositoryMock.Object, _animalVaccinationRepositoryMock.Object, _mapper); }
public VaccinationController(IVaccinationService vaccinationService) { _vaccinationService = vaccinationService; }
public VaccinationController(IVaccinationService service) { _service = service; }