public MileageReportService(IRepository rep, IPositionService positionService, IMileageService mileageService, IMapService mapService)
 {
     _rep = rep;
     _positionService = positionService;
     _mileageService = mileageService;
     _mapService = mapService;
 }
 public MyCustomerController(ICustomerService customerService, IEmployeesService employeesService, IPositionService positionService, IMapperFactory mapperFactory)
 {
     _customerService = customerService;
     _employeesService = employeesService;
     _positionService = positionService;
     _mapperFactory = mapperFactory;
 }
 public PositionController(IPositionService services, IMapper mapper, ISystemAuditService systemAuditService, IHttpContextAccessor accessor, ILogger <PositionController> logger)
 {
     _services           = services;
     _mapper             = mapper;
     _systemAuditService = systemAuditService;
     _accessor           = accessor;
     _logger             = logger;
 }
 public SampleController(ISampleService sampleService, IMapperFactory mapperFactory, IEmployeesService employeesService, IPositionService positionService, IAuditLevelService auditLevelService)
 {
     _sampleService = sampleService;
     _mapperFactory = mapperFactory;
     _employeesService = employeesService;
     _positionService = positionService;
     _auditLevelService = auditLevelService;
 }
Exemple #5
0
 public LineService(IRepository rep, ICacheService cacheService, IMapService mapService, IPositionService positionService, IMileageService mileageService)
 {
     _rep = rep;
     _cacheService = cacheService;
     _mapService = mapService;
     _positionService = positionService;
     _mileageService = mileageService;
 }
Exemple #6
0
 public GeneralController(ICompanyService companyService, IUserService userService, IPositionService positionService,IEmployeeService employeeService, IContractService contractService,ISalaryService salaryService)
 {
     this.userService = userService;
     this.companyService = companyService;
     this.positionService = positionService;
     this.employeeService = employeeService;
     this.contractService = contractService;
     this.salaryService = salaryService;
 }
Exemple #7
0
 public HomeController(
     IFootballerService footballerService,
     IPositionService positionService,
     IClubService clubService)
 {
     this.footballerService = footballerService;
     this.positionService   = positionService;
     this.clubService       = clubService;
 }
Exemple #8
0
 public CandidatesController(ICandidateService candidateService, IPoliticPartyService politicPartyService, IPositionService positionService, IElectionService electionService, IHostingEnvironment hostingEnvironment)
 {
     //_context = context;
     this._candidateService    = candidateService;
     this._politicPartyService = politicPartyService;
     this._positionService     = positionService;
     this._electionService     = electionService;
     this._hostingEnvironment  = hostingEnvironment;
 }
Exemple #9
0
        public override Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context)
        {
            var applicationId = Guid.Parse(context.OwinContext.Get <string>("applicationId"));

            var container = new UnityContainer();

            container.RegisterType <IRequestInfo, RequestInfo>();
            container.RegisterType <IUserDataSource, UserDataSource>();
            container.RegisterType <IUserService, UserService>();

            container.RegisterType <IPositionDataSource, PositionDataSource>();
            container.RegisterType <IPositionService, PositionService>();

            IUserService     _service  = container.Resolve <IUserService>();
            IPositionService _position = container.Resolve <IPositionService>();
            var data = _service.Get(context.UserName, context.Password, null, UserType.Unknown);

            if (data.Data.ID != Guid.Empty)
            {
                var positionDefault = _position.PositionDefault(data.Data.ID);
                var position        = positionDefault.Data;
                var claims          = new List <Claim>
                {
                    new Claim(type: ClaimTypes.Name, value: data.Data.Username ?? ""),
                    new Claim(type: ClaimTypes.NameIdentifier, value: data.Data.ID.ToString()),
                    new Claim(type: Claims.ApplicationId, value: applicationId.ToString()),
                    new Claim(type: Claims.DepartmentId, value: position.DepartmentID.ToString()),
                    new Claim(type: Claims.PositionId, value: position.PositionID.ToString()),
                    new Claim(type: Claims.UserId, value: position.UserID.ToString()),
                    new Claim(type: Claims.UserName, value: position.UserName.ToString()),
                };

                var identity = new ClaimsIdentity(claims, context.Options.AuthenticationType);


                var props = new AuthenticationProperties(new Dictionary <string, string>
                {
                    {
                        "as:client_id", context.ClientId ?? string.Empty
                    },
                    {
                        "username", data.Data.Username ?? ""
                    },
                    {
                        "userid", data.Data.ID.ToString() ?? ""
                    }
                });

                var ticket = new AuthenticationTicket(identity, props);
                context.Validated(ticket);
                return(Task.FromResult(0));
            }
            else
            {
                return(Task.FromResult(0));
            }
        }
 public EmployeController(
     IEmployeService employeService,
     IAnimalService animalService,
     IPositionService positionService)
 {
     this.employeService  = employeService;
     this.animalService   = animalService;
     this.positionService = positionService;
 }
 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()));
 }
 /// <summary>Inicia uma nova instância da classe <see cref="PositionBusiness" />.</summary>
 /// <param name="logger">Interface de logger</param>
 /// <param name="positionService">Implementação da interface de posição</param>
 public PositionBusiness(
     ILoggerFactory logger,
     IConfiguration configuration,
     IPositionService positionService)
 {
     Logger          = logger.CreateLogger <PositionBusiness>();
     Configuration   = configuration;
     PositionService = positionService;
 }
