コード例 #1
4
 public HomeController(IEmployeeService empserv, IRoleService roleserv)
 {
     employeeService = empserv;
     roleService     = roleserv;
 }
コード例 #2
0
 public EmployeeController(IEmployeeService employeeService, ITaxService taxService, IMapper mapper, IPathProvider pathProvider)
 {
     _employeeService = employeeService;
     _taxService = taxService;
     _mapper = mapper;
     _pathProvider = pathProvider;
 }
コード例 #3
0
 public SupervisorController(IEmployeeService empService, IExpenseReportService rptService, Employee employee,IBudgetService budget)
 {
     employeeService = empService;
     reportService = rptService;
     this.employee = employee;
     deptBudget = budget;
 }
コード例 #4
0
ファイル: LogController.cs プロジェクト: chanhan/subao_bg
 public LogController(IAFBService afbService, IAFBAllianceService allianceService, IAFBTeamService afbTeamService, IEmployeeService employeeService)
     : base(employeeService)
 {
     _IAFBService = afbService;
     _IAFBAllianceService = allianceService;
     _IAFBTeamService = afbTeamService;
 }
コード例 #5
0
ファイル: LogController.cs プロジェクト: chanhan/subao_bg
 public LogController(ITennisService tennisService, ITennisAllianceService tennisAllianceService,INameControlService namecontrolservice, IEmployeeService employeeService)
     : base(employeeService)
 {
     _ITennisService = tennisService;
     _ITennisAllianceService = tennisAllianceService;
     _INameControlService = namecontrolservice;
 }
コード例 #6
0
        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;
        }
コード例 #7
0
 public EmployeeController(IEmployeeService employeeService, IEmployeeViewModelFactory employeeViewModelFactory,  INewRegistrationRequestService newRegistrationRequestService, IUserService userService)
 {
     _employeeService = employeeService;
     _employeeViewModelFactory = employeeViewModelFactory;
     _newRegistrationRequestService = newRegistrationRequestService;
     _userService = userService;
 }
コード例 #8
0
 public AccountsController(IEmployeeService empService, IExpenseReportService rptService, Employee employee,IBudgetService budget)
 {
     employeeService = empService;
     reportService = rptService;
     this.employee = employee;
     budgetTracker = budget;
 }
コード例 #9
0
ファイル: IHTeamController.cs プロジェクト: chanhan/subao_bg
 public IHTeamController(IEmployeeService employeeService, IIceHockeyTeamService its, IIceHockeyAllianceService ias, ISourceTypeService ists)
     : base(employeeService)
 {
     _IIceHockeyTeamService = its;
     _IIceHockeyAllianceService = ias;
     _ISourceTypeService = ists;
 }
コード例 #10
0
 public AddUsersViewModelFactory(IEmployeeService employeeService, IRolesService rolesService, ISiteService siteService, ISiteGroupService siteGroupService)
 {
     _employeeService = employeeService;
     _rolesService = rolesService;
     _siteService = siteService;
     _siteGroupService = siteGroupService;
 }
コード例 #11
0
 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;
 }
コード例 #12
0
ファイル: LogController.cs プロジェクト: chanhan/subao_bg
 public LogController(IBasketballService basketballService, IBasketballAllianceService basketballianceservice, IBasketballTeamService basketballteamservice, IEmployeeService employeeService)
     : base(employeeService)
 {
     _IBasketballService = basketballService;
     _IBasketballAllianceService = basketballianceservice;
     _IBasketballTeamService = basketballteamservice;
 }
コード例 #13
0
 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;
 }
コード例 #14
0
 public TestCenterApiController(
     [Dependency("EmployeeService")] IEmployeeService employeeService,
     [Dependency("BossService")] IEmployeeService bossService)
 {
     _employeeService = employeeService;
     _bossService = bossService;
 }
コード例 #15
0
 public AdminController(IEmailService emailService, IEmployeeService employeeservice, IProjectService projectService, ISkillSetService skillsetservice)
 {
     _projectService = projectService;
     _employeeService = employeeservice;
     _emailService = emailService;
     _skillsetservice = skillsetservice;
 }
コード例 #16
0
ファイル: BBTeamController.cs プロジェクト: chanhan/subao_bg
 public BBTeamController(IEmployeeService employeeService, IBaseballTeamService its, IBaseballAllianceService ias, ISourceTypeService ists)
     : base(employeeService)
 {
     _IBaseballTeamService = its;
     _IBaseballAllianceService = ias;
     _ISourceTypeService = ists;
 }
コード例 #17
0
        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();
        }
