public void Check_file_format()
        {
            var files = WaybillParser.GetFilesForParsing(session,
                                                         @"..\..\Data\Waybills\multifile\h271433.dbf",
                                                         @"..\..\Data\Waybills\multifile\b271433.dbf");

            var mergedFiles = MultifileDocument.Merge(files);

            Assert.That(mergedFiles.Count, Is.EqualTo(1));

            Assert.IsFalse(AptekaHoldingParser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\1016416.dbf")));
            Assert.IsFalse(AptekaHoldingParser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\1016416_char.DBF")));
            Assert.IsFalse(AptekaHoldingParser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\0000470553.dbf")));
            Assert.IsFalse(AptekaHoldingParser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\1040150.DBF")));
            Assert.IsFalse(AptekaHoldingParser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\8916.dbf")));
            Assert.IsFalse(AptekaHoldingParser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\890579.dbf")));
            Assert.IsTrue(AptekaHoldingParser.CheckFileFormat(Dbf.Load(mergedFiles[0].FileName)));
        }
 public void Setup()
 {
     TestHelper.RecreateDirectories();
     parser   = new AptekaHoldingParser();
     document = new Document();
 }