diff --git a/src/Speckle.Sdk/Models/Collections/Collection.cs b/src/Speckle.Sdk/Models/Collections/Collection.cs index 300bda8d..d534b8af 100644 --- a/src/Speckle.Sdk/Models/Collections/Collection.cs +++ b/src/Speckle.Sdk/Models/Collections/Collection.cs @@ -9,7 +9,8 @@ namespace Speckle.Sdk.Models.Collections; /// A can be for example a Layer in Rhino/AutoCad, a collection in Blender, or a Category in Revit. /// The location of each collection in the hierarchy of collections in a commit will be retrieved through commit traversal. /// -[SpeckleType("Speckle.Core.Models.Collection")] +[SpeckleType("Speckle.Core.Models.Collections.Collection")] +[DeprecatedSpeckleType("Speckle.Core.Models.Collection")] [DeprecatedSpeckleType("Objects.Organization.Collection")] public class Collection : Base { diff --git a/tests/Speckle.Sdk.Tests.Unit/Models/Extensions/BaseExtensionsTests.cs b/tests/Speckle.Sdk.Tests.Unit/Models/Extensions/BaseExtensionsTests.cs index 5d8a8ade..5af6a011 100644 --- a/tests/Speckle.Sdk.Tests.Unit/Models/Extensions/BaseExtensionsTests.cs +++ b/tests/Speckle.Sdk.Tests.Unit/Models/Extensions/BaseExtensionsTests.cs @@ -52,11 +52,11 @@ public void TraverseWithPath() var basePaths = collection.TraverseWithPath((obj => obj is not Collection)).ToList(); Assert.That(basePaths.Count, Is.EqualTo(3)); - Assert.That(basePaths[0].Item2.speckle_type, Is.EqualTo("Speckle.Core.Models.Collection")); + Assert.That(basePaths[0].Item2.speckle_type, Is.EqualTo("Speckle.Core.Models.Collections.Collection")); Assert.That(basePaths[0].Item2["name"], Is.EqualTo("collection")); Assert.That(basePaths[0].Item1, Is.EqualTo(new List())); - Assert.That(basePaths[1].Item2.speckle_type, Is.EqualTo("Speckle.Core.Models.Collection")); + Assert.That(basePaths[1].Item2.speckle_type, Is.EqualTo("Speckle.Core.Models.Collections.Collection")); Assert.That(basePaths[1].Item2["name"], Is.EqualTo("subCollection")); Assert.That(basePaths[1].Item1, Is.EqualTo(new List() { "collection" }));