Implemented helper methods, equality, comparison and similar tools to make handling of NavObjects easier. Reject objects with a Company Name set, which we don't support at this point (not sure if this would acutally make sense).

Adapted test code.
This commit is contained in:
Torben Nehmer
2016-11-22 21:50:01 +01:00
parent e2eb504261
commit 28dbc5c7fa
2 changed files with 136 additions and 3 deletions

View File

@ -44,7 +44,7 @@ namespace NavScm.TestHost
log.DebugFormat("Row {6}/{7}: Type {0}, ID {1}, Name {2}, Modified {3} {4}, Version {5}",
o.Type, o.ID, o.Name, o.Date.ToShortDateString(), o.Time.ToShortTimeString(), o.Version_List, i++, count);
foundObjects.Add(String.Format("{0}.{1}", o.Type, o.ID), o);
foundObjects.Add(o.CacheKey, o);
}
log.InfoFormat("Collection has {0} entries, writing to cache.xml", foundObjects.Count);