예제 #1
0
        public async Task <IActionResult> GetAllTechnologies(
            [FromServices] ITechnologyRepository technologyRepository,
            [FromServices] IEntityRepository entityRepository,
            [FromServices] ITechnologyService technologyService
            )
        {
            var result = await technologyRepository.FindAllAsync();

            if (result.Any())
            {
                var entities = await entityRepository.FindAllAsync();

                var technologiesToReturn = new List <Technology>();
                var referenceEntityId    = configuration.GetSection("ReferenceEntityId");
                foreach (var technology in result)
                {
                    var technologyToAdd = new Technology();
                    technologyToAdd.Map(technology);
                    technologyToAdd.EntitiesStatus = new List <EntityStatus>();
                    foreach (var entity in entities)
                    {
                        technologyToAdd = technologyService.SetEntityStatus(technologyToAdd, entity, referenceEntityId.Value);
                    }
                    technologiesToReturn.Add(technologyToAdd);
                }
                return(Ok(technologiesToReturn));
            }
            return(NoContent());
        }
예제 #2
0
 public SurveyController(IRespondentService respondentService,
                         ITechnologyService technologyService,
                         IMapper mapper)
 {
     this.respondentService = respondentService;
     this.technologyService = technologyService;
     this.mapper            = mapper;
 }
예제 #3
0
 public StatisticsController(ITechnologyService technologyService,
                             IRespondentTechnologyService respondentTechnologyService,
                             IMapper mapper)
 {
     this.technologyService          = technologyService;
     this.repondentTechnologyService = respondentTechnologyService;
     this.mapper = mapper;
 }
예제 #4
0
 public VacancyController(
     ILocalizedEntityService localizedEntityService,
     IVacancyService vacancyService,
     ITechnologyService technologyService)
 {
     _localizedEntityService = localizedEntityService;
     _technologyService      = technologyService;
     _vacancyService         = vacancyService;
 }
예제 #5
0
 public UserController(
     ILocalizedEntityService localizedEntityService,
     ITechnologyService technologyService,
     IUserService userService)
 {
     _localizedEntityService = localizedEntityService;
     _technologyService      = technologyService;
     _userService            = userService;
 }
예제 #6
0
 public QuestionBankController(IQuestionService questionService, ITagsService tagService,
                               MappingService mappingService, UtilityContainer.Services.Interfaces.IUserService containerUserService, ITechnologyService technologyService)
 {
     _questionService      = questionService;
     _tagsService          = tagService;
     _mappingService       = mappingService;
     _containerUserService = containerUserService;
     _technologyService    = technologyService;
 }
예제 #7
0
 public VacancyController(IVacancyService vacancyService,
                          ICommentService commentService,
                          UserManager <User> userManager,
                          ITechnologyService technologyService) : base(vacancyService)
 {
     _vacancyService    = vacancyService;
     _userManager       = userManager;
     _technologyService = technologyService;
     _commentService    = commentService;
 }
예제 #8
0
        public DataProviderService(ITechnologyService technologyService,
                                   IOperatorService operatorService, IDataGatheringService dataGatheringService)
        {
            _technologyService = technologyService;
            _technologyService.CheckArgumentIsNull(nameof(_technologyService));

            _operatorService = operatorService;
            _operatorService.CheckArgumentIsNull(nameof(_operatorService));

            _dataGatheringService = dataGatheringService;
            _dataGatheringService.CheckArgumentIsNull(nameof(_dataGatheringService));
        }
예제 #9
0
 public BatteryAdminController(
     ICategoriesService categoriesService,
     IBrandsService brandsService,
     IBatteryService batteryService,
     ICapacityService capacityService,
     IAmperageService amperageService,
     ITechnologyService technologyService)
 {
     this.categoriesService = categoriesService;
     this.brandsService     = brandsService;
     this.batteryService    = batteryService;
     this.capacityService   = capacityService;
     this.amperageService   = amperageService;
     this.technologyService = technologyService;
 }
 public ServiceController(
     ILocalizedEntityService localizedEntityService,
     IServiceSubcategoryService subcategoryService,
     ITechnologyService technologyService,
     IServiceService serviceService,
     IProjectService projectService,
     IClientService clientService)
 {
     _localizedEntityService = localizedEntityService;
     _subcategoryService     = subcategoryService;
     _technologyService      = technologyService;
     _serviceService         = serviceService;
     _projectService         = projectService;
     _clientService          = clientService;
 }
