Password handling for the SSH client

This commit is contained in:
2016-02-09 16:18:01 -05:00
parent 279551e9be
commit be89837a27
5 changed files with 39 additions and 10 deletions
+6 -3
View File
@@ -1,4 +1,6 @@
using LeafWeb.Core.Entities;
using System.Configuration;
using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility;
using NUnit.Framework;
namespace LeafWeb.Core.Tests.Remote
@@ -9,8 +11,9 @@ namespace LeafWeb.Core.Tests.Remote
[Test]
public void Client()
{
var leafInputFile = new LeafInputFile {Filename = "blah", Id = 1};
var client = new PiscalSshClient();
var leafInputFile = new LeafInputFile {Filename = "blah", Id = 1, Contents = "test".GetBytes()};
var piscalConnectionString = ConfigurationManager.ConnectionStrings["PiscalServer"];
var client = new PiscalSshClient(piscalConnectionString.ConnectionString);
client.SubmitLeafInputFile(leafInputFile);
}
}