Beispiel #1
0
        public void CreateBatchHeader()
        {
            NACHAFileWriter writer = new NACHAFileWriter();

            writer.CreateHeader("LBC", "RBC", "LBC", "RBC");

            ServiceClassCode   mixedDebitsAndCredits = ServiceClassCode.GetMixedDebitsAndCredits();
            BatchHeaderCompany batchHeaderCompany    =
                new BatchHeaderCompany("LBC", "LBC Express", "1231231", "Payroll", DateTime.Now, "000000000");
            StandardEntryClassCode standardEntryClassCode = StandardEntryClassCode.GetWebAuthorizationEntries();

            int batchHeaderId = writer.CreateBatchHeader(mixedDebitsAndCredits, batchHeaderCompany, standardEntryClassCode, DateTime.Now,
                                                         DateTime.Now);

            batchHeaderId.ShouldBeGreaterThan(0);

            List <string> fileContents = writer.GetFileContent();

            PrintFileContents(fileContents);
        }