コード例 #18
0
ファイル: LogController.cs プロジェクト: chanhan/subao_bg
 public LogController(IIceHockeySchedulesService ihService, IIceHockeyAllianceService ia, IIceHockeyTeamService it, IEmployeeService employeeService)
     : base(employeeService)
 {
     _IIceHockeySchedulesService = ihService;
     _IIceHockeyAllianceService = ia;
     _IIceHockeyTeamService = it;
 }
コード例 #19
0
 public FormsAuthenticationService(HttpContextBase httpContext,
     IEmployeeService employeeService)
 {
     this._httpContext = httpContext;
     this._employeeService = employeeService;
     this._expirationTimeSpan = FormsAuthentication.Timeout;
 }
コード例 #20
0
 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);
 }
コード例 #21
0
 public EmployeeController(IEmployeeService employeeService, INamePrefixService namePrefixService, ILocationService locationService, IDepartmentService departmentService, ISkillService skillService)
 {
     _employeeService = employeeService;
     _namePrefixService = namePrefixService;
     _locationService = locationService;
     _departmentService = departmentService;
     _skillService = skillService;
 }
コード例 #22
0
        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 });
        }
コード例 #23
0
 public TableController(IEmployeeService employeeService,
     ITableService tableService,
     IUnitOfWork unitOfWork)
 {
     _employeeService = employeeService;
     _tableService = tableService;
     _unitOfWork = unitOfWork;
 }
コード例 #24
0
ファイル: FormTester.cs プロジェクト: oblivious/Oblivious
 public void Initialize()
 {
     _mockery = new Mockery();
     _view = _mockery.NewMock<IEmployeeView>();
     _service = _mockery.NewMock<IEmployeeService>();
     _model = new EmployeeModel();
     _presenter = new EmployeePresenter(_view, _model, _service);
 }
コード例 #25
0
 public ExtendedProjectService(IProjectService projectService, IEmployeeService employeeService, 
                               IEmployeeDAO employeeDataAccessObject, IProjectDAO projectDataAccessObject)
 {
     this.projectService = projectService;
     this.employeeService = employeeService;
     this.employeeDataAccessObject = employeeDataAccessObject;
     this.projectDataAccessObject = projectDataAccessObject;
 }
コード例 #26
0
 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);
 }
コード例 #27
0
ファイル: LogController.cs プロジェクト: chanhan/subao_bg
 public LogController(IMarqueeService marqueeService, INameControlService nameControlService, IIPAccessService ipaccessservice,ISetTypeValService settypevalservice, IEmployeeService employeeService)
     : base(employeeService)
 {
     _IMarqueeService = marqueeService;
     _INameControlService = nameControlService;
     _IIPAccessService = ipaccessservice;
     _ISetTypeValService = settypevalservice;
 }
コード例 #28
0
 public EmployeeTableService(IEmployeeService employeeService, IProjectService projectService,
     IEmployeeDAO employeeDAO, IProjectDAO projectDAO)
 {
     this.employeeService = employeeService;
     this.projectService = projectService;
     this.employeeDataAccessObject = employeeDAO;
     this.projectDataAccessObject = projectDAO;
 }
コード例 #29
0
ファイル: ProjectController.cs プロジェクト: aignatovich/App
 public ProjectController(IProjectService projectService, IEmployeeService employeeService, 
     IExtendedProjectService extendedProjectService, IAutocompleteProjectService autocompleteProjectService)
 {
     this.extendedProjectService = extendedProjectService;
     this.employeeService = employeeService;
     this.projectService = projectService;
     this.autocompleteProjectService = autocompleteProjectService;
 }
コード例 #30
0
 public IHSchedulesController(IEmployeeService employeeService, IIceHockeySchedulesService ihService, IIceHockeyAllianceService ia, IIceHockeyTeamService it, IScoreModifyRecordService ismrs)
     : base(employeeService)
 {
     _IIceHockeySchedulesService = ihService;
     _IIceHockeyAllianceService = ia;
     _IIceHockeyTeamService = it;
     _ISMRService = ismrs;
 }
コード例 #31
0
        public MainWindow(IEmployeeService employeeService, IDepartmentService departmentService, Processing processing)
        {
            this.InitializeComponent();

            this.employeeService = employeeService;
            this.departmentService = departmentService;
            this.processing = processing;
        }
コード例 #32
0
 public EmployeesDataPresenter(IEmployeeService employeeService)
 {
     _employeeService = employeeService;
 }
コード例 #33
0
 public HomeController(IEmployeeService employeeService)
 {
     _employeeService = employeeService;
 }
コード例 #34
0
 public SchedulingController(ISchedulingService schedulingService, IEmployeeService employeeService, IFCMService fcmService)
 {
     _schedulingService = schedulingService;
     _employeeService   = employeeService;
     _fcmService        = fcmService;
 }
コード例 #35
0
 public SetAddressCommand(IEmployeeService employeeService)
 {
     this.employeeService = employeeService;
 }
