public EditEmployeeViewModel(EditEmployee editEmployeeOpen, vwEmployee employeeEdit) { eventObject = new EventClass(); editEmployee = editEmployeeOpen; selectedMenager = new vwMenager(); employee = employeeEdit; selctedLocation = new vwLOCATION(); selectedMenager = new vwMenager(); //selectedMenager.Menager = employee.MenagerName; StartDate = (DateTime)employee.DateOfBirth; Sector = employee.SectorName; locationService = new LocationService(); employeeService = new EmployeeService(); genderService = new GenderService(); sectorService = new SectorService(); LocationList = locationService.GetAllLocations().ToList(); LocationList.OrderByDescending(x => x.Location); LocationList.Reverse(); PotentialMenagers = employeeService.GetAllPotentialMenagersForEditWindow(employeeEdit.EmployeeID); eventObject.ActionPerformed += ActionPerformed; oldEmployee = new vwEmployee(); oldEmployee.FirstName = employee.FirstName; oldEmployee.LastName = employee.LastName; oldEmployee.JMBG = employee.JMBG; }
public AuthController(IUserService userService, INationalityService nationalityService, IEducationService educationService, IReligionService religionService, IWorkService workService, IGenderService genderService, IDegreeService degreeService, IConfirmedUsersService confirmedUserService, IUserManagerService userManagerService, IMapper mapper, ILoggerService <AuthController> loggerService, IAuthService AuthService, IStringLocalizer <AuthenticationErrors> resourceForErrors) { _AuthService = AuthService; _userService = userService; _nationalityService = nationalityService; _religionService = religionService; _degreeService = degreeService; _workService = workService; _educationService = educationService; _genderService = genderService; _confirmedUserService = confirmedUserService; _mapper = mapper; _userManagerService = userManagerService; _loggerService = loggerService; _resourceForErrors = resourceForErrors; }
public UsersController(IUserService userService, IGenderService genderService, IRoleService roleService, SignInManager <User> signInManager) { this.userService = userService; this.genderService = genderService; this.signInManager = signInManager; this.roleService = roleService; }
public QueryController(IAdaptationService adaptationService, IGraduationService graduationService, IIdentityService ıdentityService, IAwardService awardService, IBirthCertificateService birthCertificateService, ICourseService courseService, ICriminalService criminalService, IDesignationService designationService, IPermissionService permissionService, IPromotionService promotionService, ITemporaryDutyService temporaryDutyService, IForeignLanguageService foreignLanguageService, IWorkingPriceService workingPriceService, ITradeUnionInfoService tradeUnionInfoService, IMilitaryService militaryService, IWorkplaceService workplaceService, IPriceTypeService priceTypeService, ITisJobCodeService tisJobCodeService, IAdminStatusService adminStatusService, IDailyWorkingTimeService dailyWorkingTimeService, IPrivateStatusService privateStatusService, IMaritalStatusService maritalStatusService, IGenderService genderService, IWorkingStatusService workingStatusService, IWorkplaceHeadquartersService workplaceHeadquartersService) { _adaptationService = adaptationService; _graduationService = graduationService; _ıdentityService = ıdentityService; _awardService = awardService; _birthCertificateService = birthCertificateService; _courseService = courseService; _criminalService = criminalService; _designationService = designationService; _permissionService = permissionService; _promotionService = promotionService; _temporaryDutyService = temporaryDutyService; _foreignLanguageService = foreignLanguageService; _workingPriceService = workingPriceService; _tradeUnionInfoService = tradeUnionInfoService; _militaryService = militaryService; _workplaceService = workplaceService; _priceTypeService = priceTypeService; _tisJobCodeService = tisJobCodeService; _adminStatusService = adminStatusService; _dailyWorkingTimeService = dailyWorkingTimeService; _privateStatusService = privateStatusService; _maritalStatusService = maritalStatusService; _genderService = genderService; _workingStatusService = workingStatusService; _workplaceHeadquartersService = workplaceHeadquartersService; }
public EmployeeController(IEmployeeService _service, IEmployeeDetailService _employeeDetailService, IEmployeeOtherInfoService _employeeOtherInfoService, IBankAccountTypeService _bankAccountTypeService, IAccessTypeService _accessTypeService, IBloodGroupService _bloodGroupService, ICityService _cityService, IContractTypeService _contractType, ICountryService _countryService, IDisabilitySituationService _disabilitySituationService, IEducationLevelService _educationLevelService, IEducationStatusService _educationStatusService, IEmploymentTypeService _employmentTypeService, IGenderService _genderService, IMaritalStatusService _maritalStatusService, IPositionService _positionService, ICompanyService _companyService, ICompanyBranchService _companyBranchService, ICompanyDepartmentService _companyDepartmentService, IEmployeePositionService _employeePositionService ) { service = _service; employeeDetailService = _employeeDetailService; employeeOtherInfoService = _employeeOtherInfoService; employeePositionService = _employeePositionService; bankAccountTypeService = _bankAccountTypeService; accessTypeService = _accessTypeService; bloodGroupService = _bloodGroupService; cityService = _cityService; contractType = _contractType; countryService = _countryService; disabilitySituationService = _disabilitySituationService; educationLevelService = _educationLevelService; educationStatusService = _educationStatusService; employmentTypeService = _employmentTypeService; genderService = _genderService; maritalStatusService = _maritalStatusService; positionService = _positionService; companyService = _companyService; companyBranchService = _companyBranchService; companyDepartmentService = _companyDepartmentService; }
public VacancyRegisterViewModel(INavigation navigation, IRequestService requestService, Team team, int vacancyId) { _vacancyId = vacancyId; _navigation = navigation; Team = team; if (AppSettings.ApiStatus) { _vacancyService = new VacancyService(requestService); _roleService = new RoleService(requestService); _skillService = new SkillService(requestService); _genderService = new GenderService(requestService); } else { _vacancyService = new FakeVacancyService(); _roleService = new FakeRoleService(); _genderService = new FakeGenderService(); } RoleTypes = new ObservableCollection <MultiSelectObservableGroupCollection <RoleType, Role> >(); Genders = new MultiSelectObservableCollection <Gender>(); Skills = new ObservableCollection <Skill>(); Task.Run(async() => { await LoadRoles(); await LoadGenders(); }); Task.Run(() => LoadVacancy()); }
public UserDetailController(IUserDetailService userDetailService, IGenderService genderService, ApplicationUserManager userManager) { _userDetailService = userDetailService; _genderService = genderService; UserManager = userManager; }
public CaptureNewDogViewViewModel(ICaptureNewDogView view, IGenderService genderService, IBreedService breedService, IGlobalContextService globalContextService) : base(view) { _genderService = genderService; _breedService = breedService; _globalContextService = globalContextService; }
public ProducerController(IMovieService movies, IActorService actors, IProducerService producers, IGenderService genders) { _movieDbService = movies; _actorDbService = actors; _producerDbService = producers; _genderDbService = genders; }
public PlayerRegisterViewModel(INavigation navigation, IRequestService requestService, int playerId) { _playerId = playerId; AvatarSource = "https://www.yourfirstpatient.com/assets/default-user-avatar-thumbnail@2x-ad6390912469759cda3106088905fa5bfbadc41532fbaa28237209b1aa976fc9.png"; _navigation = navigation; _requestService = requestService; if (AppSettings.ApiStatus) { _playerService = new PlayerService(new RequestService()); _loginService = new LoginService(_requestService); _genderService = new GenderService(new RequestService()); _imageService = new ImageService(_requestService); } else { _playerService = new FakePlayerService(); _loginService = new FakeLoginService(); _genderService = new FakeGenderService(); _imageService = new ImageService(new RequestService()); } DateOfBirth = DateTime.Today.AddYears(-16); Genders = new ObservableCollection <Gender>(); Task.Run(() => LoadGenders()); Task.Run(() => LoadPlayer()); }
public GenderTest() { RegisterMappers.Register(); var repository = new GenderRepository(); _service = new GenderService(repository); }
public TshirtController(ITshirtService tshirtService, IGenderService genderService, ILoggerService logger, IMapper mapper, UserManager <AppUser> userManager) { _mapper = mapper; _logger = logger; _tshirtService = tshirtService; _genderService = genderService; _userManager = userManager; }
public TshirtService(IRepositoryManager repositoryManager, IGenderService genderService, ICategoryService categoryService, UserManager <AppUser> userManager, IMapper mapper) { _repositoryManager = repositoryManager; _genderService = genderService; _categoryService = categoryService; _userManager = userManager; _mapper = mapper; }
////region CustomCodeBlockPrivateVariables# ////endregion CustomCodeBlockPrivateVariables# ///<summary> The gender constructor. </summary> public GenderController(IGenderService logic ////region CustomCodeBlockInjection# ////endregion CustomCodeBlockInjection# ) { _logic = logic; ////region CustomCodeBlockCBody# ////endregion CustomCodeBlockCBody# }
public UserService(ApplicationDbContext context, IRoleService roleService, IGenderService genderService, UserManager <User> userManager, IMapper mapper) : base(context) { this.roleService = roleService; this.genderService = genderService; this.userManager = userManager; this.mapper = mapper; }
private readonly IGenderService _service; //para o teste funcionar ele precisa do servico, por isso private readoly IGenderService public GenderTeste() { RegisterMappers.Register(); var repository = new GenderRepository(); _service = new GenderService(repository); //precia de um repositorio que atenda o genderService }
public EmployeeController(IEmployeeService employeeService, IGenderService genderService, IExperienceService experienceService, IQualificationService qualificationService, IDesignationService designationService, IDepartmentService departmentService) { this.employeeService = employeeService; this.genderService = genderService; this.experienceService = experienceService; this.qualificationService = qualificationService; this.designationService = designationService; this.departmentService = departmentService; }
public AccountController(IPersonService personService, IUserService userService, ICityService cityService, IGenderService genderService, ILogger <AccountController> logger) { _personService = personService; _userService = userService; _cityService = cityService; _genderService = genderService; _logger = logger; logger.LogInformation("Hello first log in AccountController Constructor"); }
public GenderController( IGenderService genderService, IValidator <AddGenderRequestDto> addGenderRequestValidator, IValidator <UpdateGenderRequestDto> updateGenderRequestValidator, IMapper mapper) : base(mapper) { _genderService = genderService; _addGenderRequestValidator = addGenderRequestValidator; _updateGenderRequestValidator = updateGenderRequestValidator; }
public UserController(IQuestionService questionService, IQuestionOptionService questionOptionService, IAnswerService answerService, IPersonService personService, IUserService userService, ICityService cityService, IGenderService genderService, ILogger <UserController> logger) { _questionService = questionService; _questionOptionService = questionOptionService; _answerService = answerService; _personService = personService; _userService = userService; _cityService = cityService; _genderService = genderService; _logger = logger; }
public AccountController(IGenderService genderService, IQualificationService qualificationService, IDepartmentService departmentService, IDesignationService designationService, IEmployeeService employeeService, IExperienceService experienceService, ILeaveRequestService leaveRequestService, IVacationTypeService vacationTypeService) { this.genderService = genderService; this.qualificationService = qualificationService; this.departmentService = departmentService; this.designationService = designationService; this.employeeService = employeeService; this.experienceService = experienceService; this.leaveRequestService = leaveRequestService; this.vacationTypeService = vacationTypeService; }
public Seeder(IServiceProvider serviceProvider, IConfiguration configuration) { var connectionString = configuration.GetConnectionString("DefaultConnection"); this.context = new ApplicationDbContext(connectionString); //Set up blob service client this.blobServiceClient = new BlobServiceClient(configuration["AzureBlobStorage:ConnectionString"]); //Set up azure blob service this.azureBlobService = new AzureBlobService(this.blobServiceClient); //Set up gender service this.genderService = new GenderService(context); //Set up roleService var roleManager = serviceProvider.GetRequiredService <RoleManager <Role> >(); this.roleService = new RoleService(context, roleManager); //Set up automapper var mapperConfig = new MapperConfiguration(cfg => { cfg.AddMaps(typeof(UserProfile)); }); this.mapper = mapperConfig.CreateMapper(); //Set up userService var userManager = serviceProvider.GetRequiredService <UserManager <User> >(); this.userService = new UserService(context, this.roleService as RoleService, this.genderService as GenderService, userManager, this.mapper); //Set up productImageService this.productImageService = new ProductImageService(context, this.azureBlobService); //Set up categoryService this.categoryService = new CategoryService(context); //Set up productService this.productService = new ProductService(context, this.mapper, this.productImageService, this.categoryService); //Set up productCommentService this.productCommentService = new ProductCommentService(context); //Set up countryService this.countryService = new CountryService(context); //Set up countryService this.paymentMethodService = new PaymentMethodService(context); //Set up sales service this.saleService = new SaleService(context); }
public MultiAddedController(IAdaptationService adaptationService, IIdentityService ıdentityService, IAwardService awardService, IBloodGroupService bloodGroupService, IGenderService genderService, IMaritalStatusService maritalStatusService, IDisabilityStatusService disabilityStatusService) { _adaptationService = adaptationService; _ıdentityService = ıdentityService; _awardService = awardService; _bloodGroupService = bloodGroupService; _genderService = genderService; _maritalStatusService = maritalStatusService; _disabilityStatusService = disabilityStatusService; }
public EmployeeController( IEmployeeService employeeService, IGenderService genderService, IBranchService branchService, IEmployeeTypeService employeeTypeService, IUserHelper userHelper) { _employeeService = employeeService; _genderService = genderService; _branchService = branchService; _employeeTypeService = employeeTypeService; _userHelper = userHelper; }
public AccountController (IGenderService genderService, UserManager <User> userManager, SignInManager <User> signInManager, RoleManager <IdentityRole> roleManager, IMapper mapper) { _userManager = userManager; _genderService = genderService; _signinManager = signInManager; _roleManager = roleManager; _mapper = mapper; }
public EditorController(IMovieService movies, IActorService actors, IProducerService producers, IGenderService genders, IMappingService mappings) { _movieDbService = movies; _actorDbService = actors; _producerDbService = producers; _genderDbService = genders; _mappingService = mappings; _genders = _genderDbService.GetGenders(); }
//TODO: Configure Mapper for EPVM, PsVM, PVM //TODO: Consider the responsibility of the class, this is doing a lot of leg work, maybe pass to to "Service" layer... //TODO: ...cont. And/Or a ValidationService/Helpers/Mappers public ProductWebService(IProductService productService, IBrandService brandService, ICategoryService categoryService, IProductTypeService productTypeService, IGenderService genderService, IFileValidationWebService fileValidationWebService) { _productService = productService; _brandService = brandService; _categoryService = categoryService; _productTypeService = productTypeService; _genderService = genderService; _fileValidationWebService = fileValidationWebService; _config = new Mapping.AutoMapperWeb().Configuration; mapper = _config.CreateMapper(); }
public ProductService(IProductRepository productRepository, IBrandRepository brandRepository, ICategoryRepository categoryRepository, IProductSizeRepository productSizeRepository, IProductTypeRepository productTypeRepository, IGenderService genderService) { _productRepository = productRepository; _brandRepository = brandRepository; _categoryRepository = categoryRepository; _productSizeRepository = productSizeRepository; _productTypeRepository = productTypeRepository; _genderService = genderService; _config = new Mapping.AutoMapperService().Configuration; mapper = _config.CreateMapper(); }
public HomeController(ICountryService countryService, IRegionService regionService, IJobTypeService jobTypeService, ISectorService sectorService, IExperienceService experienceService, IGenderService genderService, IJobPostService jobPostService, IGeneralService generalService, IMapper mapper) { _countryService = countryService; _regionService = regionService; _jobTypeService = jobTypeService; _sectorService = sectorService; _experienceService = experienceService; _genderService = genderService; _jobPostService = jobPostService; _generalService = generalService; _mapper = mapper; }
public IlanController(IAdsService adsService, IPetTypeService petTypeService, ICategoryService categoryService, IPetBreedService petBreedService, IGenderService petGenderSerivce, ICityService cityService, IUserService userService, IWebHostEnvironment env, ICommentService commentService, IAdsDal adsDal) { _adsService = adsService; _petTypeService = petTypeService; _categoryService = categoryService; _petBreedService = petBreedService; _petGenderSerivce = petGenderSerivce; _cityService = cityService; _userService = userService; _env = env; _commentService = commentService; }
public GendersController(ILogger logger, IUnitOfWork unitOfWork, IGenderService genderService) : base(logger, unitOfWork) { Requires.NotNull(genderService, "EmailTypeService"); _genderService = genderService; }
public CreateAccountViewModel(ILoggerFacade logger, IEventAggregator eventAggregator, ICurrencyService currencyService, IAccountTypeService accountTypeService, IEmailTypeService emailTypeService, IGenderService genderService, ICountryService countryService, ICityService cityService) : base(logger, eventAggregator) { Requires.NotNull(currencyService, "currencyService"); Requires.NotNull(accountTypeService, "accountTypeService"); Requires.NotNull(accountTypeService, "emailTypeService"); Requires.NotNull(genderService, "genderService"); Requires.NotNull(countryService, "countryService"); Requires.NotNull(cityService, "cityService"); _currencyService = currencyService; _accountTypeService = accountTypeService; _emailTypeService = emailTypeService; _genderService = genderService; _countryService = countryService; _cityService = cityService; _lazyLoadedCommand = new Lazy<ICommand>(() => new DelegateCommand(OnLoaded)); _lazyApplyCommand = new Lazy<ICommand>(() => new DelegateCommand(OnApply, CanApply)); _account = new CreateAccountModel(); }
public BaseDataController(IGenderService GenderService, ICategroyService CategoryService, IBrandService BrandService) { genderService = GenderService; categoryService = CategoryService; brandService = BrandService; }