feat: introduce models to represent atproto id

This commit is contained in:
Stevan Freeborn committed 2026-08-28 09:14:52 -05:00
1 parent e3b4194653
commit 716d79739c
2 files changed
+151

No files matched your search

@@ -0,0 +1,19 @@
namespace StevanFreeborn.Atproto.IdentityResolver.Tests;
public class AtprotoIdTests
{
[Theory]
[InlineData("")]
[InlineData("localhost")]
[InlineData("did:web:")]
[InlineData("did:plc:")]
[InlineData("did:mu:dxbmien5xsrkov5yhywgc4zu")]
[InlineData("@stevanfreeborn.com")]
[InlineData(null)]
public void From_WhenCalledWithInvalidDid_ItShouldThrowInvalidArgumentException(string? atprotoId)
{
var act = () => AtprotoId.From(atprotoId!);
act.Should().Throw<ArgumentException>();
}
}