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