public EmployeeService() { _repository = ServiceLocator.Resolve <IEmployeeRepository>(); _validator = ServiceLocator.Resolve <IEmployeeValidator>(); _unitOfWork = ServiceLocator.Resolve <IUnitOfWork>(); _mailMessageSender = ServiceLocator.Resolve <IMailMessageSender>(); }
public frmMain(IEmployeeFacade employeeFacade, IEmployeeValidator employeeValidator) { _employeeFacade = employeeFacade; _employeeValidator = employeeValidator; InitializeComponent(); RebuildList(); }
public EmployeeService(IEmployeeRepository employeeRepository, IEmployeeValidator employeeValidator, IMapper mapper) { _employeeRepository = employeeRepository; _employeeValidator = employeeValidator; _mapper = mapper; Errors = new List <string>(); }
public frmEdit(IEmployeeValidator employeeValidator, Employee employee) { _employeeValidator = employeeValidator; MyEmployee = employee; Action = EditCloseAction.Discard; InitializeComponent(); tbName.Text = MyEmployee.Name; tbSurname.Text = MyEmployee.Surname; tbWorkdays.Text = MyEmployee.Workdays.ToString(); tbSalary.Text = MyEmployee.Salary.ToString(CultureInfo.InvariantCulture); }
public TimeTrackerService(ITimeTrackerSession timeTrackerSession, ITimesheetToViewModelMapper timesheetMapper, IProjectToViewModelMapper projectMapper, IViewModelToTimesheetMapper viewModelMapper, ITimesheetValidator timesheetValidator, IEmployeeValidator employeeValidator) { _timeTrackerSession = timeTrackerSession; _timesheetMapper = timesheetMapper; _projectMapper = projectMapper; _viewModelMapper = viewModelMapper; _timesheetValidator = timesheetValidator; _employeeValidator = employeeValidator; }
public EmployeeService(IEmployeeRepository _employeeRepository, IEmployeeValidator _employeeValidator) { _repository = _employeeRepository; _validator = _employeeValidator; }
public WorkSiteValidatorRenewal(IAddressValidatorNoCounty addressValidatorNoCounty, IEmployeeValidator employeeValidator) : base(addressValidatorNoCounty) { RuleFor(w => w.NumEmployees).NotNull(); RuleFor(w => w.Employees).NotNull().SetCollectionValidator(employeeValidator); RuleFor(w => w.Employees.Count).Equal(w => w.NumEmployees.GetValueOrDefault()).When(w => w.Employees != null); }
public PaycheckHandler(IPaycheckService paycheckService, IEmployeeContext employeeContext, IEmployeeValidator employeeValidator) { _paycheckService = paycheckService; _employeeContext = employeeContext; _employeeValidator = employeeValidator; }