Submit all LeafInputFiles together

This commit is contained in:
2016-03-28 10:20:50 -04:00
parent 4b2757b19a
commit 9e86b92f08
29 changed files with 353 additions and 268 deletions
@@ -135,7 +135,7 @@ namespace LeafWeb.Core.Tests.Parsers
var input = parser.Parse();
}
[Test, Explicit]
[Explicit]
public void Parse_FindIssues()
{
var dir = @"C:\Users\poprhythm\Documents\code\LeafWeb\Notes\leafweb database work\newcurves\RemovableDisk\curves";
+13 -7
View File
@@ -10,13 +10,19 @@ namespace LeafWeb.Core.Tests.Remote
[TestFixture]
public class PiscalSshClientTests
{
private readonly PiscalLeafInputFile _testInput =
new PiscalLeafInputFile
private readonly PiscalLeafInput _testInput =
new PiscalLeafInput
{
Filename = "blah",
LeafInputId = 1,
Contents = "test".GetBytes(),
DirectoryName = "TestDirectory2"
DirectoryName = "TestDirectory2",
PhotosyntheticType = "C4_photosynthesis_leafweb",
InputFiles = new[]
{
new PiscalLeafInputFile
{
Filename = "blah", Contents = "test".GetBytes()
}
}
};
private readonly string _piscalConnectionString =
@@ -26,14 +32,14 @@ namespace LeafWeb.Core.Tests.Remote
public void SubmitLeafInputFile()
{
var client = new PiscalSshClient(_piscalConnectionString);
client.RunLeafInputFile(_testInput);
client.RunLeafInput(_testInput);
}
[Test]
public void GetLeafInputStatus()
{
var client = new PiscalSshClient(_piscalConnectionString);
var leafInputStatus = client.GetLeafInputFileStatus(_testInput);
var leafInputStatus = client.GetLeafInputStatus(_testInput);
Console.WriteLine(leafInputStatus);
}