Exemple #1
0
        public void TestSftpFileExists()
        {
            var srcTransDirector = new ConcreteTransferServiceDirector();

            var result = srcTransDirector.FileExists(TransferProtocol.Sftp,
                                                     new TransmissionDetails
            {
                FileIoDetails     = _fileIoDetails,
                ConnectionDetails = _conDetails
            });

            Assert.True(result.ProcessCompletionState, "File exists on the SFTP");
        }/*End of TestSftpDownload method*/
        public void Test_Ftp_File_Exists()
        {
            var srcTransDirector = new ConcreteTransferServiceDirector();

            var result = srcTransDirector.FileExists(TransferProtocol.Ftp,
                                                     new TransmissionDetails
            {
                ConnectionDetails = _conDetails,
                FileIoDetails     = _fileIoDetails
            });

            Assert.True(result.ProcessCompletionState,
                        "The was found on the server");
        }/*End of TestSftpDownload method*/