public void SftpValidateNegativeTestInvalidCipher()
        {
            string  fileName   = Guid.NewGuid().ToString();
            string  folderPath = Guid.NewGuid().ToString();
            FtpUtil ftpUtil    = new FtpUtil(true);

            NameValueCollection namevalue = ftpUtil.GetNameValueCollection(false, true);

            namevalue.Add("AcceptAnySSHServerHostKey", "true");
            namevalue.Add("EncryptCipher", "Des");

            IFTPConnectorTest connectorTest = new FileBasedProtocolConnectorClientTest <SFTPController>(namevalue);
            var message = connectorTest.UploadFile(Constants.UploadContents, folderPath, fileName);

            Assert.AreEqual(message.StatusCode, HttpStatusCode.BadRequest, "Could not validate correctly");
        }
        public void SftpValidateNegativeInvalidUsername()
        {
            string  fileName   = Guid.NewGuid().ToString();
            string  folderPath = Guid.NewGuid().ToString();
            FtpUtil ftpUtil    = new FtpUtil(true);

            NameValueCollection namevalue = ftpUtil.GetNameValueCollection(false, true);

            namevalue.Add("AcceptAnySSHServerHostKey", "true");
            namevalue.Set("FtpUserName", Guid.NewGuid().ToString());

            this.AddAuthenticationDetailsToIsolatedStorage(AuthenticationType.Password, namevalue["FtpUserName"], namevalue["FtpPassword"], MultiFactorAuthPpkResourceName, namevalue["PrivateKeyPassword"]);
            IFTPConnectorTest connectorTest = new FileBasedProtocolConnectorClientTest <SFTPController>(namevalue);

            var message = connectorTest.UploadFile(Constants.UploadContents, folderPath, fileName);

            Assert.AreEqual(message.StatusCode, HttpStatusCode.BadRequest, "Could not validate correctly");
        }