public IEnumerable<VendorFileRawEntry> ReadEntries(File file, IVendor vendor)
        {
            int entryNumber = 0;
            var entires = new List<VendorFileRawEntry>();

            file.ReadTextFrom(reader =>
            {
                while (true)
                {
                    var line = reader.ReadLine();

                    if (line == null) break;

                    entryNumber++;

                    var entry = new VendorFileRawEntry
                    {
                        EntryNumber = entryNumber,
                        File = file,
                        RawData = line,
                        Vendor = vendor,
                        EffectiveDate = DateTime.Today
                    };

                    entires.Add(entry);
                }
            }, true);

            return entires;
        }
 public ErrorFileEntry(VendorFileRawEntry entry, Exception ex)
 {
     RawData = entry.RawData;
     Vendor = entry.Vendor.Handle.ToString();
     File = entry.File.Name.ToString();
     EntryNumber = entry.EntryNumber;
     EffectiveDate = entry.EffectiveDate;
     ErrorMessage = ex.Message;
     StackTrace = ex.StackTrace;
 }