Exemple #13
0
        public MainWindow(AgentViewModels agentUser) : this()
        {
            dataBase = new EntityUnitOfWork("AgencyDB");

            Mapper.Reset();
            Mapper.Initialize(cfg =>
            {
                cfg.CreateMap <Agent, AgentViewModels>();
                cfg.CreateMap <Applicant, ApplicantViewModels>();//;.PreserveReferences();
                cfg.CreateMap <Employer, EmployerViewModels>();
                cfg.CreateMap <Position, PositionViewModels>();
                cfg.CreateMap <Vacancie, VacancieViewModels>();
                cfg.CreateMap <Role, RoleViewModels>();
                cfg.CreateMap <Deal, DealViewModels>();
                cfg.CreateMap <Contract, ContractViewModel>();
                cfg.CreateMap <PaymentAccount, PaymentAccountViewModel>();
            });

            agentService          = new AgentService(dataBase);
            applicantService      = new ApplicantService(dataBase);
            employerService       = new EmployerService(dataBase);
            positionService       = new PositionService(dataBase);
            vacancyService        = new VacancieService(dataBase);
            dealService           = new DealService(dataBase);
            roleService           = new RoleService(dataBase);
            contractService       = new ContractService(dataBase);
            paymentAccountService = new PaymentAccountService(dataBase);

            applicantsModel     = applicantService.GetAll();
            employersModel      = employerService.GetAll();
            rolesModel          = roleService.GetAll();
            agentsModel         = agentService.GetAll();
            positionsModel      = positionService.GetAll();
            vacanciesModel      = vacancyService.GetAll();
            dealsModel          = dealService.GetAll();
            contractModel       = contractService.GetAll();
            paymentAccountModel = paymentAccountService.GetAll();

            dGridApplicants.DataContext     = applicantsModel.Where(p => (p.Deals.Count < 1) & p.AgentId == agentUser.AgentId);
            dGridEmployer.DataContext       = employersModel;
            dGridPosition.DataContext       = positionsModel;
            dGridAgent.DataContext          = agentsModel;
            dGridVacancies.DataContext      = vacanciesModel;
            dGridDeals.DataContext          = dealsModel.Where(p => p.Applicant.AgentId == agentUser.AgentId);;
            dGridContract.DataContext       = contractModel.Where(p => p.AgentId == agentUser.AgentId);
            dGridPaymentAccount.DataContext = paymentAccountModel.Where(p => p.Contracts.AgentId == agentUser.AgentId);

            dGridReportWoman.DataContext = vacanciesModel.Where(p => p.Gender == Gender.женщина || p.Gender == Gender.любой);
            dGridReportMan.DataContext   = vacanciesModel.Where(p => p.Gender == Gender.мужчина || p.Gender == Gender.любой);
            cbPositions.ItemsSource      = positionsModel;
            if (agentUser.RoleId == 3)
            {
                tabAgents.Visibility = Visibility.Collapsed;
            }

            logger.Info("Application started");
        }
