コード例 #1
0
 public CandidatController()
 {
     candidateService  = new UserService();
     experienceService = new ExperienceService();
     hobbiesService    = new HobbiesService();
     skillService      = new SkillsService();
 }
コード例 #2
0
        public ContestantsController(
            IHttpContextAccessor httpContext,
            UserManager <User> userManager,
            IBaseService baseService,
            ICipherService chipherService,
            INotificationService notifyService,
            IContestantsService contestantsService,
            ICategoriesService categoriesService,
            ISkillsService skillsService,
            ILocationService locationService,
            ILanguageService langService,
            IFavoritesService favoriteService)
        {
            _httpcontext    = httpContext;
            _userManager    = userManager;
            _baseService    = baseService;
            _chipherService = chipherService;

            _notifyService      = notifyService;
            _contestantsService = contestantsService;
            _categoriesService  = categoriesService;

            _skillsService   = skillsService;
            _locationService = locationService;
            _langService     = langService;
            _favoriteService = favoriteService;
        }
コード例 #3
0
        public CoachesServiceTests()
        {
            DbContextOptionsBuilder <ApplicationDbContext> options =
                new DbContextOptionsBuilder <ApplicationDbContext>()
                .UseInMemoryDatabase(Guid.NewGuid().ToString());

            AutoMapperConfig.RegisterMappings(typeof(DetailsCoachViewModel).Assembly);

            this.applicationDbContext = new ApplicationDbContext(options.Options);
            this.skillsRepository     = new EfDeletableEntityRepository <Skill>(this.applicationDbContext);
            this.fightersRepository   = new EfDeletableEntityRepository <Fighter>(this.applicationDbContext);
            this.coachesRepository    = new EfDeletableEntityRepository <Coach>(this.applicationDbContext);
            this.skillsService        = new SkillsService(this.skillsRepository, this.usersRepository);
            this.coachesService       = new CoachesService(this.coachesRepository, this.fightersRepository, this.skillsService);

            foreach (var fighter in this.GetTestFighters())
            {
                this.fightersRepository.AddAsync(fighter);
                this.fightersRepository.SaveChangesAsync();
            }

            foreach (var coach in this.GetTestCoaches())
            {
                this.coachesRepository.AddAsync(coach);
                this.coachesRepository.SaveChangesAsync();
            }

            foreach (var skill in this.GetTestSkillPoints())
            {
                this.skillsRepository.AddAsync(skill);
                this.skillsRepository.SaveChangesAsync();
            }
        }
コード例 #4
0
        private void SetupServices()
        {
            var svcAutoMapper = new SvcAutoMapper();

            _primaryStatsService = new PrimaryStatsService(_logger, _masterRepo, svcAutoMapper);
            _skillsService       = new SkillsService(_logger, _masterRepo, svcAutoMapper, new SkillTotalCalculator(_primaryStatsService), _primaryStatsService);
        }
コード例 #5
0
 public JobsController(
     FeaturesDbContext context,
     UserManager <User> userManager,
     IBaseService baseService,
     IJobsService jobsService,
     ICategoriesService categoriesService,
     ILocationService locationService,
     ISkillsService skillsService,
     ILanguageService langService,
     ICompanyService companyService,
     IFavoritesService favoriteService,
     INotificationService notifyService,
     IToastNotification toastNotification,
     IResumeService resumeService)
 {
     _context           = context;
     _userManager       = userManager;
     _baseService       = baseService;
     _jobsService       = jobsService;
     _locationService   = locationService;
     _skillsService     = skillsService;
     _langService       = langService;
     _categoriesService = categoriesService;
     _companyService    = companyService;
     _favoriteService   = favoriteService;
     _notifyService     = notifyService;
     _toastNotification = toastNotification;
     _resumeService     = resumeService;
 }
