From 2f87329ee5a0b2cd174a100272a4a59ea0ca8050 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Thu, 1 Feb 2018 14:09:22 -0800 Subject: [PATCH] Restore default constructor for failing automation tests - Issue MatterHackers/MCCentral#2754 Disabled default constructor on SqliteLibraryContainer breaks tests --- Library/Providers/MatterControl/SqliteLibraryContainer.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Providers/MatterControl/SqliteLibraryContainer.cs b/Library/Providers/MatterControl/SqliteLibraryContainer.cs index a04b03d8b..f0533660e 100644 --- a/Library/Providers/MatterControl/SqliteLibraryContainer.cs +++ b/Library/Providers/MatterControl/SqliteLibraryContainer.cs @@ -59,11 +59,10 @@ namespace MatterHackers.MatterControl.Library { protected List childCollections = new List(); - /* - // 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().Where(v => v.Name == "_library").Take(1).FirstOrDefault()?.Id ?? 0) - { }*/ + { } public SqliteLibraryContainer(int collectionID) {