public void GetMeetingNotificationMessageTest() { NotificationReportController notificationReportController = new NotificationReportController(this.notificationReportManager.Object, this.logger); MeetingInviteMessage notificationMessage = new MeetingInviteMessage(); _ = this.notificationReportManager .Setup(notificationReportManager => notificationReportManager.GetMeetingNotificationMessage(It.IsAny <string>(), It.IsAny <string>())) .Returns(Task.FromResult(notificationMessage)); var result = notificationReportController.GetMeetingNotificationMessage(this.applicationName, this.notificationId); Assert.AreEqual(result.Status.ToString(), "RanToCompletion"); this.notificationReportManager.Verify(mgr => mgr.GetMeetingNotificationMessage(It.IsAny <string>(), It.IsAny <string>()), Times.Once); Assert.Pass(); }