コード例 #6
0
        public JobOffersController(
            UserManager <ApplicationUser> userManager,
            IJobOffersService jobOffersService,
            IEmployersService employersService,
            IJobSectorsService jobSectorsService,
            IJobLevelsService jobLevelsService,
            IJobTypesService jobTypesService,
            ILanguagesService languagesService,
            ISkillsService skillsService)
        {
            this.userManager       = userManager;
            this.jobOffersService  = jobOffersService;
            this.employersService  = employersService;
            this.jobSectorsService = jobSectorsService;
            this.jobLevelsService  = jobLevelsService;
            this.jobTypesService   = jobTypesService;
            this.languagesService  = languagesService;
            this.skillsService     = skillsService;

            this.jobSectors = this.jobSectorsService.GetAll <JobSectorsDropDownViewModel>();
            this.jobLevels  = this.jobLevelsService.GetAll <JobLevelsDropDownViewModel>();
            this.jobTypes   = this.jobTypesService.GetAll <JobTypesDropDownCheckboxListViewModel>().ToList();
            this.languages  = this.languagesService.GetAll <LanguagesDropDownCheckboxListViewModel>();
            this.skills     = this.skillsService.GetAll <SkillsDropDownCheckboxListViewModel>();
        }
コード例 #7
0
 public void Setup()
 {
     _context         = new SkillTrackerEntities();
     unitOfWork       = new UnitOfWork(_context);
     skillsRepository = new SkillsRepository(_context);
     skillsService    = new SkillsService(unitOfWork, skillsRepository);
 }
コード例 #8
0
 public void DisposeAllObjects()
 {
     _context         = null;
     unitOfWork       = null;
     skillsRepository = null;
     skillsService    = null;
 }
コード例 #9
0
        public void Setup()
        {
            _skillsService = A.Fake <ISkillsService>();
            _autoMapper    = A.Fake <IAutoMapper>();

            _skillModel = new SkillModel(_skillsService, _autoMapper);
        }
コード例 #10
0
 public AdminResumeController(IResumepageService resumepageService, IHomepageService homepageService, IEducationService educationService, ISkillsService skillsService, IExperienceService experienceService)
 {
     _resumepageService = resumepageService;
     _homepageService   = homepageService;
     _educationService  = educationService;
     _experienceService = experienceService;
     _skillsService     = skillsService;
 }
コード例 #11
0
        public SkillTableModel(ILogger logger, ISkillsService skillsService, IAutoMapper autoMapper)
        {
            _logger        = logger;
            _skillsService = skillsService;
            _autoMapper    = autoMapper;

            _skillsService.SkillsUpdated += SkillsServiceOnSkillsUpdated;
        }
コード例 #12
0
        public void Setup()
        {
            _logger        = A.Fake <ILogger>();
            _skillsService = A.Fake <ISkillsService>();
            _autoMapper    = A.Fake <IAutoMapper>();

            _skillTableModel = new SkillTableModel(_logger, _skillsService, _autoMapper);
        }
コード例 #13
0
 public OpportunitiesService(IOpportunitiesRepository opportunitiesRepository, ILog log, ISkillsService skillsService, ISummaryService summaryService, IAccountsService accountsService)
 {
     _opportunitiesRepository = opportunitiesRepository;
     Log              = log;
     _skillsService   = skillsService;
     _summaryService  = summaryService;
     _accountsService = accountsService;
 }
コード例 #14
0
 public void SetUp(BenchmarkContext context)
 {
     _context          = new SkillTrackerEntities();
     _unitOfWork       = new UnitOfWork(_context);
     _skillsRepository = new SkillsRepository(_context);
     _skillsService    = new SkillsService(_unitOfWork, _skillsRepository);
     _logManager       = new LogManager();
 }
コード例 #15
0
 public SkillController(ISkillLevelService levelService, ISkillTypeService typeService, ISkillTypeLevelService typeLevelService, IMapper mapper, ISkillsService skillsService)
 {
     this.levelService     = levelService;
     this.typeService      = typeService;
     this.typeLevelService = typeLevelService;
     this.mapper           = mapper;
     this.skillsService    = skillsService;
 }
コード例 #16
0
 public CoachesService(
     IDeletableEntityRepository <Coach> coachesRepository,
     IDeletableEntityRepository <Fighter> fightersRepository,
     ISkillsService skillsService)
 {
     this.coachesRepository  = coachesRepository;
     this.fightersRepository = fightersRepository;
     this.skillsService      = skillsService;
 }
