1 implementation of GetNotifications
Aspire.Dashboard (1)
Model\NotificationService.cs (1)
30public IReadOnlyList<NotificationMessage> GetNotifications()
16 references to GetNotifications
Aspire.Dashboard (2)
Components\Dialogs\NotificationsDialog.razor.cs (2)
22_notifications = NotificationService.GetNotifications(); 31_notifications = NotificationService.GetNotifications();
Aspire.Dashboard.Components.Tests (8)
Controls\TerminalDisconnectedBannerTests.cs (1)
89var notification = Assert.Single(Services.GetRequiredService<Dashboard.Model.INotificationService>().GetNotifications()).Entry;
Layout\TerminalDockTests.cs (6)
504Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 536Assert.Empty(notifications.GetNotifications()); 547var notification = Assert.Single(notifications.GetNotifications()).Entry; 595Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 647Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 673Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications());
Model\DashboardCommandExecutorTests.cs (1)
109Assert.Equal(message, Assert.Single(notifications.GetNotifications()).Entry.Body);
Aspire.Dashboard.Tests (6)
Model\DashboardCommandExecutorTests.cs (6)
135var startingNotification = Assert.Single(notificationService.GetNotifications()); 144var cancelingNotification = Assert.Single(notificationService.GetNotifications()); 156var canceledNotification = Assert.Single(notificationService.GetNotifications()); 179var startingNotification = Assert.Single(notificationService.GetNotifications()); 190var cancelingNotification = Assert.Single(notificationService.GetNotifications()); 240var notification = Assert.Single(notificationService.GetNotifications());