diff --git a/Source/ActivityPub.Types/AS/ASType.cs b/Source/ActivityPub.Types/AS/ASType.cs
index 6bd0cad..1b34244 100644
--- a/Source/ActivityPub.Types/AS/ASType.cs
+++ b/Source/ActivityPub.Types/AS/ASType.cs
@@ -2,7 +2,6 @@
// If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
using System.Diagnostics.CodeAnalysis;
-using System.Runtime.CompilerServices;
using System.Text.Json.Serialization;
using ActivityPub.Types.Util;
using JetBrains.Annotations;
@@ -68,6 +67,12 @@ public ASType(TypeMap typeMap, ASTypeEntity? entity)
///
public TypeMap TypeMap { get; }
+ ///
+ public IReadOnlySet Type => TypeMap.ASTypes;
+
+ ///
+ public IJsonLDContext JsonLDContext => TypeMap.LDContext;
+
///
/// Provides the globally unique identifier for an Object
or Link
.
///
diff --git a/Test/ActivityPub.Types.Tests/Unit/AS/ASTypeTests.cs b/Test/ActivityPub.Types.Tests/Unit/AS/ASTypeTests.cs
index 0f01654..290b373 100644
--- a/Test/ActivityPub.Types.Tests/Unit/AS/ASTypeTests.cs
+++ b/Test/ActivityPub.Types.Tests/Unit/AS/ASTypeTests.cs
@@ -10,21 +10,21 @@ public abstract class ASTypeTests
{
private ASType ObjectUnderTest { get; } = new StubASType();
- public class JsonLdContextsShould : ASTypeTests
+ public class JsonLdContextShould : ASTypeTests
{
[Fact]
public void ContainASContext_ByDefault()
{
- ObjectUnderTest.TypeMap.LDContext.Should().Contain("https://www.w3.org/ns/activitystreams");
+ ObjectUnderTest.JsonLDContext.Should().Contain("https://www.w3.org/ns/activitystreams");
}
}
- public class TypesShould : ASTypeTests
+ public class TypeShould : ASTypeTests
{
[Fact]
public void ContainTypeName_ByDefault()
{
- ObjectUnderTest.TypeMap.ASTypes.Should().Contain(StubASType.StubType);
+ ObjectUnderTest.Type.Should().Contain(StubASType.StubType);
}
}