コード例 #17
0
 public ProNet(IRankService rankService, ISkillsService skillsService, ISeparationService separationService, IRecommendationService recommendationService, ITeamStrengthService teamStrengthService, IStrongestTeamService strongestTeamService)
 {
     _rankService           = rankService;
     _skillsService         = skillsService;
     _separationService     = separationService;
     _recommendationService = recommendationService;
     _teamStrengthService   = teamStrengthService;
     _strongestTeamService  = strongestTeamService;
 }
コード例 #18
0
 public CutmenService(
     IDeletableEntityRepository <Cutman> cutmenRepository,
     IDeletableEntityRepository <Fighter> fightersRepository,
     ISkillsService skillsService)
 {
     this.cutmenRepository   = cutmenRepository;
     this.fightersRepository = fightersRepository;
     this.skillsService      = skillsService;
 }
コード例 #19
0
 public HrController(IEmployeeService employeeService, ICourseService courseService, IPositionService positionService, IProjectService projectService, ISkillsService skillsService)
 {
     _employeeService = employeeService;
     _courseService   = courseService;
     _positionService = positionService;
     _projectService  = projectService;
     _skillsService   = skillsService;
     _userManager     = new UserManager <Employee>(new UserStore <Employee>(new HrisDbContext()));
 }
コード例 #20
0
 public JobOffersController(
     IJobOffersService jobOffers,
     IOrganizationsService organizations,
     ISkillsService skills)
 {
     this.jobOffers = jobOffers;
     this.organizations = organizations;
     this.skills = skills;
 }
コード例 #21
0
 public void Cleanup(BenchmarkContext context)
 {
     _context          = null;
     _unitOfWork       = null;
     _skillsRepository = null;
     _skillsService    = null;
     _logManager       = null;
     if (_response != null)
     {
         _response.Dispose();
     }
 }
コード例 #22
0
 public void DisposeAllObjects()
 {
     _context          = null;
     _unitOfWork       = null;
     _skillsRepository = null;
     _skillsService    = null;
     _logManager       = null;
     if (_response != null)
     {
         _response.Dispose();
     }
 }
コード例 #23
0
 public EmployeeSkillsPageViewModel(INavigationService navigationService, IEmployeesService employeesService,
                                    ISkillsService skillsService, IUserDialogs userDialogs)
     : base(navigationService)
 {
     _employeesService = employeesService ?? throw new ArgumentNullException(nameof(employeesService));
     _userDialogs      = userDialogs ?? throw new ArgumentNullException(nameof(userDialogs));
     _skillsService    = skillsService ?? throw new ArgumentNullException(nameof(skillsService));
     OpenAddSkillActionSheetCommand         = new DelegateCommand(OpenAddSkillActionSheet);
     DisplayEmployeeSkillActionSheetCommand = new DelegateCommand <Skill>(DisplayEmployeeSkillActionSheet);
     RefreshSkillsCommand = new DelegateCommand(RefreshSkills);
     _employeeSkills      = new ObservableRangeCollection <Skill>();
     Title = "Skills Management";
 }
コード例 #24
0
        public void SetUp()
        {
            _separationService = Substitute.For <ISeparationService>();
            _skillsService     = Substitute.For <ISkillsService>();
            _rankService       = Substitute.For <IRankService>();

            _teamStrengthService = new TeamStrengthService(_separationService, _skillsService, _rankService);

            _skill = "";
            _team  = new List <string> {
                "leader", "a", "b"
            };
        }
コード例 #25
0
 public DeveloperProfilesService(
     IDbRepository<DeveloperProfile, string> developerProfiles,
     IGithubService githubService,
     ISkillsService skills,
     IJobOffersService jobOffers,
     IUsersService users)
 {
     this.developerProfiles = developerProfiles;
     this.githubService = githubService;
     this.skills = skills;
     this.jobOffers = jobOffers;
     this.users = users;
 }
コード例 #26
0
 public DashboardController(
     IApplicationUsersService usersService,
     UserManager <ApplicationUser> userManager,
     ICoursesService coursesService,
     ISkillsService skillsService,
     ICloudinaryService cloudinary)
 {
     this.usersService   = usersService;
     this.userManager    = userManager;
     this.coursesService = coursesService;
     this.skillsService  = skillsService;
     this.cloudinary     = cloudinary;
 }
コード例 #27
0
 public ProfileController(
     IProfileManager profileManager,
     IUserPersonalInfoHandler <ChangeEmail> changeEmailHandler,
     IUserPersonalInfoHandler <ChangeCountry> changeCountryHandler,
     IUserPersonalInfoHandler <ChangeCurrentPosition> changeCurrentPositionHandler,
     ISkillsService skillsService,
     IPositionsManager positionsManager)
 {
     this.profileManager               = profileManager;
     this.changeEmailHandler           = changeEmailHandler;
     this.changeCountryHandler         = changeCountryHandler;
     this.changeCurrentPositionHandler = changeCurrentPositionHandler;
     this.skillsService    = skillsService;
     this.positionsManager = positionsManager;
 }
コード例 #28
0
ファイル: Admin.cshtml.cs プロジェクト: iNexus2/HireMe
 public AdminModel(UserManager <User> userManager,
                   INotificationService notifyService,
                   ICategoriesService categoriesService,
                   ILocationService locationService,
                   ILanguageService langService,
                   ISkillsService skillsService
                   )
 {
     _userManager       = userManager;
     _notifyService     = notifyService;
     _categoriesService = categoriesService;
     _locationService   = locationService;
     _skillsService     = skillsService;
     _langService       = langService;
 }
コード例 #29
0
ファイル: JobsController.cs プロジェクト: iNexus2/HireMe
 public JobsController(
     UserManager <User> userManager,
     IJobsService jobsService,
     ICategoriesService categoriesService,
     ILocationService locationService,
     ISkillsService skillsService,
     ILanguageService langService)
 {
     _userManager       = userManager;
     _jobsService       = jobsService;
     _locationService   = locationService;
     _skillsService     = skillsService;
     _langService       = langService;
     _categoriesService = categoriesService;
 }
コード例 #30
0
 public FightersService(
     IDeletableEntityRepository <Fighter> fightersRepository,
     IDeletableEntityRepository <Record> recordsRepository,
     IDeletableEntityRepository <Fight> fightsRepository,
     IDeletableEntityRepository <ApplicationUser> usersRepository,
     IBiographiesService biographiesService,
     ISkillsService skillService)
 {
     this.fightersRepository = fightersRepository;
     this.recordsRepository  = recordsRepository;
     this.fightsRepository   = fightsRepository;
     this.biographiesService = biographiesService;
     this.usersRepository    = usersRepository;
     this.skillsService      = skillService;
 }
コード例 #31
0
        public ContestantsController(
            UserManager <User> userManager,
            IContestantsService contestantsService,
            ICategoriesService categoriesService,
            ISkillsService skillsService,
            ILocationService locationService,
            ILanguageService langService)
        {
            _userManager        = userManager;
            _contestantsService = contestantsService;
            _categoriesService  = categoriesService;

            _skillsService   = skillsService;
            _locationService = locationService;
            _langService     = langService;
        }
コード例 #32
0
 public HomeController(
     IContactInformationService contactInformationService,
     IEducationsService educationService,
     ISkillsService skillsService,
     ICertificationsService certificationService,
     ICoursesService coursesService,
     IProjectsService projectsService,
     IExperiencesService experienceService)
 {
     this.contactInformationService = contactInformationService;
     this.educationService          = educationService;
     this.skillsService             = skillsService;
     this.certificationService      = certificationService;
     this.coursesService            = coursesService;
     this.projectsService           = projectsService;
     this.experienceService         = experienceService;
 }
コード例 #33
0
 public SkillsController(ISkillsService SkillsService)
 {
     _skillsService = SkillsService;
 }
コード例 #34
0
 public SkillsController(ISkillsService skills)
 {
     this.skills = skills;
 }
コード例 #35
0
ファイル: SkillsController.cs プロジェクト: orjan/NinjaBone
 public SkillsController(ISkillsService skillsService, INinjaService ninjaService)
 {
     this.skillsService = skillsService;
     this.ninjaService = ninjaService;
 }