1 implementation of GetNotifications
Aspire.Dashboard (1)
Model\NotificationService.cs (1)
30public IReadOnlyList<NotificationMessage> GetNotifications()
17 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)
502Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 534Assert.Empty(notifications.GetNotifications()); 545var notification = Assert.Single(notifications.GetNotifications()).Entry; 593Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 645Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 671Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications());
Model\DashboardCommandExecutorTests.cs (1)
109Assert.Equal(message, Assert.Single(notifications.GetNotifications()).Entry.Body);
Aspire.Dashboard.Tests (7)
Model\DashboardCommandExecutorTests.cs (7)
127Assert.Empty(notificationService.GetNotifications()); 230var startingNotification = Assert.Single(notificationService.GetNotifications()); 239var cancelingNotification = Assert.Single(notificationService.GetNotifications()); 251var canceledNotification = Assert.Single(notificationService.GetNotifications()); 274var startingNotification = Assert.Single(notificationService.GetNotifications()); 285var cancelingNotification = Assert.Single(notificationService.GetNotifications()); 335var notification = Assert.Single(notificationService.GetNotifications());