Exemple #14
0
        public AddPositionViewModel(AddPosition addPosition)
        {
            view = addPosition;


            positionService = new PositionService();

            Position = new tblPosition();
        }
Exemple #15
0
 public ClientApiController(
     ICandidateService candidateService,
     IPositionService positionService,
     IMapper mapper)
 {
     _candidateService = candidateService;
     _positionService  = positionService;
     _mapper           = mapper;
 }
 public VirtualExchangeAdapter(
     IPositionService positionService,
     IVirtualTradeService virtualTradeService,
     ILogFactory logFactory)
 {
     _positionService     = positionService;
     _virtualTradeService = virtualTradeService;
     _log = logFactory.CreateLog(this);
 }
 public HomeController(IEmployeeService employee, IDepartmentService dep, IEmployeeToProjectService emp, 
     IPositionService pos, IProjectService proj)
 {
     employeeService = employee;
     departmentService = dep;
     employeeToProjectService = emp;
     positionService = pos;
     projectService = proj;
 }
 public CommonController(IPanelService panelService, ITagsService tagService, IPositionService positionService, Silicus.UtilityContainer.Services.Interfaces.IUserService containerUserService, IEmailService emailService, Silicus.UtilityContainer.Services.Interfaces.IRoleService roleService)
 {
     _panelService         = panelService;
     _tagService           = tagService;
     _positionService      = positionService;
     _containerUserService = containerUserService;
     _emailService         = emailService;
     _roleService          = roleService;
 }
Exemple #19
0
 /// <inheritdoc />
 // ReSharper disable once TooManyDependencies
 public HomeController(IMapper mapper,
                       IPositionService positionService,
                       ICustomerService customerService,
                       IVehicleService vehicleService) : base(mapper)
 {
     _positionService = positionService;
     _customerService = customerService;
     _vehicleService  = vehicleService;
 }
 public ManagerstaffsController(IStaffService staffservice, IMapper mapper, IDepartmentService departmentService, IGroupRoleService groupRoleService, IPositionService positionService, IAddressService addressService)
 {
     this._staffservice      = staffservice;
     this._mapper            = mapper;
     this._departmentservice = departmentService;
     this._groupRoleservice  = groupRoleService;
     this._positionService   = positionService;
     this._addressService    = addressService;
 }
 public EventMapper(IEventService eventService, ISportService sportService, IPositionService positionService,
                    IEventAttendanceService attendanceService, UserManager <WebAppUser> userManager)
 {
     this.imageService      = new ImageService();
     this.sportService      = sportService;
     this.positionService   = positionService;
     this.attendanceService = attendanceService;
     this.userManager       = userManager;
 }
Exemple #22
0
 public NewTeamDialog(IPositionService positionService,
                      IGraphApiService graphApiService,
                      IMapper mapper)
 {
     _positionService = positionService;
     _graphApiService = graphApiService;
     _mapper          = mapper;
     _connectionName  = ConfigurationManager.AppSettings["BotOAuthConnectionName"];
 }
 public InstitutionPositionController(IBaseManager BaseManager, IDepartmentService DepartmentService, IPositionService PositionService, ITableOperationManager <Institution_Position> TableOperationManager) : base(BaseManager)
 {
     this.BaseManager               = BaseManager;
     this.DepartmentService         = DepartmentService;
     this.PositionService           = PositionService;
     this.TableOperationManager     = TableOperationManager;
     TableOperationManager.Account  = StaffID;
     TableOperationManager.NickName = StaffName;
 }
