public int TestClientCreation() { FtpServer server = new FtpServer("192.168.1.1"); FtpUser user = new FtpUser("robson", "4019551", server); return user.ToString() == "Ftp user credentials\nlogin: robson\npassword: 4019551\nserver address: 192.168.1.1" ? 0 : 1; }
public void TestFileDelete() { // 83.10.110.250 FtpServer server = new FtpServer("91.219.122.70", "FTP/folder4/filder4_2/ET - Prazan stan.mp3"); FtpUser user = new FtpUser("robson081192", "pck5LT099r", server); user.DeleteFile(); }
public void TestDirectoryDelete() { // 83.10.110.250 FtpServer server = new FtpServer("91.219.122.70", "FTP/folder4/filder4_2"); FtpUser user = new FtpUser("robson081192", "pck5LT099r", server); user.DeleteDirectory(); }
public void TestFileDownload() { FtpServer server = new FtpServer("91.219.122.70", "/FTP/ET - Prazan stan.mp3"); FtpUser user = new FtpUser("robson081192", "pck5LT099r", server); CommonFile file = new CommonFile(@"C:\Users\Robson\Desktop\Test_FTP_dll\ET - Prazan stan.mp3"); user.DownloadFile(file); file.SafeContentOnDrive(); }
public void TestDirectoryCreationLocal() { // 83.10.110.250 FtpServer server = new FtpServer("192.168.1.1", "/FTP/ET - Prazan stan.mp3"); FtpUser user = new FtpUser("robson", "4019551", server); user.GoToOrCreatePath("FTP/folder4/filder4_2/"); CommonFile file = new CommonFile(@"C:\Users\Robson\Desktop\Test_FTP_dll\ET - Prazan stan.mp3"); user.UploadFile(file); }
public void TestDirectoryCreation() { // 83.10.110.250 FtpServer server = new FtpServer("91.219.122.70", "/FTP/ET - Prazan stan.mp3"); FtpUser user = new FtpUser("robson081192", "pck5LT099r", server); user.GoToOrCreatePath("FTP/folder4/filder4_2/"); CommonFile file = new CommonFile(@"C:\Users\Robson\Desktop\Test_FTP_dll\ET - Prazan stan.mp3"); user.UploadFile(file); }
public int TestServerCreation() { FtpServer server = new FtpServer("192.168.1.1"); return server.ToString() == "This file server uses the FTP protocol, and it's Url is: 192.168.1.1" ? 0 : 1; }
public void TestFileUpload() { // 83.10.110.250 FtpServer server = new FtpServer("91.219.122.70", "/FTP/ET - Prazan stan.mp3"); FtpUser user = new FtpUser("robson081192", "pck5LT099r", server); CommonFile file = new CommonFile(@"C:\Users\Robson\Desktop\Test_FTP_dll\ET - Prazan stan.mp3"); user.UploadFile(file); }