コード例 #36
0
ファイル: SPKLValidator.cs プロジェクト: usruk/AttPayroll
 public bool ValidUpdateObject(SPKL spkl, IEmployeeService _employeeService)
 {
     spkl.Errors.Clear();
     ValidCreateObject(spkl, _employeeService);
     return(isValid(spkl));
 }
コード例 #37
0
 public EmployeesController(IEmployeeService employeeService, IStorageService storageService)
 {
     _employees      = employeeService;
     _storageService = storageService;
 }
コード例 #38
0
 public EmployeeController()
 {
     _repo       = new EmployeeDirectory.Web.Infrastructure.Repository.EmployeeRepository();
     _empService = new EmployeeService(_repo, HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>());
 }
コード例 #39
0
 public EmployeeController(IEmployeeService employeeService, IWebHostEnvironment hostingEnvironment)
 {
     _employeeService    = employeeService;
     _hostingEnvironment = hostingEnvironment;
 }
コード例 #40
0
 public EmployeeFamilySaveService(IEmployeeRepository employeeRepository,
                                  IEmployeeService employeeService)
 {
     _EmployeeRepository = employeeRepository;
     _EmployeeService    = employeeService;
 }
コード例 #41
0
 public NumReportsController(ILogger <EmployeeController> logger, IEmployeeService employeeService)
 {
     _logger          = logger;
     _employeeService = employeeService;
 }
コード例 #42
0
 public EmployeeController(UserManager <LoginUser> userManager, IEmployeeService employeeService) : base(userManager)
 {
     _employeeService = employeeService;
 }
コード例 #43
0
 public EmployeeController(IEmployeeService employeeService, IMapper mapper)
 {
     _employeeService = employeeService;
     _mapper          = mapper;
 }
コード例 #44
0
 public DetailsModel(IEmployeeService context)
 {
     _context = context;
 }
コード例 #45
0
 public SetBirthdayCommand(IEmployeeService employees)
 {
     this.employees = employees;
 }
コード例 #46
0
 public EmployeeDetailsController(IEmployeeService empService)
 {
     this._empService = empService;
 }
コード例 #47
0
 public UpdateEmployeeModel(IEmployeeService employeeService, IDepartmentService departmentService)
 {
     _employeeService   = employeeService;
     _departmentService = departmentService;
 }
コード例 #48
0
        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()
                );
        }
コード例 #49
0
 public HistoryController(IHistoryService historyService, IStatusTypeService statusTypeService, IRepairPlaceService repairPlaceService, IEquipmentService equipmentService, IEmployeeService employeeService)
 {
     HistoryService     = historyService;
     StatusTypeService  = statusTypeService;
     RepairPlaceService = repairPlaceService;
     EquipmentService   = equipmentService;
     EmployeeService    = employeeService;
 }
コード例 #50
0
 public EmployeeController(IEmployeeService employeeService)
 {
     this.employeeService = employeeService;
 }
コード例 #51
0
 public IndexPageService(IEmployeeService EmployeeAppService, IMapper mapper)
 {
     _EmployeeAppService = EmployeeAppService ?? throw new ArgumentNullException(nameof(EmployeeAppService));
     _mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
コード例 #52
0
 public MyEmployeeController(IEmployeeService service)
 {
     _service = service;
 }
コード例 #53
0
 public EmployeeTableController(IEmployeeService employeeService)
 {
     _employeeService = employeeService;
 }
コード例 #54
0
 public EmployeeController(IEmployeeService service)
 {
     this.service = service;
 }
コード例 #55
0
 public EmployeesController(IEmployeeService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
コード例 #56
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="employeeService"></param>
 public LoginController(ILogger <LoginController> logger,
                        IEmployeeService employeeService)
 {
     _logger          = logger;
     _employeeService = employeeService;
 }
コード例 #57
0
 public EmployeesServiceTest()
 {
     employeesRepoMoc = new Mock <IEmployeesRepo>();
     employeesService = new EmployeeService(employeesRepoMoc.Object);
     employeesQuery   = employees.AsQueryable();
 }
コード例 #58
0
 public HomeController(IEmployeeService employeeService, IUserService userService)
 {
     _employeeService = employeeService;
     _userService     = userService;
 }
コード例 #59
0
 public AuthAPIController(IUserService userService, IHttpContextAccessor tp, CounterMiddleWare md, IEmployeeService employeeService)
 {
     _userService        = userService;
     _httpContextAcessor = tp;
     this.md             = md;
     EmployeeService     = employeeService;
 }
コード例 #60
0
 public EmployeeController(IEmployeeService employeeService, IUnitOfWork unitOfWork)
 {
     EmployeeService = employeeService;
     UnitOfWork      = unitOfWork;
 }