public ScootersController(IDefectService defectService, IRentalService rentalService,
                           IStatsService statsService)
 {
     _defectService = defectService;
     _rentalService = rentalService;
     _statsService  = statsService;
 }
Beispiel #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;
 }
Beispiel #3
0
 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));
        }
Beispiel #5
0
 public DefectController(IDefectService defectService, IVendingMachineService vendingMachineService, UserManager <AppUser> userManager) : base(userManager)
 {
     _defectService         = defectService;
     _vendingMachineService = vendingMachineService;
 }
Beispiel #6
0
 public DefectController(IDefectService defectService)
 {
     _defectService = defectService;
 }
Beispiel #7
0
 /// <summary>
 /// Parameterized constructor
 /// For invoking the service layer.
 /// </summary>
 /// <param name="defectData"></param>
 public DefectController(IDefectService defectData)
 {
     _defectData = defectData;
 }
 public DefectController(IDefectService defectService)
 {
     _defectService = defectService;
 }