Resolve all high-severity architecture review findings

This commit is contained in:
Joseph Doherty
2026-09-09 16:13:58 -04:00
parent 8bfe65512e
commit 146a13238f
192 changed files with 3160 additions and 753 deletions
@@ -243,6 +243,19 @@ public class NotificationOutboxActorQueryTests : TestKit
Assert.Empty(response.Notifications);
}
[Theory]
[InlineData("site-1", true)]
[InlineData("site-other", false)]
public void StatusQuery_VerifiedSiteMustOwnStoredNotification(string verifiedSite, bool found)
{
var row = MakeNotification(lastError: "private delivery error");
_repository.GetByIdAsync(row.NotificationId, Arg.Any<CancellationToken>()).Returns(row);
CreateActor().Tell(new NotificationStatusQuery("scope", row.NotificationId, verifiedSite), TestActor);
var response = ExpectMsg<NotificationStatusResponse>();
Assert.Equal(found, response.Found);
if (!found) { Assert.Null(response.LastError); Assert.Empty(response.Status); }
}
[Fact]
public void StatusQuery_Found_RepliesWithRowDetail()
{