public EnterForm(EntranceContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _entranceService = _context.UnityContainer.Resolve <IEntranceService>(); _formattingService = _context.UnityContainer.Resolve <IFormattingService>(); if (ApplicationUtility.IsRunningOnMono) { Font = new Font("Arial", 8); } InitializeComponent(); mTunableList.ServiceCommand += (sender, args) => { switch (args.Command) { case "Remove": removeButton_Click(this, null); break; case "CellMouseDoubleClick": enterButton_Click(this, null); break; } }; }
public CreateEntranceFormHandler( IEntranceService entranceService, IBuildingService buildingService) { _entranceService = entranceService; _buildingService = buildingService; }
public EditEntranceFormHandler( IBuildingService buildingService, IEntranceService entranceService) { _buildingService = buildingService; _entranceService = entranceService; }
public EntranceServiceTest() { var unityContainer = new UnityContainer(); new ConfigurationService().RegisterServices(unityContainer); _entranceService = unityContainer.Resolve <IEntranceService>(); }
public RegisterLeavingFormHandler( IRegistrationService registrationService, IEmployeeService employeeService, IEntranceService entranceService) { _registrationService = registrationService; _employeeService = employeeService; _entranceService = entranceService; }
public EditUserFormHandler( IUserService userService, IEntranceService entranceService, IDepartmentService departmentService) { _userService = userService; _entranceService = entranceService; _departmentService = departmentService; }
public EntranceController( IFormHandlerFactory formHandlerFactory, IAuthorizationService authorizationService, IEntranceService entranceService, IMapper mapper, IBuildingService buildingService) : base( formHandlerFactory, authorizationService) { _entranceService = entranceService; _mapper = mapper; _buildingService = buildingService; }
public UserService( IRepository <User> userRepository, IEntranceService entranceService, IRepository <SecurityGuard> securityGuardRepository, IRepository <Administrator> administratorRepository, IRepository <Manager> managerRepository, IDepartmentService departmentService) { _userRepository = userRepository; _entranceService = entranceService; _securityGuardRepository = securityGuardRepository; _administratorRepository = administratorRepository; _managerRepository = managerRepository; _departmentService = departmentService; }
public UserController( IFormHandlerFactory formHandlerFactory, IUserService userService, IMapper mapper, IAuthorizationService authorizationService, IEntranceService entranceService, IDepartmentService departmentService) : base( formHandlerFactory, authorizationService) { _userService = userService; _mapper = mapper; _entranceService = entranceService; _departmentService = departmentService; }
public HardCodedFormHandlerFactory( IEmployeeService employeeService, IRegistrationService registrationService, IUserService userService, IAuthenticationService <Domain.Entities.User.User> authenticationService, IRepository <Domain.Entities.User.User> userRepository, IDepartmentService departmentService, IBuildingService buildingService, IEntranceService entranceService, IUserProvider <Domain.Entities.User.User> userProvider) { _employeeService = employeeService; _registrationService = registrationService; _userService = userService; _authenticationService = authenticationService; _userRepository = userRepository; _departmentService = departmentService; _buildingService = buildingService; _entranceService = entranceService; _userProvider = userProvider; }
public DeleteEntranceFormHandler(IEntranceService entranceService) { _entranceService = entranceService; }