public HomeController(IEmployeeService empserv, IRoleService roleserv) { employeeService = empserv; roleService = roleserv; }
public EmployeeController(IEmployeeService employeeService, ITaxService taxService, IMapper mapper, IPathProvider pathProvider) { _employeeService = employeeService; _taxService = taxService; _mapper = mapper; _pathProvider = pathProvider; }
public SupervisorController(IEmployeeService empService, IExpenseReportService rptService, Employee employee,IBudgetService budget) { employeeService = empService; reportService = rptService; this.employee = employee; deptBudget = budget; }
public LogController(IAFBService afbService, IAFBAllianceService allianceService, IAFBTeamService afbTeamService, IEmployeeService employeeService) : base(employeeService) { _IAFBService = afbService; _IAFBAllianceService = allianceService; _IAFBTeamService = afbTeamService; }
public LogController(ITennisService tennisService, ITennisAllianceService tennisAllianceService,INameControlService namecontrolservice, IEmployeeService employeeService) : base(employeeService) { _ITennisService = tennisService; _ITennisAllianceService = tennisAllianceService; _INameControlService = namecontrolservice; }
public WorldRecordingContext(ILongTimeAbsenceService longabsenceService, IAbsenceService absenceService, IWorkingModelService wmManager, IColouringService colorManager, IEmployeeService emplService, IStoreService storeService, IWorkingTimePlanningService workingTimePlanningService, IAbsenceTimePlanningService absenceTimePlanningService, IWorkingTimeRecordingService workingTimeRecordingService, IAbsenceTimeRecordingService absenceTimeRecordingService ) { _EmployeeService = emplService; _StoreService = storeService; _WorkingTimePlanningService = workingTimePlanningService; _AbsenceTimePlanningService = absenceTimePlanningService; _WorkingTimeRecordingService = workingTimeRecordingService; _AbsenceTimeRecordingService = absenceTimeRecordingService; m_countryabsences = new AbsenceManager(absenceService); m_longabsences = new LongTimeAbsenceManager(longabsenceService); m_workingmodelmanager = new WorkingModelManagerNew(wmManager); m_colormanager = new CountryColorManager(colorManager); _ViewDate = DateTime.Today; _BeginWeekDate = DateTimeHelper.GetMonday(DateTime.Today); _EndWeekDate = DateTimeHelper.GetSunday(DateTime.Today); _ViewDate = DateTime.Today; }
public EmployeeController(IEmployeeService employeeService, IEmployeeViewModelFactory employeeViewModelFactory, INewRegistrationRequestService newRegistrationRequestService, IUserService userService) { _employeeService = employeeService; _employeeViewModelFactory = employeeViewModelFactory; _newRegistrationRequestService = newRegistrationRequestService; _userService = userService; }
public AccountsController(IEmployeeService empService, IExpenseReportService rptService, Employee employee,IBudgetService budget) { employeeService = empService; reportService = rptService; this.employee = employee; budgetTracker = budget; }
public IHTeamController(IEmployeeService employeeService, IIceHockeyTeamService its, IIceHockeyAllianceService ias, ISourceTypeService ists) : base(employeeService) { _IIceHockeyTeamService = its; _IIceHockeyAllianceService = ias; _ISourceTypeService = ists; }
public AddUsersViewModelFactory(IEmployeeService employeeService, IRolesService rolesService, ISiteService siteService, ISiteGroupService siteGroupService) { _employeeService = employeeService; _rolesService = rolesService; _siteService = siteService; _siteGroupService = siteGroupService; }
public MyRiskAssessmentReviewController(IRiskAssessmentService riskAssessmentService, IEmployeeService employeeService, IRiskAssessmentReviewService riskAssessmentReviewService, IReviewAuditDocumentHelper reviewAuditDocumentHelper,IFireRiskAssessmentService fireRiskAssessmentService , IBusinessSafeSessionManager businessSafeSessionManager, IBus bus) : base(riskAssessmentService, employeeService, riskAssessmentReviewService, reviewAuditDocumentHelper, fireRiskAssessmentService, businessSafeSessionManager, bus) { IsSqlReportAvailable = true; }
public LogController(IBasketballService basketballService, IBasketballAllianceService basketballianceservice, IBasketballTeamService basketballteamservice, IEmployeeService employeeService) : base(employeeService) { _IBasketballService = basketballService; _IBasketballAllianceService = basketballianceservice; _IBasketballTeamService = basketballteamservice; }
public AssociateController( IMembershipService membershipService, IMembershipService associateMembershipService, IAssociateService associateService, IDocumentService documentService, IReferenceService referenceService, IEmployeeService employeeService, IProspectService prospectService, IPrincipal user, IClientProjectSharedService clientProjectSharedService, IIndividualService individualService, IRoleService roleService, Admin.Services.IEmailService emailService) : base(membershipService, associateService, user) { this.associateService = associateService; this.documentService = documentService; this.referenceService = referenceService; this.employeeService = employeeService; this.prospectService = prospectService; this.associateMembershipService = associateMembershipService; this.clientProjectSharedService = clientProjectSharedService; this.individualService = individualService; this.roleService = roleService; this.emailService = emailService; }
public TestCenterApiController( [Dependency("EmployeeService")] IEmployeeService employeeService, [Dependency("BossService")] IEmployeeService bossService) { _employeeService = employeeService; _bossService = bossService; }
public AdminController(IEmailService emailService, IEmployeeService employeeservice, IProjectService projectService, ISkillSetService skillsetservice) { _projectService = projectService; _employeeService = employeeservice; _emailService = emailService; _skillsetservice = skillsetservice; }
public BBTeamController(IEmployeeService employeeService, IBaseballTeamService its, IBaseballAllianceService ias, ISourceTypeService ists) : base(employeeService) { _IBaseballTeamService = its; _IBaseballAllianceService = ias; _ISourceTypeService = ists; }
public EmployeeCostEntryViewModel( IMessageBroker messageBroker, IEmployeeCostService costService, IEmployeeService employeeService, SaveEmployeeCostCommand saveCostCommand, CancelCommand cancelCommand, ShowEmployeeCostCommand showListCommand ) { this.messageBroker = messageBroker; this.costService = costService; this.employeeService = employeeService; ActualSaveCommand = saveCostCommand; CancelCommand = cancelCommand; ShowCostListCommand = showListCommand; InitializeCommands(); NavigationCommands = new List<CommandBase>{SaveCommand,CancelCommand}; CancelCommand.Action = broker => showListCommand.Execute(null); PropertiesToValidate = new List<string>() { "Date", "Total", "Details" }; Employees = new ObservableCollection<Employee>(employeeService.GetAll()); SubscribeMessages(); }
public LogController(IIceHockeySchedulesService ihService, IIceHockeyAllianceService ia, IIceHockeyTeamService it, IEmployeeService employeeService) : base(employeeService) { _IIceHockeySchedulesService = ihService; _IIceHockeyAllianceService = ia; _IIceHockeyTeamService = it; }
public FormsAuthenticationService(HttpContextBase httpContext, IEmployeeService employeeService) { this._httpContext = httpContext; this._employeeService = employeeService; this._expirationTimeSpan = FormsAuthentication.Timeout; }
public AccountsController() { reportService = new ExpenseReportService(); employeeService = new EmployeeService(); config = new ConfigurationDAL(); budgetTracker = new CompanyBudgetService(decimal.Parse((string)config.GetAppSetting(COMPANY_BUDGET_KEY))); employee = employeeService.GetEmployee((int)Membership.GetUser().ProviderUserKey); }
public EmployeeController(IEmployeeService employeeService, INamePrefixService namePrefixService, ILocationService locationService, IDepartmentService departmentService, ISkillService skillService) { _employeeService = employeeService; _namePrefixService = namePrefixService; _locationService = locationService; _departmentService = departmentService; _skillService = skillService; }
public BossEmployeeService([Dependency("EmployeeService")] IEmployeeService employeeService) { _employeeService = employeeService; Add(new TestBoss { FirstName = "George", LastName = "Washington", Dob = new DateTime(1720, 6, 15), Title = "Father of America", Status = 1 }); Add(new TestBoss { FirstName = "Abraham", LastName = "Lincoln", Dob = new DateTime(1810, 12, 1), Title = "Emancipator", Status = 1 }); Add(new TestBoss { FirstName = "Theodore", LastName = "Roosevelt", Dob = new DateTime(1875, 3, 31), Title = "Bull Moose", Status = 1 }); }
public TableController(IEmployeeService employeeService, ITableService tableService, IUnitOfWork unitOfWork) { _employeeService = employeeService; _tableService = tableService; _unitOfWork = unitOfWork; }
public void Initialize() { _mockery = new Mockery(); _view = _mockery.NewMock<IEmployeeView>(); _service = _mockery.NewMock<IEmployeeService>(); _model = new EmployeeModel(); _presenter = new EmployeePresenter(_view, _model, _service); }
public ExtendedProjectService(IProjectService projectService, IEmployeeService employeeService, IEmployeeDAO employeeDataAccessObject, IProjectDAO projectDataAccessObject) { this.projectService = projectService; this.employeeService = employeeService; this.employeeDataAccessObject = employeeDataAccessObject; this.projectDataAccessObject = projectDataAccessObject; }
public SupervisorController() { reportService = new ExpenseReportService(); employeeService = new EmployeeService(); employee = employeeService.GetEmployee((int)Membership.GetUser().ProviderUserKey); deptBudget = new DepartmentBudgetService(employee.Department); deptBudget.SetBudgetSpent(TODAY.Month, TODAY.Year); }
public LogController(IMarqueeService marqueeService, INameControlService nameControlService, IIPAccessService ipaccessservice,ISetTypeValService settypevalservice, IEmployeeService employeeService) : base(employeeService) { _IMarqueeService = marqueeService; _INameControlService = nameControlService; _IIPAccessService = ipaccessservice; _ISetTypeValService = settypevalservice; }
public EmployeeTableService(IEmployeeService employeeService, IProjectService projectService, IEmployeeDAO employeeDAO, IProjectDAO projectDAO) { this.employeeService = employeeService; this.projectService = projectService; this.employeeDataAccessObject = employeeDAO; this.projectDataAccessObject = projectDAO; }
public ProjectController(IProjectService projectService, IEmployeeService employeeService, IExtendedProjectService extendedProjectService, IAutocompleteProjectService autocompleteProjectService) { this.extendedProjectService = extendedProjectService; this.employeeService = employeeService; this.projectService = projectService; this.autocompleteProjectService = autocompleteProjectService; }
public IHSchedulesController(IEmployeeService employeeService, IIceHockeySchedulesService ihService, IIceHockeyAllianceService ia, IIceHockeyTeamService it, IScoreModifyRecordService ismrs) : base(employeeService) { _IIceHockeySchedulesService = ihService; _IIceHockeyAllianceService = ia; _IIceHockeyTeamService = it; _ISMRService = ismrs; }
public MainWindow(IEmployeeService employeeService, IDepartmentService departmentService, Processing processing) { this.InitializeComponent(); this.employeeService = employeeService; this.departmentService = departmentService; this.processing = processing; }
public EmployeesDataPresenter(IEmployeeService employeeService) { _employeeService = employeeService; }
public HomeController(IEmployeeService employeeService) { _employeeService = employeeService; }
public SchedulingController(ISchedulingService schedulingService, IEmployeeService employeeService, IFCMService fcmService) { _schedulingService = schedulingService; _employeeService = employeeService; _fcmService = fcmService; }
public SetAddressCommand(IEmployeeService employeeService) { this.employeeService = employeeService; }
public bool ValidUpdateObject(SPKL spkl, IEmployeeService _employeeService) { spkl.Errors.Clear(); ValidCreateObject(spkl, _employeeService); return(isValid(spkl)); }
public EmployeesController(IEmployeeService employeeService, IStorageService storageService) { _employees = employeeService; _storageService = storageService; }
public EmployeeController() { _repo = new EmployeeDirectory.Web.Infrastructure.Repository.EmployeeRepository(); _empService = new EmployeeService(_repo, HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>()); }
public EmployeeController(IEmployeeService employeeService, IWebHostEnvironment hostingEnvironment) { _employeeService = employeeService; _hostingEnvironment = hostingEnvironment; }
public EmployeeFamilySaveService(IEmployeeRepository employeeRepository, IEmployeeService employeeService) { _EmployeeRepository = employeeRepository; _EmployeeService = employeeService; }
public NumReportsController(ILogger <EmployeeController> logger, IEmployeeService employeeService) { _logger = logger; _employeeService = employeeService; }
public EmployeeController(UserManager <LoginUser> userManager, IEmployeeService employeeService) : base(userManager) { _employeeService = employeeService; }
public EmployeeController(IEmployeeService employeeService, IMapper mapper) { _employeeService = employeeService; _mapper = mapper; }
public DetailsModel(IEmployeeService context) { _context = context; }
public SetBirthdayCommand(IEmployeeService employees) { this.employees = employees; }
public EmployeeDetailsController(IEmployeeService empService) { this._empService = empService; }
public UpdateEmployeeModel(IEmployeeService employeeService, IDepartmentService departmentService) { _employeeService = employeeService; _departmentService = departmentService; }
public MockLiveDataService(IHttpContextAccessor httpContextAccessor, IEmployeeService employeeService) // public MockLiveDataService(IEmployeeService employeeService) { _httpContextAccessor = httpContextAccessor; _connectionString = employeeService.getCs(); Console.WriteLine("MockLiveDataService.cs - test HTTPContextAccessor =============================== " + _httpContextAccessor.HttpContext.User.Identity); // .scope); // . Request.PathBase); // . Request.Body); // Query["culture"]); // .ClaimsPrincipal; // Identity as ClaimsPrincipal; this.LogCurrentUser(); fileSystemWatcher_create = new FileSystemWatcher(Path.GetDirectoryName(filePath), "*.*"); fileSystemWatcher_change = new FileSystemWatcher(Path.GetDirectoryName(filePath), Path.GetFileName(filePath)); if (!System.IO.File.Exists(filePath)) { Console.WriteLine("MockLiveDataService.cs - Il file '{0}' nella directory '{1}' non esiste ancora, touch..", Path.GetFileName(filePath), Path.GetDirectoryName(filePath)); System.IO.File.Create(filePath); System.IO.File.SetLastWriteTimeUtc(filePath, DateTime.UtcNow); } else { Console.WriteLine("MockLiveDataService.cs - Il file '{0}' nella directory '{1}' esiste, Ok prosecuzione..", Path.GetFileName(filePath), Path.GetDirectoryName(filePath)); } fileSystemWatcher_create.EnableRaisingEvents = true; fileSystemWatcher_change.EnableRaisingEvents = true; //***************************************************************************************// //*** Use the FromEventPattern operator to setup a subscription to the Created event. ***// //***************************************************************************************// IObservable <EventPattern <FileSystemEventArgs> > fswCreated = Observable.FromEventPattern <FileSystemEventArgs>(fileSystemWatcher_create, "Created"); IObservable <EventPattern <FileSystemEventArgs> > fswChanged = Observable.FromEventPattern <FileSystemEventArgs>(fileSystemWatcher_change, "Changed"); Console.WriteLine("MockLiveDataService.cs - MockLiveDataService(IEmployeeService employeeService)...\n"); // Download = fswCreated // Download = fswChanged // fswCreated // .Select(pattern => $"{pattern.EventArgs.Name} - {(((FileSystemWatcher)pattern.Sender).Path)}"); // .Select(pattern => $"{pattern.EventArgs.ChangeType} - {(((FileSystemWatcher)pattern.Sender).Path)}"); // Download = fswCreated Download = fswChanged // fswCreated // .Select(pattern => $"{pattern.EventArgs.Name} - {(((FileSystemWatcher)pattern.Sender).Path)}"); .Select(pattern => $"{pattern.EventArgs.ChangeType} - {new FileInfo(filePath).Length} - { (((FileSystemWatcher)pattern.Sender).Filter) }"); Upload = fswCreated // Download = fswChanged // fswCreated // .Select(pattern => $"{pattern.EventArgs.Name} - {(((FileSystemWatcher)pattern.Sender).Path)}") .Select(pattern => $"{pattern.EventArgs.ChangeType} - { (((FileSystemWatcher)pattern.Sender).Filter) }"); /* * Download = Observable * .Interval(TimeSpan.FromMilliseconds(900)) * .StartWith(0) * .Select(_ => $"{Math.Round(_random.Next(15, 30) + _random.NextDouble(), 1)} Mb/s"); * * Upload = Observable * .Interval(TimeSpan.FromMilliseconds(800)) * .StartWith(0) * .Select(_ => $"{Math.Round(_random.Next(5, 7) + _random.NextDouble(), 1)} Mb/s"); */ // PC.CategoryName = "Process"; // PC.CounterName = "Working Set - Private"; // PC.InstanceName = proc.ProcessName; // memsize = Convert.ToInt32(PC.NextValue()) / (int)(1024); // Console.WriteLine($"MEMSIZE: {memsize/1024/1024} MB"); // PC.Close(); // PC.Dispose(); /* * foreach (Process pr in Process.GetProcesses()) * { * try * { * Console.WriteLine("App Name: {0}, Process Name: {1}", Path.GetFileName(pr.MainModule.FileName), pr.ProcessName); * } * catch { } * } */ // To get FFPLAY.EXE processes var processes = Process.GetProcessesByName("ffplay"); foreach (var process in processes) { Console.WriteLine("MockLiveDataService.cs - ffplay PID={0}", process.Id); Console.WriteLine("MockLiveDataService.cs - ffplay Process Handle={0}", process.Handle); Console.WriteLine("MockLiveDataService.cs - ffplay ram={0}", process.WorkingSet64); } ram = p.WorkingSet64; Console.WriteLine($"MockLiveDataService.cs - RAM di questo processo: {ram/1024/1024} MB"); Latency = Observable .Interval(TimeSpan.FromSeconds(1)) .StartWith(0) .Select(_ => $"{ram/1024/1024} MB"); // .Select(_ => $"{_random.Next(50, 200)} ms"); Users = Observable .Interval(TimeSpan.FromMilliseconds(1200)) .StartWith(0) .Select(_ => _random.Next(200, 300)); Traffic = Observable .Interval(TimeSpan.FromMilliseconds(600)) .StartWith(0) .Select(_ => Enumerable.Range(1, 7).Select(i => _random.Next(1000, 10000)).ToArray()); ServerUsage = Observable .Interval(TimeSpan.FromMilliseconds(400)) .StartWith(0) .Select(_ => Enumerable.Range(1, 10).Select(i => _random.Next(1, 100)).ToArray()); Utilization = Observable .Interval(TimeSpan.FromMilliseconds(800)) .StartWith(0) .Select(_ => Enumerable.Range(1, 3).Select(i => _random.Next(1, 100)).ToArray()); RecentActivity = Observable .Interval(TimeSpan.FromSeconds(2)) .StartWith(0) .Select(_ => GetRandomEmployee(employeeService)) .Select(employee => new Activity { Id = employee.Id, PersonName = employee.FullName, Status = _activities[_random.Next(1, 6)] }) .StartWith( Enumerable.Range(1, 4) .Select(_ => GetRandomEmployee(employeeService)) .Select(employee => new Activity { Id = employee.Id, PersonName = employee.FullName, Status = _activities[_random.Next(1, 6)], }) .ToArray() ); }
public HistoryController(IHistoryService historyService, IStatusTypeService statusTypeService, IRepairPlaceService repairPlaceService, IEquipmentService equipmentService, IEmployeeService employeeService) { HistoryService = historyService; StatusTypeService = statusTypeService; RepairPlaceService = repairPlaceService; EquipmentService = equipmentService; EmployeeService = employeeService; }
public EmployeeController(IEmployeeService employeeService) { this.employeeService = employeeService; }
public IndexPageService(IEmployeeService EmployeeAppService, IMapper mapper) { _EmployeeAppService = EmployeeAppService ?? throw new ArgumentNullException(nameof(EmployeeAppService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public MyEmployeeController(IEmployeeService service) { _service = service; }
public EmployeeTableController(IEmployeeService employeeService) { _employeeService = employeeService; }
public EmployeeController(IEmployeeService service) { this.service = service; }
public EmployeesController(IEmployeeService service, IMapper mapper) { _service = service; _mapper = mapper; }
/// <summary> /// /// </summary> /// <param name="logger"></param> /// <param name="employeeService"></param> public LoginController(ILogger <LoginController> logger, IEmployeeService employeeService) { _logger = logger; _employeeService = employeeService; }
public EmployeesServiceTest() { employeesRepoMoc = new Mock <IEmployeesRepo>(); employeesService = new EmployeeService(employeesRepoMoc.Object); employeesQuery = employees.AsQueryable(); }
public HomeController(IEmployeeService employeeService, IUserService userService) { _employeeService = employeeService; _userService = userService; }
public AuthAPIController(IUserService userService, IHttpContextAccessor tp, CounterMiddleWare md, IEmployeeService employeeService) { _userService = userService; _httpContextAcessor = tp; this.md = md; EmployeeService = employeeService; }
public EmployeeController(IEmployeeService employeeService, IUnitOfWork unitOfWork) { EmployeeService = employeeService; UnitOfWork = unitOfWork; }