Restore default constructor for failing automation tests

- Issue MatterHackers/MCCentral#2754
Disabled default constructor on SqliteLibraryContainer breaks tests
This commit is contained in:
John Lewin 2018-02-01 14:09:22 -08:00
parent 0918afabd4
commit 2f87329ee5

View file

@ -59,11 +59,10 @@ namespace MatterHackers.MatterControl.Library
{
protected List<PrintItemCollection> childCollections = new List<PrintItemCollection>();
/*
// Use default rootCollectionID
// Use default rootCollectionID - normally this constructor isn't used but exists to validate behavior in tests
public SqliteLibraryContainer()
: this(Datastore.Instance.dbSQLite.Table<PrintItemCollection>().Where(v => v.Name == "_library").Take(1).FirstOrDefault()?.Id ?? 0)
{ }*/
{ }
public SqliteLibraryContainer(int collectionID)
{