public EmployeeProvider( IEmployeeSerializer employeeSerializer, string fileName) { _employeeSerializer = employeeSerializer; _fileName = fileName; }
//public IPaySlipContext Context { get; set; } //public ILogger Logger = new ConsoleLogger(); /* * * public ConsoleLogger Logger { get; set; } * * public FileEmployeeSource EmployeeSource { get; set; } * * public FileEmployeeSerializer EmployeeSerializer { get; set; } * * public FileEmployeeSalarySerializer EmployeeSalarySerializer { get; set; } * * public PaySlipInfo EmployeePaySlipInfo { get; set; } * * public PaySlipInfoWrite EmployeePaySlipInfoWrite { get; set; } * * public PaySlipEngine() * { * Logger = new ConsoleLogger(); * EmployeeSource = new FileEmployeeSource(); * EmployeeSerializer = new FileEmployeeSerializer(); * EmployeeSalarySerializer = new FileEmployeeSalarySerializer(); * EmployeePaySlipInfo = new PaySlipInfo(); * EmployeePaySlipInfoWrite = new PaySlipInfoWrite(); * } */ public PaySlipEngine(ILogger logger, IEmployeeSource employeeSource, IEmployeeSerializer employeeSerializer, IEmployeeSalarySerializer employeeSalarySerializer, IPaySlipInfo paySlipInfo, IPaySlipInfoWrite paySlipInfoWrite) { _logger = logger; _employeeSource = employeeSource; _employeeSerializer = employeeSerializer; _employeeSalarySerializer = employeeSalarySerializer; _paySlipInfo = paySlipInfo; _paySlipInfoWrite = paySlipInfoWrite; }
public EmployeeController(IEmployeeSerializer employeeSerializer) { this.serializer = employeeSerializer; }
public Employee(IEmployeeSerializer serializer) { _serializer = serializer; }