public ScootersController(IDefectService defectService, IRentalService rentalService, IStatsService statsService) { _defectService = defectService; _rentalService = rentalService; _statsService = statsService; }
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; _defectRepositoryMock = new Mock <IRepository <Defect> >(); _animalRepositoryMock = new Mock <IRepository <Animal> >(); _animalDefectRepositoryMock = new Mock <IRepository <AnimalDefects> >(); _service = new DefectService(_defectRepositoryMock.Object, _animalDefectRepositoryMock.Object, _animalRepositoryMock.Object); }
public void Init() { IConfigurationService conf = ServiceFactory.Register <IConfigurationService, ConfigurationServiceFake>(); IStorageService stor = ServiceFactory.Register <IStorageService, StorageServiceFake>(); IItemFactory itemFactory = ServiceFactory.Register <IItemFactory, ItemFactory>(stor, conf); service = ServiceFactory.Register <IDefectService, DefectServiceFake>(); Assert.IsInstanceOfType(service, typeof(IDefectService)); Assert.IsInstanceOfType(service, typeof(DefectServiceFake)); }
public DefectController(IDefectService defectService, IVendingMachineService vendingMachineService, UserManager <AppUser> userManager) : base(userManager) { _defectService = defectService; _vendingMachineService = vendingMachineService; }
public DefectController(IDefectService defectService) { _defectService = defectService; }
/// <summary> /// Parameterized constructor /// For invoking the service layer. /// </summary> /// <param name="defectData"></param> public DefectController(IDefectService defectData) { _defectData = defectData; }