public EmployeeController(IMapper mapper, IEmployeeServices employeeServices, IOfficeServices officeServices, ICompanyServices companyServices) { this.mapper = mapper; this.employeeServices = employeeServices; this.officeServices = officeServices; this.companyServices = companyServices; }
public MarketRoutesController(ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, IMarketServices marketServices, IEmployeeServices employeeServices) : base(orderService, propertyService, accountServices, lookupServices) { _accountServices = accountServices; _marketServices = marketServices; _employeeServices = employeeServices; }
public FormCreateEditEmployee(IEmployeeServices employeeServices) { InitializeComponent(); mEmployeeService = employeeServices; LoadAllEmployeeToListBox(); this.Text = "Quản lý người dùng - " + FormUltils.getInstance().GetVersionInfo(); }
public PayController(IpaycompuatuationServices _ppaycompuatuationServices, IEmployeeServices employeeServices, ITaxservices _taxservicess, INationalInsuranceContributionService _nationalInsuranceContributionServicee) { _paycompuatuationServices = _ppaycompuatuationServices; _employeeServices = employeeServices; _taxservices = _taxservicess; _nationalInsuranceContributionService = _nationalInsuranceContributionServicee; }
public EmployeesController(ILogger <EmployeesController> logger, IHostingEnvironment hostingEnvironment, IEmployeeServices employeeServices) { _logger = logger; _hostingEnvironment = hostingEnvironment; _employeeServices = employeeServices; _employeeServices.SetDataPath(_hostingEnvironment.ContentRootPath); }
public EmployeeController() { if (employeeService == null) { employeeService = new EmployeeServicesClient(); } }
/// <summary> /// /// </summary> /// <param name="employeeServices"></param> /// <param name="languageServices"></param> public LanguageController(IEmployeeServices employeeServices, ILanguageServices languageServices, ILogger <LanguageController> logger, ApplicationDbContext applicationDbContext) { _languageServices = languageServices; _employeeServices = employeeServices; _logger = logger; _db = applicationDbContext; }
public AppointmentsController(ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, IEmployeeServices employeeServices, IAppointmentsService appointmentsService, IUserService userService, IGaneConfigurationsHelper emailNotificationsHelper) : base(orderService, propertyService, accountServices, lookupServices) { _employeeServices = employeeServices; _appointmentsService = appointmentsService; _userService = userService; _emailNotificationsHelper = emailNotificationsHelper; }
public ShiftsController(IShiftsServices shiftsServices, ITenantLocationServices storesServices, ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, IEmployeeServices employeeServices) : base(orderService, propertyService, accountServices, lookupServices) { _shiftsServices = shiftsServices; _storesServices = storesServices; _employeeServices = employeeServices; }
public FormLogin(IEmployeeServices employeeServices, IWarehouseServices warehouseService) { InitializeComponent(); mEmployeeService = employeeServices; mWarehouseService = warehouseService; if (mEmployeeService.isConnection()) { LoadAllWarehouses(); lblError.Text = "Đã có kết nối, mời bạn đăng nhập!"; lblError.ForeColor = System.Drawing.Color.Green; } else { lblError.ForeColor = System.Drawing.Color.Red; lblError.Text = "Không có kết nối đến cơ sở dữ liệu, hãy cấu hình CSDL!"; //try //{ // RegistryKey key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\RapidSolution"); // if (key != null) // { // Ultilities.Security.buildNewConnection(key.GetValue("DataSource").ToString(), key.GetValue("InitialCatalog").ToString(), // key.GetValue("UserID").ToString(), key.GetValue("Password").ToString()); // if (mEmployeeService.isConnection()) // { // LoadAllWarehouses(); // lblError.Text = "Đã có kết nối, mời bạn đăng nhập!"; // lblError.ForeColor = System.Drawing.Color.Green; // } // } //}catch{} } this.Text = "Đăng Nhập - " + FormUltils.getInstance().GetVersionInfo(); lblVersion.Text = FormUltils.getInstance().GetVersionInfo(); }
public ManagerController(IReportingStaffService reportingStaff, ISkillService skillService, ISkillRatingService skillRatingService, IEmployeeServices employeeServices) { _reportingStaff = reportingStaff; _skillService = skillService; _skillRatingService = skillRatingService; _employeeServices = employeeServices; }
public void Initialize() { _mockemployeeRepository = new Mock <IEmployeeRepository>(); _service = new EmployeeServices(_mockemployeeRepository.Object); _list = new List <Employee> { new Employee { Id = 1, FirstName = "San", LastName = "Zhang", HireDate = DateTime.Parse("1989-2-12") }, new Employee { Id = 2, FirstName = "Si", LastName = "Li", HireDate = DateTime.Parse("1999-2-12") }, new Employee { Id = 3, FirstName = "Wei", LastName = "Zhang", HireDate = DateTime.Parse("2009-2-12") }, }; _mockemployeeRepository.Setup(d => d.GetEmployeeById(It.IsAny <int>())).ReturnsAsync((int s) => _list.First(x => x.Id == s)); }
public async Task GetAllReportTypeNotValidTestAsync() { Exception expectedException = null; var services = new ServiceCollection(); services.AddTransient <IEmployeeServices, EmployeeServices>(); services.AddTransient <IEmployeeRepository, EmployeeRepository>(); services.AddTransient <IEmployeeDataValidations, EmployeeDataValidations>(); var serviceProvider = services.BuildServiceProvider(); employeeServices = serviceProvider.GetService <IEmployeeServices>(); try { var result = await employeeServices.GetAll("43201", 6); } catch (Exception ex) { expectedException = ex; } Assert.IsTrue(expectedException is Exception); }
public void CreateEmployeeErrorYearTest() { Exception expectedException = null; var services = new ServiceCollection(); services.AddTransient <IEmployeeServices, EmployeeServices>(); services.AddTransient <IEmployeeRepository, EmployeeRepository>(); services.AddTransient <IEmployeeDataValidations, EmployeeDataValidations>(); var serviceProvider = services.BuildServiceProvider(); employeeServices = serviceProvider.GetService <IEmployeeServices>(); try { employeeServices.CreateEmployee(createExistingEmployeeYearErrorData(), 5, 5, 2020); Assert.Fail(); } catch (Exception ex) { expectedException = ex; } Assert.IsTrue(expectedException is Exception); }
public DrivingPermitController(IDrivingPermitServices drivingPermitServices, IEmployeeServices employeeServices, ILogger <DrivingPermitController> logger, ApplicationDbContext applicationDbContext) { _drivingPermitServices = drivingPermitServices; _employeeServices = employeeServices; _db = applicationDbContext; _logger = logger; }
public VisaController(IVisaServices visaServices, IEmployeeServices employeeServices, ILogger <VisaController> logger, ApplicationDbContext applicationDbContext) { _visaServices = visaServices; _employeeServices = employeeServices; _logger = logger; _db = applicationDbContext; }
/// <summary> /// /// </summary> /// <param name="employeeServices"></param> /// <param name="workPermitServices"></param> public WorkPermitController(IEmployeeServices employeeServices, IWorkPermitServices workPermitServices, ILogger <WorkPermitController> logger, ApplicationDbContext applicationDbContext) { _employeeServices = employeeServices; _workPermitServices = workPermitServices; _logger = logger; _db = applicationDbContext; }
public AuthController(IEmployeeServices employeeServices, ICreateToken token, IUserRoleServices userRoleServices, IRoleServices roleServices) { _token = token; _employeeServices = employeeServices; _userRoleServices = userRoleServices; _roleServices = roleServices; }
/// <summary> /// The Constructor /// </summary> /// <param name="applicationDbContext"></param> /// <param name="relationshipTypeServices"></param> /// <param name="employeeServices"></param> /// <param name="logger"></param> public NextofkinController(ApplicationDbContext applicationDbContext, IRelationshipTypeServices relationshipTypeServices, IEmployeeServices employeeServices, ILogger <NextofkinController> logger, INextOfKinServices nextOfKinServices) { _db = applicationDbContext; _logger = logger; _relationshipTypeServices = relationshipTypeServices; _employeeServices = employeeServices; _nextOfKinServices = nextOfKinServices; }
public PalletsController(ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, ITenantsServices tenantsServices, IPalletingService palletingService, IMarketServices marketServices, IEmployeeServices employeeServices, IGaneConfigurationsHelper helper) : base(orderService, propertyService, accountServices, lookupServices) { _palletingService = palletingService; _marketServices = marketServices; _employeeServices = employeeServices; _helper = helper; _tenantServices = tenantsServices; }
public PumpController(IDatabaseServices DatabaseService, IEmployeeServices EmployeeServices, IApplicationServices ApplicationServices, ICallDataServices CallDataServices, ICallTreeServices CallTreeServices) { _databaseServices = DatabaseService; _employeeServices = EmployeeServices; _applicationServices = ApplicationServices; _callDataServices = CallDataServices; _callTreeServices = CallTreeServices; }
public FormConfigDB(IEmployeeServices employeeServices) { InitializeComponent(); this._employeeServices = employeeServices; lblMessage.Text = ""; FillInfo(); this.Text = "Cấu Hình - " + FormUltils.getInstance().GetVersionInfo(); }
public TenantLocationsController(ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, ITenantLocationServices tenantLocationServices, IMarketServices marketServices, ITerminalServices terminalServices, IUserService userService, IEmployeeServices employeeServices) : base(orderService, propertyService, accountServices, lookupServices) { _tenantLocationServices = tenantLocationServices; _marketServices = marketServices; this._terminalServices = terminalServices; this._userService = userService; this._employeeServices = employeeServices; }
/// <summary> /// The Constructor /// </summary> /// <param name="employmentRecordServices"></param> /// <param name="applicationDbContext"></param> /// <param name="logger"></param> /// <param name="employeeServices"></param> public EmploymentRecordController(IEmploymentRecordServices employmentRecordServices, ApplicationDbContext applicationDbContext, ILogger <EmploymentRecordController> logger, IEmployeeServices employeeServices) { _db = applicationDbContext; _employeeServices = employeeServices; _employmentRecordServices = employmentRecordServices; _logger = logger; }
public TimeLogController(IEmployeeShiftsServices employeeShiftsServices, IEmployeeShiftsStoresServices employeeShiftsStoresServices, IEmployeeServices employeeServices, ITenantLocationServices tenantLocationsServices, IShiftsServices shiftsServices, ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, IActivityServices activityServices) : base(orderService, propertyService, accountServices, lookupServices) { _employeeShiftsServices = employeeShiftsServices; _employeeShiftsStoresServices = employeeShiftsStoresServices; _employeeServices = employeeServices; _tenantLocationsServices = tenantLocationsServices; _shiftsServices = shiftsServices; _activityServices = activityServices; }
/// <summary> /// The Constructor /// </summary> /// <param name="crimeServices"></param> /// <param name="applicationDbContext"></param> /// <param name="logger"></param> /// <param name="employeeServices"></param> public CrimesController( ICrimeServices crimeServices, ApplicationDbContext applicationDbContext, ILogger <CrimesController> logger, IEmployeeServices employeeServices) { _crimeServices = crimeServices; _db = applicationDbContext; _logger = logger; _employeeServices = employeeServices; }
public DisplinaryController( IDisplinaryServices displinaryServices, ApplicationDbContext applicationDbContext, ILogger <DisplinaryController> logger, IEmployeeServices employeeServices) { _displinaryServices = displinaryServices; _db = applicationDbContext; _logger = logger; _employeeServices = employeeServices; }
/// <summary> /// The Constructor /// </summary> /// <param name="childrenServices"></param> /// <param name="applicationDbContext"></param> /// <param name="logger"></param> /// <param name="employeeServices"></param> public ChildrenController(IChildrenServices childrenServices, ApplicationDbContext applicationDbContext, ILogger <ChildrenController> logger, IEmployeeServices employeeServices, IBirthOrderServices birthOrderServices) { _childrenServices = childrenServices; _db = applicationDbContext; _logger = logger; _employeeServices = employeeServices; _birthOrderServices = birthOrderServices; }
public BookingCarController(IMapper mapper, IEmployeeServices employeeServices, ITicketSerivces ticketSerivces, IDriverServices driverServices, ICarServices carServices, IBusinessUnitSerivces businessUnitSerivces, ITripServices tripServices) { _mapper = mapper; _employeeServices = employeeServices; _ticketSerivces = ticketSerivces; _driverServices = driverServices; _carServices = carServices; _businessUnitServices = businessUnitSerivces; _tripServices = tripServices; }
/// <summary> /// The Constructor /// </summary> /// <param name="applicationDbContext"></param> /// <param name="logger"></param> /// <param name="employeeServices"></param> /// <param name="notificationEmailServices"></param> public EmailController( ApplicationDbContext applicationDbContext, ILogger <EmailController> logger, IEmployeeServices employeeServices, INotificationEmailServices notificationEmailServices) { _db = applicationDbContext; _logger = logger; _employeeServices = employeeServices; _notificationEmailServices = notificationEmailServices; }