public void GetNotificationAlert_Tests() { // Arrange pdbNotificationService.Setup(pdb => pdb.GetNext()).Returns(new PDBNotification() { Message = "Critical", Type = NotificationType.Critical }); // Act var service = new ServiceQualityController(); var notifications = service.GetNotifications(); // Assert Assert.AreEqual(NotificationType.Critical, notifications.Type); }