Submit all LeafInputFiles together
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user