Resolve all high-severity architecture review findings
This commit is contained in:
+13
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user