public void SetUp() { _mapper = Mapper.GetMapper; _keepingRepositoryMock = new Mock <IRepository <Keeping> >(); _animalKeepingRepositoryMock = new Mock <IRepository <AnimalKeeping> >(); _service = new KeepingService(_mapper, _keepingRepositoryMock.Object, _animalKeepingRepositoryMock.Object); }
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 KeepingController(IKeepingService service) { _service = service; }