Exemple #24
0
 public HtmlModulesController(IModuleService moduleService, IHtmlModuleService htmlModuleService
                              , IMenuService menuService, IModulePageService modulePageService, IPositionService positionService)
 {
     _moduleService     = moduleService;
     _menuService       = menuService;
     _modulePageService = modulePageService;
     _htmlModuleService = htmlModuleService;
     _positionService   = positionService;
 }
 /// <summary>
 /// Controller that sets position service in order to access context resources
 /// </summary>
 /// <param name="positionService">Parameter for setting position service</param>
 /// <param name="agentService">Parameter for setting agent service</param>
 /// <param name="candidateService">Parameter for setting candidate service</param>
 /// <param name="interviewService">Parameter for setting interview service</param>
 /// <param name="positionArchiveService">Parameter for setting position archive service</param>
 /// <param name="candidateArchiveService">Parameter for setting candidate archive service</param>
 public PositionController(IPositionService positionService, IAgentService agentService, ICandidateService candidateService, IInterviewService interviewService, IPositionArchiveService positionArchiveService, ICandidateArchiveService candidateArchiveService)
 {
     this.PositionService         = positionService;
     this.AgentService            = agentService;
     this.CandidateService        = candidateService;
     this.InterviewService        = interviewService;
     this.PositionArchiveService  = positionArchiveService;
     this.CandidateArchiveService = candidateArchiveService;
 }
Exemple #26
0
 public MenuModulesController(IModuleService moduleService, IMenuModuleService menuModuleService, IPositionService positionService
                              , IMenuService menuService, IMenuGroupService menuGroupService, IModulePageService modulePageService)
 {
     _moduleService     = moduleService;
     _menuService       = menuService;
     _menuModuleService = menuModuleService;
     _menuGroupService  = menuGroupService;
     _modulePageService = modulePageService;
     _positionService   = positionService;
 }
Exemple #27
0
 public DraftController(IChampionService championService,
                        IItemService itemService,
                        IPositionService positionService,
                        ISummonerSpellService summonerSpellService)
 {
     this.championService      = championService;
     this.itemService          = itemService;
     this.positionService      = positionService;
     this.summonerSpellService = summonerSpellService;
 }
        public CalculatePowerPositionSteps()
        {
            this.dataInput = new List <Trade>();
            var mockAdapter = new Mock <IPowerServiceAdapter>();

            mockAdapter.Setup(adapter => adapter.GetTradesAsync(It.IsAny <DateTime>()))
            .ReturnsAsync((Func <DateTime, IReadOnlyList <PowerTradeDto> >) this.ConvertToTradeDtos);

            this.service = new PositionService(mockAdapter.Object);
        }
 public TestSuiteController(ITestSuiteService testSuiteService, ITagsService tagsService, IMappingService mappingService, IPositionService positionService, IUserService userService, Silicus.UtilityContainer.Services.Interfaces.IUserService containerUserService, CommonController commonController)
 {
     _testSuiteService     = testSuiteService;
     _tagsService          = tagsService;
     _mappingService       = mappingService;
     _positionService      = positionService;
     _userService          = userService;
     _containerUserService = containerUserService;
     _commonController     = commonController;
 }
Exemple #30
0
 public HomeController(UserManager<ApplicationUser> UserManager,ICompanyService CompanyService,IEmployeeService EmployeeService,IReportService ReportService,IExperienceService experienceService, ITerminateService terminateService, IPositionService positionService)
 {
     this.companyService = CompanyService;
     this.employeeService = EmployeeService;
     this.terminateService = terminateService;
     this.reportService = ReportService;
     this.experienceService = experienceService;
     this.positionService = positionService;
     this.userManager = UserManager;
 }
 public EmployeeController(IPositionService positionService,
                           IUserService userService,
                           IEmployeeService employeeService,
                           IAddressService addressService)
 {
     _postionService  = positionService;
     _userService     = userService;
     _employeeService = employeeService;
     _addressService  = addressService;
 }
Exemple #32
0
        public AlprService(IPositionService positionService, ICamera camera, IAlprLogger dataLogger, IScheduler scheduler, ApplicationSettings settings)
        {
            this.positionService = positionService;
            this.camera = camera;
            this.dataLogger = dataLogger;
            this.settings = settings;

            this.scheduler = scheduler;
            this.scheduler.Alarm += Alarm;            
        }
