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