The app displays a compact notification summary that can be updated from a background source and reused across multiple screens.
NotificationSummaryStore component must accept an external NotificationCenterProtocol and update summaryText when it receives the notificationSummaryDidChange event.NotificationSummary arrives with a later updatedAt, the summary text must be recalculated from the current data.MockNotificationCenter that manually publishes events without system notifications.NotificationSummaryStore and bind summaryText to it.NotificationSummary(title: "3 new", updatedAt: 1).notificationSummaryDidChange event through the mock with the model NotificationSummary(title: "5 new", updatedAt: 2).NotificationSummaryStore is marked @MainActorNotificationCenterProtocol mock is usedUse line comments to explain the problem, its impact, the fix and how to test it.