Exemple #33
0
 public UpsertService(IDepartmentService departmentService,
                      ICategoryService categoryService, IPositionService positionService,
                      IPositionLevelService positionLevelService, IRoleService roleService)
 {
     _departmentService    = departmentService;
     _categoryService      = categoryService;
     _positionService      = positionService;
     _positionLevelService = positionLevelService;
     _roleService          = roleService;
 }
 public AdminController(IAccessManager accessManager, IUserDataService userDataService,
                        IEventLogService eventLogService, IPositionService positionService, IHostEnvironment hostEnvironment)
 {
     _accessManager      = accessManager;
     _userDataService    = userDataService;
     _eventLogService    = eventLogService;
     _positionService    = positionService;
     _hostEnvironment    = hostEnvironment;
     _adminSubsystemName = Constants.AdminSubsystem;
 }
 public MessagingExtensionService(IMessagingExtensionActionsService messagingExtensionActionsService,
                                  ICandidateService candidateService,
                                  IPositionService positionService,
                                  IMapper mapper)
 {
     _messagingExtensionActionsService = messagingExtensionActionsService;
     _candidateService = candidateService;
     _positionService  = positionService;
     _mapper           = mapper;
 }
        public PositionsForManagerViewModel(PositionsForManager positions)
        {
            view = positions;


            positionService = new PositionService();

            Position     = new tblPosition();
            PositionList = positionService.GetPositions();
        }
 public EmployeesController(IEmployeeService employeeService, IDepartmentService departmentService, ICertificateService certificateService, ICityService cityService, ICountryService countryService, IPositionService positionService, IRegionService regionService)
 {
     this.employeeService    = employeeService;
     this.departmentService  = departmentService;
     this.certificateService = certificateService;
     this.cityService        = cityService;
     this.countryService     = countryService;
     this.positionService    = positionService;
     this.regionService      = regionService;
 }
Exemple #38
0
 public EmployeeController(UserManager<ApplicationUser> UserManager, IExperienceService experienceService, ISalaryService salaryService, IEmployeeService employeeService, ICompanyService companyService, ITerminateService terminateService, IPositionService positionService, IContractService contractService, IInsuranceService insuranceService)
 {
     this.employeeService = employeeService;
     this.companyService = companyService;
     this.terminateService = terminateService;
     this.positionService = positionService;
     this.contractService = contractService;
     this.insuranceService = insuranceService;
     this.salaryService = salaryService;
     this.experienceService = experienceService;
     this.userManager = UserManager;
 }
 public OrderController(IAuditLevelService auditLevelService, IEnquiryService enquiryService,
     IMapperFactory mapperFactory, IEmployeesService employeesService, IPositionService positionService,
     IOrderService orderService, IPayPeriodService payPeriodService, ICustomerService customerService)
 {
     _auditLevelService = auditLevelService;
     _enquiryService = enquiryService;
     _mapperFactory = mapperFactory;
     _employeesService = employeesService;
     _positionService = positionService;
     _orderService = orderService;
     _payPeriodService = payPeriodService;
     _customerService = customerService;
 }
 public MyEnquiryController(IEnquiryService enquiryService,
     IMapperFactory mapperFactory,
     IEmployeesService employeesService,
     IPositionService positionService,
     IProductService productService,
     ICustomerService customerService)
 {
     _enquiryService = enquiryService;
     _mapperFactory = mapperFactory;
     _employeesService = employeesService;
     _positionService = positionService;
     _productService = productService;
     _customerService = customerService;
 }