예제 #11
0
 public ProjectController(
     ILocalizedEntityService localizedEntityService,
     ITechnologyService technologyService,
     IServiceService serviceService,
     IProjectService projectService,
     IClientService clientService,
     IUserService userService)
 {
     _localizedEntityService = localizedEntityService;
     _technologyService      = technologyService;
     _serviceService         = serviceService;
     _projectService         = projectService;
     _clientService          = clientService;
     _userService            = userService;
 }
예제 #12
0
 public ImportService(IPersonService personService,
                      IWorkHistoryService workHistoryService, IEducationService educationService,
                      ICategoryService categoryService, ITechnologyService technologyService,
                      ISkillService skillService, IProjectService projectService, IProjectTechnologyService projectTechnologyService,
                      ICertificateService certificateService)
 {
     this._personService            = personService;
     this._workHistoryService       = workHistoryService;
     this._educationService         = educationService;
     this._categoryService          = categoryService;
     this._technologyService        = technologyService;
     this._skillService             = skillService;
     this._projectService           = projectService;
     this._projectTechnologyService = projectTechnologyService;
     this._certificateService       = certificateService;
 }
예제 #13
0
 public AdminTablesController(CinemaContext context, ITicketCheckService ticketCheckService, IFoodcourtCheckProductService foodcourtCheckProductService, IFoodcourtCheckService foodcourtCheckService, ICheckService checkService, ITicketService ticketService, ICinemaLocationService cinemaLocationService, IFoodProductsService foodProductsService, ITechnologyService technologyService, ICityService cityService, IFoodAmountService foodAmountService, ICinemaHallService cinemaHallService, IDirectorService directorService, IWorkerService workerService, ICountryOfOriginService countryOfOriginService, IMovieService movieService, IGenreService genreService, IShowingService showingService, UserManager <Worker> userManager, SignInManager <Worker> signInManager)
 {
     this.foodProductsService          = foodProductsService;
     this.directorService              = directorService;
     this.technologyService            = technologyService;
     this.cityService                  = cityService;
     this.foodAmountService            = foodAmountService;
     this.cinemaHallService            = cinemaHallService;
     this.context                      = context;
     this.ticketCheckService           = ticketCheckService;
     this.foodcourtCheckProductService = foodcourtCheckProductService;
     this.foodcourtCheckService        = foodcourtCheckService;
     this.checkService                 = checkService;
     this.ticketService                = ticketService;
     this.cinemaLocationService        = cinemaLocationService;
     this.countryOfOriginService       = countryOfOriginService;
     this.movieService                 = movieService;
     this.workerService                = workerService;
     this.genreService                 = genreService;
     this.showingService               = showingService;
     this.userManager                  = userManager;
     this.signInManager                = signInManager;
 }
 public MovieController(ILogger <MovieController> logger, ITechnologyService technologyService)
 {
     this._logger           = logger;
     this._technolgyService = technologyService;
 }
예제 #15
0
 public ControlsController(ITechnologyService technologyService)
 {
     _technologyService = technologyService;
 }
예제 #16
0
 public TechnologyController(ITechnologyService technologyService, IMappingService mappingService, UtilityContainer.Services.Interfaces.IUserService containerUserService)
 {
     _technologyService    = technologyService;
     _mappingService       = mappingService;
     _containerUserService = containerUserService;
 }
 public TechnologyController(ITechnologyService technologyService)
 {
     this._technologyService = technologyService;
 }
예제 #18
0
 public ProjectController(IProjectService projectService, ITechnologyService technologyService, INotificationService notificationService) : base(notificationService)
 {
     this.projectService    = projectService;
     this.technologyService = technologyService;
 }
예제 #19
0
 public TechnologyController(ITechnologyService service)
 {
     _service = service;
 }
예제 #20
0
 public TechnologyController(ITechnologyService technologyService, IMapper mapper)
 {
     _technologyService = technologyService;
     _mapper            = mapper;
 }
예제 #21
0
        public void TestInitialize()
        {
            _technologyService = Substitute.For <ITechnologyService>();

            _controller = new TechnologyController(_technologyService);
        }
 // GET: Technology
 public TechnologyController(ITechnologyService technologyService, INotificationService notificationService) : base(notificationService)
 {
     this.technologyService = technologyService;
 }
 public ApiTechnologyController(ITechnologyService technologyService)
 {
     _technologyService = technologyService;
     _technologyService.CheckArgumentIsNull(nameof(_technologyService));
 }
 public TechnologyController(ILogger <TechnologyController> logger, ITechnologyService technologyService)
 {
     _logger           = logger;
     _technolgyService = technologyService;
 }
예제 #25
0
 public ProjectController(IProjectService projectService, ITechnologyService technologyService)
 {
     this.projectService    = projectService;
     this.technologyService = technologyService;
 }