Restore default constructor for failing automation tests
- Issue MatterHackers/MCCentral#2754 Disabled default constructor on SqliteLibraryContainer breaks tests
This commit is contained in:
parent
0918afabd4
commit
2f87329ee5
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue