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
+11
View File
@@ -1,5 +1,6 @@
using System.Data.Entity;
using System.Linq;
using LeafWeb.Core.Models;
using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility;
@@ -18,6 +19,16 @@ namespace LeafWeb.Core.DAL
// add to context
fluxnetSites.ForEach(s => context.FluxnetSites.Add(s));
var photosynthesisTypes = new []
{
new PhotosynthesisType {Id = "C3_photosynthesis_leafweb", Name = "C3 Photosynthesis"},
new PhotosynthesisType {Id = "C4_photosynthesis_leafweb", Name = "C4 Photosynthesis"},
new PhotosynthesisType {Id = "CAM_photosynthesis_leafweb", Name = "CAM Photosynthesis"}
};
context.PhotosynthesisTypes.AddRange(photosynthesisTypes);
context.SaveChanges();
base.Seed(context);