Add PhotosynthesisType and start SSH work

modified:   Core.Tests/Core.Tests.csproj
	modified:   Core.Tests/Parsers/FluxnetSiteCsvParserTests.cs
	new file:   Core.Tests/Remote/PiscalSshClientTests.cs
	modified:   Core/Core.csproj
	modified:   Core/DAL/LeafWebContext.cs
	modified:   Core/DAL/LeafWebInitializer.cs
	modified:   Core/Models/LeafInput.cs
	new file:   Core/Models/PhotosynthesisType.cs

	new file:   Core/Remote/IPiscalClient.cs

Get Piscal
This commit is contained in:
2016-02-08 15:14:28 -05:00
parent d185adc844
commit 15d911c86b
9 changed files with 119 additions and 0 deletions
@@ -1,4 +1,5 @@
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using LeafWeb.Core.Parsers;
@@ -34,6 +35,17 @@ namespace LeafWeb.Core.Tests.Parsers
}
}
[Test]
public void Parse_Find_Misencoded_Characters_test()
{
var fileInfo = new FileInfo(@"C:\Users\poprhythm\Documents\code\LeafWeb\Core\DAL\InitialData\fluxnet_site_list_all_October2015_with_joins_corrected.csv");
var parser = new FluxnetSiteCsvParser(fileInfo);
foreach (var fns in parser.Parse().Where(f => Regex.IsMatch(f.SiteName, @"[^\x00-\x7F]") || f.SiteName.Contains("?")))
{
Console.WriteLine($"{fns.FluxnetId} / {fns.SiteName}");
}
}
[Test]
public void Parse_Find_Duplicate_Ids()
{