Esempio n. 1
0
 public EmployeeProvider(
     IEmployeeSerializer employeeSerializer,
     string fileName)
 {
     _employeeSerializer = employeeSerializer;
     _fileName           = fileName;
 }
Esempio n. 2
0
        //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;
        }
Esempio n. 3
0
 public EmployeeController(IEmployeeSerializer employeeSerializer)
 {
     this.serializer = employeeSerializer;
 }
Esempio n. 4
0
 public Employee(IEmployeeSerializer serializer)
 {
     _serializer = serializer;
 }