private void GetEmployees(out FileInfo fileInfo, out List <Employee> employees) { fileInfo = new FileInfo(@"Model\Employee.xlsx"); IDeserializer <Employees> deserializer = DataFactory.Instance.GetDeserializer <Employees>(@"Model\employees.xml"); employees = deserializer.GetEntity().Employee; }
public void Run(Hashtable hashtable) { _hashtable = hashtable; string filePath = ApplicationSettings.Instance.FileSettings.RunnerPath; IDeserializer <RunnerEntity> deserializer = DataFactory.Instance.GetDeserializer <RunnerEntity>(filePath); RunnerEntity runner = deserializer.GetEntity(); if (IsSingleProcess) { RunSingleProcess(); } else { RunMultiProcesses(); } }
public bool IsValid(Hashtable hashtable) { bool isValid = true; _hashtable = hashtable; string filePath = ApplicationSettings.Instance.FileSettings.RunnerPath; IDeserializer <RunnerEntity> deserializer = DataFactory.Instance.GetDeserializer <RunnerEntity>(filePath); RunnerEntity runner = deserializer.GetEntity(); if (IsSingleProcess) { isValid = RegisterSingleProcess(runner); } else { isValid = RegisterMultiProcesses(runner); } return(isValid); }