示例#1
0
        public void CopyFileTest()
        {
            var fileName = "test1.dbf";
            var file     = File.Create(fileName);

            file.Close();
            var log = new DocumentReceiveLog()
            {
                Supplier = new Supplier {
                    Name = "Тестовый"
                },
                ClientCode    = 0,
                Address       = new Address(),
                MessageUid    = 123,
                DocumentSize  = 100,
                FileName      = fileName,
                LocalFileName = fileName
            };

            log.CopyDocumentToClientDirectory();
            Assert.That(File.Exists(log.GetRemoteFileNameExt()));
        }