Exemple #41
0
 public AppController(
     IUserService userService,
     ILoginService loginService,
     IPositionService positionService,
     IAlarmService alarmService,
     IMileageReportService mileageReportService,
     IDeviceService deviceService,
     IAUserService aUserService,
     IStateService stateService, IAreaService areaService, 
     IInstructionSendService instructionSendService)
 {
     _userService = userService;
     _aUserService = aUserService;
     _loginService = loginService;
     _positionService = positionService;
     _mileageReportService = mileageReportService;
     _deviceService = deviceService;
     _stateService = stateService;
     _areaService = areaService;
     _instructionSendService = instructionSendService;
     _alarmService = alarmService;
 }
 public MemberController(
     IDeviceService deviceService,
     IDeviceGroupService deviceGroupService,
     IPositionService positionService,
     IAreaService areaService,
     ILineService lineService,
     IAlarmService alarmService,
     IMileageReportService mileageReportService,
     IAUserService aUserService,
     IUserService userService,
     IInstructionSendService instructionSendService)
 {
     _deviceService = deviceService;
     _deviceGroupService = deviceGroupService;
     _positionService = positionService;
     _areaService = areaService;
     _lineService = lineService;
     _alarmService = alarmService;
     _mileageReportService = mileageReportService;
     _aUserService = aUserService;
     _userService = userService;
     _instructionSendService = instructionSendService;
 }
 public PositionsController(BaseServiceCollection baseServiceCollection, IPositionService positionService)
     : base(baseServiceCollection)
 {
     _positionService = positionService;
 }
 public PositionsController(IPositionService ps)
 {
     positionService = ps;
 }
 public PositionController(IPositionService positionService)
 {
     _positionService = positionService;
 }
        public PositionCenterViewModel(IPositionService positionService)
        {
            _positionService = positionService;

            InitializeView();
        }
 public WeChatController(IAWeChatService aWeChatService, IPositionService positionService)
 {
     _aWeChatService = aWeChatService;
     _positionService = positionService;
 }
 public AccountService(IBaseRepository repository, IImageService imageService, IPositionService positionService)
     : base(repository)
 {
     _imageService = imageService;
     _positionService = positionService;
 }
 private void SetupGetPositions()
 {
     MockBaseRepository.Setup(x => x.List<Position>(DetachedCriteria.For<Position>())).Returns(new List<Position>());
     _positionService = new PositionService(MockBaseRepository.Object);
 }
 private void SetupFindUserPositions()
 {
     MockBaseRepository.Setup(x => x.List<UserPosition>(It.IsAny<DetachedCriteria>())).Returns(new List<UserPosition>());
     _positionService = new PositionService(MockBaseRepository.Object);
 }
 private void SetupDeleteUserPosition()
 {
     MockBaseRepository.Setup(x => x.Delete(It.IsAny<Entity>(), null));
     _positionService = new PositionService(MockBaseRepository.Object);
 }
 private void SetupCreateUserPositionSuccess()
 {
     MockBaseRepository.Setup(x => x.SaveOrUpdate(It.IsAny<IList<UserPosition>>(), null)).Returns(new List<UserPosition> { _validUserPosition });
     _positionService = new PositionService(MockBaseRepository.Object);
 }
        private void SetupCreatePositionSuccess()
        {
            _validPosition = new Position
                                 {
                                     Name = "TestPosition",
                                     SystemRole = SystemRole.Member,
                                 };

            _validPosition.AddInvalidValues(new NHibernate.Validator.Engine.InvalidValue[0]);

            MockBaseRepository.Setup(x => x.SaveOrUpdate(_validPosition, null)).Returns(_validPosition);
            MockBaseRepository.Setup(x => x.List<Position>(DetachedCriteria.For<Position>())).Returns(new List<Position>());
            _positionService = new PositionService(MockBaseRepository.Object);
        }
 public TeachersController(ITeacherService ts, IDepartmentService ds, IPositionService ps)
 {
     teacherService = ts;
     departmentService = ds;
     positionService = ps;
 }
 public AReallyGreatService(IPositionService positionServiceService)
 {
     if (positionServiceService == null) throw new ArgumentNullException(nameof(positionServiceService));
     _positionServiceService = positionServiceService;
 }
        public MyEnquiryByCustomerController(IEnquiryService enquiryService,
            IMapperFactory mapperFactory,
            IEmployeesService employeesService,
            IPositionService positionService)
        {
            _enquiryService = enquiryService;
            _mapperFactory = mapperFactory;
            _employeesService = employeesService;
            _positionService = positionService;

        }
        private void SetupCreatePositionFailure()
        {
            _invalidPosition = new Position
                                 {
                                     SystemRole = SystemRole.Member,
                                 };

            MockBaseRepository.Setup(x => x.List<Position>(DetachedCriteria.For<Position>())).Returns(new List<Position>());
            _positionService = new PositionService(MockBaseRepository.Object);
        }
 public PositionCustomerController(IPositionService positionService, ICustomerService customerService, IPositionCustomerService positionCustomerService)
 {
     _positionService = positionService;
     _customerService = customerService;
     _positionCustomerService = positionCustomerService;
 }