public UserController(IEmployeeDataService employeeDataService, ITeamDataService teamDataService) { this.employeeDataService = employeeDataService; this.teamDataService = teamDataService; roleManager = Startup.RoleManagerFactory(); userManager = Startup.UserManagerFactory(); }
public EmployeeProjectsViewModel(IEmployeeDataService dataService) { if (dataService == null) throw new ArgumentNullException("dataService"); // Initialize a CollectionView for the project list. this.Projects = new PagedCollectionView(dataService.GetProjects()); }
public MainRegionController(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, IEmployeeDataService dataService) { if (container == null) { throw new ArgumentNullException("container"); } if (regionManager == null) { throw new ArgumentNullException("regionManager"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } if (dataService == null) { throw new ArgumentNullException("dataService"); } this.container = container; this.regionManager = regionManager; this.eventAggregator = eventAggregator; this.dataService = dataService; // Subscribe to the EmployeeSelectedEvent event. // This event is fired whenever the user selects an // employee in the EmployeeListView. this.eventAggregator.GetEvent <EmployeeSelectedEvent>().Subscribe(this.EmployeeSelected, true); }
public EmployeeDetailsViewModel( IEmployeeDataService dataService, IEventAggregator eventAggregator) { _dataService = dataService; Employees = dataService.GetEmployees(); eventAggregator.GetEvent <EmployeeSelectedEvent>().Subscribe(this.EmployeeSelected, true); }
public JobTitleService(IJobTitleDataService jobTitleDataService, IEmployeeDataService employeeDataService, UserManager <Employee> userManager) { this.jobTitleDataService = jobTitleDataService; this.employeeDataService = employeeDataService; this.userManager = userManager; }
public EmployeeProjectsViewModel(IEmployeeDataService dataService) { if (dataService == null) { throw new ArgumentNullException(nameof(dataService)); } Projects = new ListCollectionView(dataService.GetProjects()); }
public InputBarViewModel(IEmployeeDataService employeeDataService, IEventAggregator eventAggregator) { Employees = new ObservableCollection <Employee>(); this.employeeDataService = employeeDataService; this.eventAggregator = eventAggregator; SearchCommand = new DelegateCommand(OnSearchExecute, OnSearchCanExecute); FromDate = DateTime.Now; TillDate = DateTime.Now; }
public EmployeeProjectsViewModel(IEmployeeDataService dataService) { if (dataService == null) { throw new ArgumentNullException("dataService"); } // Initialize a CollectionView for the project list. this.Projects = new ListCollectionView(dataService.GetProjects()); }
public LoggedHomeController(UserManager <Employee> userManager, IEmployeeDataService employeeService, ICompanyDataService companyService, RoleManager <IdentityRole> roleManager) { this.userManager = userManager; this.employeeService = employeeService; this.companyService = companyService; this.roleManager = roleManager; }
public EmployeeListViewModel(IEmployeeDataService dataService, IEventAggregator eventAggregator) { if (dataService == null) { throw new ArgumentNullException(nameof(dataService)); } _eventAggregator = eventAggregator ?? throw new ArgumentNullException(nameof(eventAggregator)); Employees = new ListCollectionView(dataService.GetEmployees()); Employees.CurrentChanged += new EventHandler(SelectedEmployeeChanged); }
public EmployeeProjectsViewModel( IEmployeeDataService dataService, IEventAggregator eventAggregator) { if (dataService == null) { throw new ArgumentNullException("dataService"); } _dataService = dataService; eventAggregator.GetEvent <EmployeeSelectedEvent>().Subscribe(this.EmployeeSelected, true); }
public ProjectController(IProjectDataService projectDataService, UserManager <Employee> userManager, IEmployeeDataService employeeDataService, IJobTitleDataService jobTitleDataService, IDepatmentDataService depatmentDataService) { this.projectDataService = projectDataService; this.userManager = userManager; this.employeeDataService = employeeDataService; this.jobTitleDataService = jobTitleDataService; this.depatmentDataService = depatmentDataService; }
public EmployeeListViewModel(IEmployeeDataService dataService, IEventAggregator eventAggregator) { if (dataService == null) throw new ArgumentNullException("dataService"); if (eventAggregator == null) throw new ArgumentNullException("eventAggregator"); this.eventAggregator = eventAggregator; // Initialize the CollectionView for the underlying model // and track the current selection. this.Employees = new ListCollectionView(dataService.GetEmployees()); this.Employees.CurrentChanged += new EventHandler(this.SelectedEmployeeChanged); }
public MainRegionController( IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, IEmployeeDataService dataService) { _container = container ?? throw new ArgumentNullException(nameof(container)); _regionManager = regionManager ?? throw new ArgumentNullException(nameof(regionManager)); _eventAggregator = eventAggregator ?? throw new ArgumentNullException(nameof(eventAggregator)); _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService)); _eventAggregator.GetEvent <EmployeeSelectedEvent>().Subscribe(EmployeeSelected, true); }
public EmployeeDetailViewModel(IEventAggregator eventAggregator, IDepartmentLookupDataService employeeTypeLookupDataService, IEmployeeDataService employeeDS, IMessageDialogService messageDialogService) : base(eventAggregator) { Title = "Employees"; _employeeDS = employeeDS; _employeeTypeLookupDataService = employeeTypeLookupDataService; Employees = new ObservableCollection <EmployeesWrapper>(); Departments = new ObservableCollection <LookupItem>(); FilterCommand = new DelegateCommand(OnFilterExecuteAsync); _searchEmployee = new Employee(); MessageDialogService = messageDialogService; }
public EmployeeListViewModel( IEmployeeDataService dataService, IEventAggregator eventAggregator) { if (dataService == null) { throw new ArgumentNullException("dataService"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } this._eventAggregator = eventAggregator; this.Employees = dataService.GetEmployees(); }
public ManagementController(ITownDataService townDataService, MDManagementDbContext data, IEmployeeService employeeService, IEmployeeDataService employeeDataService, ICompanyDataService comapnyService, UserManager <Employee> userManager, IJobTitleService jobTitleService, IJobTitleDataService jobTitleDataService, RoleManager <IdentityRole> roleManager, IDepatmentDataService depatmentDataService, IAddressDataService addressDataService) { this.employeeService = employeeService; this.employeeDataService = employeeDataService; this.comapnyService = comapnyService; this.userManager = userManager; this.jobTitleService = jobTitleService; }
public EmployeeListViewModel(IEmployeeDataService dataService, IEventAggregator eventAggregator) { if (dataService == null) { throw new ArgumentNullException("dataService"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } this.eventAggregator = eventAggregator; // Initialize the CollectionView for the underlying model // and track the current selection. this.Employees = new ListCollectionView(dataService.GetEmployees()); this.Employees.CurrentChanged += new EventHandler(this.SelectedEmployeeChanged); }
public MainRegionController(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, IEmployeeDataService dataService) { if (container == null) throw new ArgumentNullException("container"); if (regionManager == null) throw new ArgumentNullException("regionManager"); if (eventAggregator == null) throw new ArgumentNullException("eventAggregator"); if (dataService == null) throw new ArgumentNullException("dataService"); this.container = container; this.regionManager = regionManager; this.eventAggregator = eventAggregator; this.dataService = dataService; // Subscribe to the EmployeeSelectedEvent event. // This event is fired whenever the user selects an // employee in the EmployeeListView. this.eventAggregator.GetEvent<EmployeeSelectedEvent>().Subscribe(this.EmployeeSelected, true); }
public EmployeeService(IEmployeeDataService employeeDataService, IJobTitleService jobTitleService, IJobTitleDataService jobTitleDataService, IDepatmentDataService depatmentDataService, ITownDataService townDataService, IAddressDataService addressDataService, MDManagementDbContext data, RoleManager <IdentityRole> roleManager, UserManager <Employee> userManager) { this.employeeDataService = employeeDataService; this.jobTitleService = jobTitleService; this.jobTitleDataService = jobTitleDataService; this.depatmentDataService = depatmentDataService; this.townDataService = townDataService; this.addressDataService = addressDataService; this.data = data; this.roleManager = roleManager; this.userManager = userManager; }
public EmployeeController(IEmployeeDataService DataService) { _DataService = DataService; }
public EmployeeController(IEmployeeSalaryService employeeSalaryService, IEmployeeDataService employeeDataService) { _employeeSalaryService = employeeSalaryService; _employeeDataService = employeeDataService; }
protected EmployeeDataServiceBaseIntegrationTests(IEmployeeDataService employeeDataService) : base(employeeDataService, x => x.Id) { }
public EmployeeDomainService(IEmployeeDataService employeeDataService) : base(employeeDataService) { _employeeDataService = employeeDataService; }
public IndexViewModel(IEmployeeDataService employeeDataService) { EmployeeDataService = employeeDataService; }
public ManagerApprovalService(IEmployeeDataService employeeDataService) { _employeeDataService = employeeDataService; }
public EmployeeBusinessService(IEmployeeDataService employeeDataService) { _employeeDataService = employeeDataService; }
public ExpenseApprovalService(IEmployeeDataService employeeService) { _employeeService = employeeService ?? throw new System.ArgumentNullException(nameof(employeeService)); }
public EmployeeListingViewModel(IEmployeeDataService employeeDataService) { EmployeeDataService = employeeDataService; }
public ExpenseApprovalService(IEmployeeDataService employeeService) { _employeeService = employeeService; }
public SearchResultViewModel(IMvxMessenger messenger, IEmployeeDataService employeeDataService) : base(messenger) { _employeeDataService = employeeDataService; }
public EmployeeController(IEmployeeDataService employeeDataService, ITeamDataService teamDataService) { this.employeeDataService = employeeDataService; this.teamDataService = teamDataService; }
public EmployeeDetailViewModel(IMvxMessenger messenger, IEmployeeDataService employeeDataService) : base(messenger) { _employeeDataService = employeeDataService; }
public EmployeesController(IEmployeeDataService _empDs) { this.employeeDS = _empDs; }
public EmployeeController() { _dataService = new EmployeeDataService(); }