static void Main(string[] args) { var readDirectory = ConfigurationManager.AppSettings["Directory"]; var writeDirectory = ConfigurationManager.AppSettings["WriteDirectory"]; var directory = ConfigurationManager.AppSettings["Directory"]; var sourceFilePerson = FileMatch.GetFullFileName(readDirectory, ConfigurationManager.AppSettings["GESOURCEFILEPERSON"]); var worksheetNamePerson = ConfigurationManager.AppSettings["PersonWorkSheetName"]; var sourceFileEntity = FileMatch.GetFullFileName(readDirectory, ConfigurationManager.AppSettings["GESOURCEFILEENTITY"]); var worksheetNameEntity = ConfigurationManager.AppSettings["EntityWorkSheetName"]; var headings = ConfigurationManager.AppSettings["Headings"]; DependencyResolution.ConstructContainer(); var serializer = DependencyResolution.GetGESerializer(readDirectory + sourceFilePerson, worksheetNamePerson, readDirectory + sourceFileEntity, worksheetNameEntity); var serializedResult = serializer.Serialize(); var personWorksheetName = ConfigurationManager.AppSettings["PersonWorksheetName"]; var in_customer_ge = ConfigurationManager.AppSettings["in_customer_ge"]; var in_customer_ge_ext = ConfigurationManager.AppSettings["in_customer_ge_ext"]; var GERelationship = ConfigurationManager.AppSettings["GERelationship"]; var UnUsed = ConfigurationManager.AppSettings["UnUsed"]; var writer = DependencyResolution.GetFICOFileWriter(writeDirectory + in_customer_ge, writeDirectory + in_customer_ge_ext, headings); writer.Write(serializedResult.OutputAndExtension, ""); var relationWriter = DependencyResolution.GetGERelationshipWriter(writeDirectory + GERelationship, UnUsed, "INSTITUTE|CUSTNO|REL_CUSTNO|REL_TYPE|REL_SHARE|REL_FLAG1|REL_FLAG2|REL_FLAG3|REL_COMMENT|PROCESSFLAG"); relationWriter.Write(serializedResult.RelationshipList, "|"); }
static void Main(string[] args) { DependencyResolution.ConstructContainer(); var reader = DependencyResolution.GetDJExcelFileReader(); var result = reader.GetData(); var serializer = DependencyResolution.GetFICOSerializer(); var serializedResult = serializer.Serialize(result); var writer = DependencyResolution.GetFICOFileWriter(@"C:\Users\jyp1510\Documents\TestData\TestOutput.csv", "INSTITUTE|" + "CUSTNO|" + "FIRST_NAME|" + "LASTNAME_COMPANYNAME|" + "STREET|" + "ZIP|" + "TOWN|" + "H_COUNTRY|" + "CUSY|" + "FK_CSMNO|" + "PROFESSION|" + "BRANCH|" + "BIRTHDATE|" + "CUSTCONTACT|" + "EXEMPTIONFLAG|" + "EXEMPTIONAMOUNT|" + "ASYLSYN|" + "SALARY|" + "SALARYDATE|" + "NAT_COUNTRY|" + "TOT_WEALTH|" + "CUST_TYPE|" + "CUST_FLAG_01|" + "PASS_NO|" + "BIRTH_COUNTRY|" + "BIRTH_PLACE|" + "BORROWEYN|" + "DIRECT_DEBITYN|" + "GENDER|" + "RISK_CLASS"); writer.Write(serializedResult); }